1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-28 19:08:26 +02:00

libnsbmp: initial port

This commit is contained in:
kyak 2012-04-04 08:53:19 +04:00
parent e1e92f21bf
commit aa543e699c

46
libnsbmp/Makefile Normal file
View File

@ -0,0 +1,46 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libnsbmp
PKG_VERSION:=0.0.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/
PKG_MD5SUM:=b418fd3f73a42190046e4e1ab98d799e
include $(INCLUDE_DIR)/package.mk
define Package/libnsbmp
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
SECTION:=libs
CATEGORY:=Libraries
TITLE:=BMP and ICO decoding library
URL:=http://www.netsurf-browser.org/projects/libnsbmp
endef
define Package/libnsbmp/description
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.
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
$(MAKE_FLAGS) \
COMPONENT_TYPE=lib-shared \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/
mkdir -p $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/
endef
define Package/libnsbmp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsbmp.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libnsbmp))