lede-packages-rs

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

Makefile (1400B)


      1 #
      2 # Copyright (C) 2007-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:=tdb
     11 PKG_VERSION:=1.0.6
     12 PKG_RELEASE:=1
     13 PKG_LICENSE:=GPL-2.0
     14 
     15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     16 PKG_SOURCE_URL:=@SF/tdb
     17 PKG_MD5SUM:=6b643fdeb48304010dcd5f675e458b58
     18 
     19 PKG_INSTALL:=1
     20 PKG_BUILD_DEPENDS:=+libgdbm
     21 
     22 include $(INCLUDE_DIR)/package.mk
     23 
     24 define Package/tdb
     25   SUBMENU:=database
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=Trivial Database
     29   URL:=http://sourceforge.net/projects/tdb/
     30   MAINTAINER:=Dmitry V. Zimin <pfzim@mail.ru>
     31 #  DEPENDS:=+libgdbm
     32 endef
     33 
     34 define Package/tdb/description
     35   TDB is a Trivial Database. In concept, it is very much like GDBM,
     36   and BSD's DB except that it allows multiple simultaneous writers
     37   and uses locking internally to keep writers from trampling on
     38   each other. TDB is also extremely small.
     39 endef
     40 
     41 define Build/InstallDev
     42 	$(INSTALL_DIR) $(1)/usr/include
     43 	$(CP) $(PKG_INSTALL_DIR)/usr/include/tdb.h $(1)/usr/include/
     44 	$(INSTALL_DIR) $(1)/usr/lib
     45 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
     46 endef
     47 
     48 define Package/tdb/install
     49 	$(INSTALL_DIR) $(1)/usr/lib
     50 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
     51 	$(INSTALL_DIR) $(1)/usr/bin
     52 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
     53 endef
     54 
     55 $(eval $(call BuildPackage,tdb))
     56