lede-packages-rs

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

Makefile (1375B)


      1 #
      2 # Copyright (C) 2009-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:=libdbi
     11 PKG_VERSION:=0.9.0
     12 PKG_RELEASE:=4
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
     15 PKG_SOURCE_URL:=@SF/libdbi
     16 PKG_MD5SUM:=05e2ceeac4bc85fbe40de8b4b22d9ab3
     17 
     18 PKG_LICENSE:=LGPL-2.1
     19 PKG_LICENSE_FILES:=COPYING
     20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
     21 
     22 PKG_FIXUP:=autoreconf
     23 PKG_INSTALL:=1
     24 
     25 include $(INCLUDE_DIR)/package.mk
     26 
     27 define Package/libdbi
     28   SECTION:=libs
     29   CATEGORY:=Libraries
     30   TITLE:=Database Independent Abstraction Layer library
     31   URL:=http://libdbi.sourceforge.net/
     32 endef
     33 
     34 define Package/libdbi/description
     35  This package provides a database-independent abstraction layer library in C.
     36 endef
     37 
     38 CONFIGURE_ARGS += \
     39 	--enable-shared \
     40 	--enable-static \
     41 	--disable-docs
     42 
     43 define Build/InstallDev
     44 	$(INSTALL_DIR) $(1)/usr/include
     45 	$(CP) $(PKG_INSTALL_DIR)/usr/include/dbi $(1)/usr/include/
     46 	$(INSTALL_DIR) $(1)/usr/lib
     47 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.{a,so*} $(1)/usr/lib/
     48 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     49 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/dbi.pc $(1)/usr/lib/pkgconfig/
     50 endef
     51 
     52 define Package/libdbi/install
     53 	$(INSTALL_DIR) $(1)/usr/lib
     54 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdbi.so.* $(1)/usr/lib/
     55 endef
     56 
     57 $(eval $(call BuildPackage,libdbi))