[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[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:=1.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
16         ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
17         http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
18         ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1/ \
19         http://josefsson.org/gnutls/releases/libtasn1/
20 PKG_MD5SUM:=a733ecdfed3517910e627d24e050979f
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libtasn1
28   SECTION:=libs
29   CATEGORY:=Libraries
30   TITLE:=An ASN.1 and DER structures manipulation library
31   URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
32 endef
33
34 define Package/libtasn1/description
35  This is a library for Abstract Syntax Notation One (ASN.1) and 
36  Distinguish Encoding Rules (DER) manipulation.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 CONFIGURE_ARGS += \
42                 --enable-shared \
43                 --enable-static
44
45 define Build/InstallDev
46         $(INSTALL_DIR) $(1)/usr/bin
47         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(1)/usr/bin/
48         $(INSTALL_DIR) $(1)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
50         $(INSTALL_DIR) $(1)/usr/lib
51         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
52         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
54         $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libtasn1-config
55         $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libtasn1-config
56 endef
57
58 define Package/libtasn1/install
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libtasn1))