Root/libnsgif/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libnsgif
4PKG_VERSION:=0.0.3
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:=1f9efcdbbf0096eee639dc1e263b20dc
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/libnsgif
14    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
15    SECTION:=libs
16    CATEGORY:=Libraries
17    TITLE:=GIF decoding library
18    URL:=http://www.netsurf-browser.org/projects/libnsgif
19endef
20
21define Package/libnsgif/description
22    Libnsgif is a decoding library for the GIF image file format, 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/libnsgif/install
42    $(INSTALL_DIR) $(1)/usr/lib
43    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsgif.so* $(1)/usr/lib/
44endef
45
46$(eval $(call BuildPackage,libnsgif))
47

Archive Download this file



interactive