Change Details
libnsgif/Makefile |
| 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=libnsgif |
| 4 | PKG_VERSION:=0.0.3 |
| 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_MD5SUM:=1f9efcdbbf0096eee639dc1e263b20dc |
| 10 | |
| 11 | include $(INCLUDE_DIR)/package.mk |
| 12 | |
| 13 | define 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 |
| 19 | endef |
| 20 | |
| 21 | define 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. |
| 23 | endef |
| 24 | |
| 25 | define 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 |
| 32 | endef |
| 33 | |
| 34 | define 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/ |
| 39 | endef |
| 40 | |
| 41 | define Package/libnsgif/install |
| 42 | $(INSTALL_DIR) $(1)/usr/lib |
| 43 | $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsgif.so* $(1)/usr/lib/ |
| 44 | endef |
| 45 | |
| 46 | $(eval $(call BuildPackage,libnsgif)) |
Download the corresponding diff file