source: packages/libs/libtasn1/Makefile @ 9907

Last change on this file since 9907 was 9907, checked in by nbd, 9 years ago

remove UninstallDev

  • Property copyright set to Copyright (C) 2007 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libtasn1
12PKG_VERSION:=1.1
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_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/
21PKG_MD5SUM:=93b43cc5013bda4d8bf64508f1566c54
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libtasn1
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=An ASN.1 and DER structures manipulation library
29  URL:=ftp://ftp.gnutls.org/pub/gnutls/libtasn1/
30endef
31
32define Package/libtasn1/description
33 This is a library for Abstract Syntax Notation One (ASN.1) and
34 Distinguish Encoding Rules (DER) manipulation.
35endef
36
37define Build/Configure
38        $(call Build/Configure/Default, \
39                --enable-shared \
40                --enable-static \
41        )
42        $(call libtool_disable_rpath)
43endef
44
45define Build/Compile
46        $(MAKE) -C $(PKG_BUILD_DIR) all
47        $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
48        $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
49endef
50
51define Build/InstallDev
52        mkdir -p $(1)/usr/bin
53        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libtasn1-config $(1)/usr/bin/
54        mkdir -p $(1)/usr/include
55        $(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
56        mkdir -p $(1)/usr/lib
57        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
58        $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libtasn1-config
59        $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libtasn1-config
60endef
61
62define Package/libtasn1/install
63        $(INSTALL_DIR) $(1)/usr/lib
64        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
65endef
66
67$(eval $(call BuildPackage,libtasn1))
Note: See TracBrowser for help on using the repository browser.