aboutsummaryrefslogtreecommitdiff
path: root/libwapcaplet/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 02:07:27 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 02:07:27 +0100
commit0a95e15cdc87de0136734e784d487f9b03170bbb (patch)
treeadae83e51ba5b78869f51aa43cfe8ebfb762ec41 /libwapcaplet/Makefile
downloadnanonote-ports-0a95e15cdc87de0136734e784d487f9b03170bbb.tar.gz
initial checkin of my nanonote ports feed, including a small README.
Diffstat (limited to 'libwapcaplet/Makefile')
-rw-r--r--libwapcaplet/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/libwapcaplet/Makefile b/libwapcaplet/Makefile
new file mode 100644
index 0000000..03b20b7
--- /dev/null
+++ b/libwapcaplet/Makefile
@@ -0,0 +1,60 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libwapcaplet
+PKG_VERSION:=r10879
+PKG_RELEASE:=1
+
+PKG_SOURCE:=libwapcaplet-$(PKG_VERSION).tar.gz
+#PKG_SOURCE_URL:=
+PKG_MD5SUM:=476f4d6b0f1be97c6496c34d13591869
+
+PKG_BUILD_DIR=$(BUILD_DIR)/libwapcaplet-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libwapcaplet
+ SECTION:=net
+ CATEGORY:=Network
+ SUBMENU:=Web
+ DEPENDS:=
+ TITLE:=String Internment Library (NetSurf)
+ URL:=http://www.netsurf-browser.org/projects/libwapcaplet/
+endef
+
+define Package/libwapcaplet/description
+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 and is available for use by other software under the MIT licence.
+endef
+
+MAKE_VARS := \
+ TARGET=linux \
+ PREFIX=/usr \
+ COMPONENT_TYPE=lib-shared
+
+define Build/Configure
+endef
+
+define Build/Compile
+ $(CONFIGURE_VARS) \
+ $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" \
+ $(MAKE_VARS) install
+endef
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include/libwapcaplet
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libwapcaplet/libwapcaplet.h $(1)/usr/include/libwapcaplet
+
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwapcaplet.so* $(1)/usr/lib
+
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libwapcaplet.pc $(1)/usr/lib/pkgconfig
+endef
+
+define Package/libwapcaplet/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwapcaplet.so* $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,libwapcaplet))