clean up, replace old libtool fixup calls with PKG_FIXUP
[openwrt/svn-archive/archive.git] / libs / libtasn1 / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libtasn1
12 PKG_VERSION:=1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/ \
17 ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/libtasn1/ \
18 http://www.mirrors.wiretapped.net/security/network-security/gnutls/libtasn1/ \
19 ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/libtasn1/ \
20 http://josefsson.org/gnutls/releases/libtasn1/
21 PKG_MD5SUM:=93b43cc5013bda4d8bf64508f1566c54
22
23 PKG_FIXUP = libtool
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 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
45 endef
46
47 define Build/InstallDev
48 mkdir -p $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(1)/usr/bin/
50 mkdir -p $(1)/usr/include
51 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
52 mkdir -p $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
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))