Root/libwapcaplet/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libwapcaplet
4PKG_VERSION:=0.1.1
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
8PKG_SOURCE_URL:=http://download.netsurf-browser.org/libs/releases/
9PKG_MD5SUM:=9bec92c029c978c3ac93fee67742e869
10
11include $(INCLUDE_DIR)/package.mk
12
13define 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/
18endef
19
20define 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.
22endef
23
24define 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
31endef
32
33define 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/
38endef
39
40define Package/libwapcaplet/install
41    $(INSTALL_DIR) $(1)/usr/lib
42    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libwapcaplet.so* $(1)/usr/lib/
43endef
44
45$(eval $(call BuildPackage,libwapcaplet))
46

Archive Download this file



interactive