lede-packages-rs

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

Makefile (1958B)


      1 #
      2 # Copyright (C) 2014 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:=stoken
     11 PKG_VERSION:=0.8
     12 PKG_REV:=c4d79ffbf5053e44be4b64da22b1b7fb6a51daf2
     13 PKG_RELEASE:=2
     14 
     15 PKG_SOURCE_PROTO:=git
     16 PKG_SOURCE_URL:=https://github.com/cernekee/stoken.git
     17 
     18 PKG_SOURCE_VERSION:=$(PKG_REV)
     19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_REV).tar.gz
     20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
     21 PKG_MAINTAINER:=Florian Fainelli <florian@openwrt.org>
     22 PKG_LICENSE:=LGPL-2.1
     23 PKG_INSTALL:=1
     24 
     25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
     26 
     27 PKG_FIXUP:=autoreconf
     28 
     29 include $(INCLUDE_DIR)/package.mk
     30 
     31 define Package/stoken/Default
     32   TITLE:=stoken is a tokencode generator compatible with RSA SecurID 128-bit (AES)
     33   URL:=http://sourceforge.net/p/stoken/
     34   DEPENDS:= +libxml2 +libnettle
     35 endef
     36 
     37 define Package/stoken
     38   $(call Package/stoken/Default)
     39   SECTION:=utils
     40   CATEGORY:=Utilities
     41   SUBMENU:=Encryption
     42   DEPENDS:=+libstoken
     43   MENU:=1
     44 endef
     45 
     46 define Package/stoken/description
     47   stoken is a tokencode generator compatible with RSA SecurID 128-bit (AES). This package contains the cli
     48 endef
     49 
     50 define Package/libstoken
     51   $(call Package/stoken/Default)
     52   SECTION:=libs
     53   CATEGORY:=Libraries
     54 endef
     55 
     56 CONFIGURE_ARGS += \
     57 	--with-nettle
     58 
     59 define Build/InstallDev
     60 	$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
     61 	$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
     62 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.{la,a,so*} $(1)/usr/lib
     63 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/stoken.pc \
     64 		$(1)/usr/lib/pkgconfig/
     65 endef
     66 
     67 define Package/stoken/install
     68 	$(INSTALL_DIR) $(1)/usr/bin
     69 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stoken $(1)/usr/bin/
     70 endef
     71 
     72 define Package/libstoken/install
     73 	$(INSTALL_DIR) $(1)/usr/lib
     74 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libstoken*.so* $(1)/usr/lib
     75 endef
     76 
     77 $(eval $(call BuildPackage,stoken))
     78 $(eval $(call BuildPackage,libstoken))