lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1567B)


      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.9
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
     16 PKG_MD5SUM:=4f6f7a8fd691ac2b8307c8ca365bad711db607d4ad5966f6938a9d2ecd65c920
     17 PKG_LICENSE:=LGPLv2.1+
     18 PKG_LICENSE_FILES:=COPYING.LIB
     19 
     20 #PKG_FIXUP:=autoreconf
     21 PKG_INSTALL:=1
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/libtasn1
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=An ASN.1 and DER structures manipulation library
     29   MAINTAINER:=Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
     30   URL:=ftp://ftp.gnu.org/gnu/libtasn1/
     31 endef
     32 
     33 define Package/libtasn1/description
     34  This is a library for Abstract Syntax Notation One (ASN.1) and
     35  Distinguish Encoding Rules (DER) manipulation.
     36 endef
     37 
     38 TARGET_CFLAGS += $(FPIC)
     39 
     40 CONFIGURE_ARGS += \
     41 		--enable-shared \
     42 		--disable-gcc-warnings \
     43 		--enable-static
     44 
     45 define Build/InstallDev
     46 	$(INSTALL_DIR) $(1)/usr/bin
     47 	$(INSTALL_DIR) $(1)/usr/include
     48 	$(CP) $(PKG_INSTALL_DIR)/usr/include/libtasn1.h $(1)/usr/include/
     49 	$(INSTALL_DIR) $(1)/usr/lib
     50 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.{a,so*} $(1)/usr/lib/
     51 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     52 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtasn1*.pc $(1)/usr/lib/pkgconfig/
     53 endef
     54 
     55 define Package/libtasn1/install
     56 	$(INSTALL_DIR) $(1)/usr/lib
     57 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtasn1.so.* $(1)/usr/lib/
     58 endef
     59 
     60 $(eval $(call BuildPackage,libtasn1))