lede-packages-rs

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

Makefile (1643B)


      1 #
      2 # Copyright (C) 2006-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:=gdbm
     11 PKG_VERSION:=1.11
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=@GNU/gdbm
     16 PKG_MD5SUM:=72c832680cf0999caedbe5b265c8c1bd
     17 
     18 PKG_LICENSE:=GPL-3.0+
     19 PKG_LICENSE_FILES:=COPYING
     20 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
     21 
     22 PKG_FIXUP:=autoreconf gettext-version
     23 PKG_REMOVE_FILES:=Makefile compat/Makefile doc/Makefile export/Makefile src/Makefile tests/Makefile
     24 PKG_BUILD_PARALLEL:=0
     25 
     26 PKG_BUILD_DEPENDS:=gettext-full/host
     27 
     28 include $(INCLUDE_DIR)/package.mk
     29 
     30 define Package/libgdbm
     31   SECTION:=libs
     32   CATEGORY:=Libraries
     33   TITLE:=GNU database manager
     34   URL:=http://www.gnu.org/software/gdbm/
     35 endef
     36 
     37 define Package/libgdbm/description
     38   GNU database manager library
     39   GNU dbm is a set of database routines that use extendible hashing and
     40   works similar to the standard UNIX dbm routines.
     41 endef
     42 
     43 TARGET_CFLAGS += $(FPIC)
     44 
     45 CONFIGURE_ARGS += \
     46 	--enable-shared \
     47 	--enable-static \
     48 
     49 define Build/Compile
     50 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
     51 		BINOWN=`id -u` \
     52 		BINGRP=`id -g` \
     53 		DESTDIR="$(PKG_INSTALL_DIR)" \
     54 		all install
     55 endef
     56 
     57 define Build/InstallDev
     58 	$(INSTALL_DIR) $(1)/usr/include
     59 	$(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/
     60 	$(INSTALL_DIR) $(1)/usr/lib
     61 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/
     62 endef
     63 
     64 define Package/libgdbm/install
     65 	$(INSTALL_DIR) $(1)/usr/lib
     66 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/
     67 endef
     68 
     69 $(eval $(call BuildPackage,libgdbm))