Makefile (1190B)
1 # 2 # Copyright (C) 2015 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:=libestr 11 PKG_VERSION:=0.1.10 12 PKG_RELEASE:=2 13 14 PKG_SOURCE_URL:=http://libestr.adiscon.com/files/download/ 15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 PKG_MD5SUM:=f4c9165a23587e77f7efe65d676d5e8e 17 18 PKG_MAINTAINER:=Dov Murik <dmurik@us.ibm.com> 19 PKG_LICENSE:=LGPL-2.1+ 20 PKG_LICENSE_FILES:=COPYING 21 22 PKG_FIXUP:=autoreconf 23 PKG_INSTALL:=1 24 25 include $(INCLUDE_DIR)/package.mk 26 27 define Package/libestr 28 SECTION:=libs 29 CATEGORY:=Libraries 30 TITLE:=String handling library 31 URL:=http://libestr.adiscon.com/ 32 endef 33 34 define Package/libestr/description 35 libestr - some essentials for string handling (and a bit more) 36 endef 37 38 TARGET_CFLAGS += $(FPIC) 39 40 define Build/InstallDev 41 $(INSTALL_DIR) $(1)/usr/include 42 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 43 44 $(INSTALL_DIR) $(1)/usr/lib 45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ 46 endef 47 48 define Package/libestr/install 49 $(INSTALL_DIR) $(1)/usr/lib 50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libestr.so* $(1)/usr/lib/ 51 endef 52 53 $(eval $(call BuildPackage,libestr))