Date:2012-04-04 06:53:19 (8 years 1 month ago)
Author:kyak
Commit:aa543e699c720fe9127e42c5ca5fad2fab59a27a
Message:libnsbmp: initial port

Files: libnsbmp/Makefile (1 diff)

Change Details

libnsbmp/Makefile
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libnsbmp
4PKG_VERSION:=0.0.3
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
8PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/
9PKG_MD5SUM:=b418fd3f73a42190046e4e1ab98d799e
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/libnsbmp
14    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
15    SECTION:=libs
16    CATEGORY:=Libraries
17    TITLE:=BMP and ICO decoding library
18    URL:=http://www.netsurf-browser.org/projects/libnsbmp
19endef
20
21define Package/libnsbmp/description
22    Libnsbmp is a decoding library for BMP and ICO image file formats, written in C. It was developed as part of the NetSurf project and is available for use by other software under the MIT licence.
23endef
24
25define Build/Compile
26    rm -rf $(PKG_INSTALL_DIR)
27    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
28        $(MAKE_FLAGS) \
29        COMPONENT_TYPE=lib-shared \
30        DESTDIR="$(PKG_INSTALL_DIR)" \
31        all install
32endef
33
34define Build/InstallDev
35    mkdir -p $(1)/usr/include
36    $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
37    mkdir -p $(1)/usr/lib
38    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
39endef
40
41define Package/libnsbmp/install
42    $(INSTALL_DIR) $(1)/usr/lib
43    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsbmp.so* $(1)/usr/lib/
44endef
45
46$(eval $(call BuildPackage,libnsbmp))

Archive Download the corresponding diff file



interactive