Merge pull request #193 from chris5560/master
[feed/packages.git] / libs / libtasn1 / Makefile
1 #
2 # Copyright (C) 2005-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libtasn1
11 PKG_VERSION:=4.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/libtasn1
16 PKG_MD5SUM:=d3d2d9bce3b6668b9827a9df52635be1
17
18 #PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libtasn1
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=An ASN.1 and DER structures manipulation library
27 MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
28 URL:=ftp://ftp.gnu.org/gnu/libtasn1/
29 endef
30
31 define Package/libtasn1/description
32 This is a library for Abstract Syntax Notation One (ASN.1) and
33 Distinguish Encoding Rules (DER) manipulation.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --enable-shared \
40 --enable-static
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_DIR) $(1)/usr/include
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
50 endef
51
52 define Package/libtasn1/install
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libtasn1))