OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=libwapcaplet |
| 4 | PKG_VERSION:=0.0.2 |
| 5 | PKG_RELEASE:=1 |
| 6 | |
| 7 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz |
| 8 | PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/ |
| 9 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| 10 | |
| 11 | include $(INCLUDE_DIR)/package.mk |
| 12 | |
| 13 | define Package/libwapcaplet |
| 14 | SECTION:=libs |
| 15 | CATEGORY:=Libraries |
| 16 | TITLE:=Libwapcaplet is a string internment library, written in C |
| 17 | URL:=http://www.netsurf-browser.org/projects/libwapcaplet/ |
| 18 | endef |
| 19 | |
| 20 | define Package/libwapcaplet/description |
| 21 | LibWapcaplet is a string internment library, written in C. It provides reference counted string interment and rapid string comparison functionality. It was developed as part of the NetSurf project. |
| 22 | endef |
| 23 | |
| 24 | define Build/Compile |
| 25 | rm -rf $(PKG_INSTALL_DIR) |
| 26 | $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \ |
| 27 | $(MAKE_FLAGS) \ |
| 28 | COMPONENT_TYPE=lib-shared \ |
| 29 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
| 30 | all install |
| 31 | endef |
| 32 | |
| 33 | define Build/InstallDev |
| 34 | mkdir -p $(1)/usr/include |
| 35 | $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/ |
| 36 | mkdir -p $(1)/usr/lib |
| 37 | $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/ |
| 38 | endef |
| 39 | |
| 40 | define Package/libwapcaplet/install |
| 41 | $(INSTALL_DIR) $(1)/usr/lib |
| 42 | $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libwapcaplet.so* $(1)/usr/lib/ |
| 43 | endef |
| 44 | |
| 45 | $(eval $(call BuildPackage,libwapcaplet)) |
| 46 |
