1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-16 18:10:37 +02:00
openwrt-packages/libnsfb/Makefile

55 lines
1.6 KiB
Makefile
Raw Normal View History

2010-11-20 13:44:08 +02:00
include $(TOPDIR)/rules.mk
PKG_NAME:=libnsfb
2012-04-04 07:51:34 +03:00
PKG_VERSION:=0.0.2
2010-11-20 13:44:08 +02:00
PKG_RELEASE:=1
2012-04-04 07:51:34 +03:00
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
2012-10-12 13:46:57 +03:00
PKG_SOURCE_URL:=http://download.netsurf-browser.org/libs/releases/
2012-04-04 07:51:34 +03:00
PKG_MD5SUM:=f7c1cbf5a7d26750a9d6e0668dd8760c
2010-11-20 13:44:08 +02:00
include $(INCLUDE_DIR)/package.mk
define Package/libnsfb
2011-01-17 05:39:00 +02:00
MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
2010-11-20 13:44:08 +02:00
SECTION:=libs
CATEGORY:=Libraries
TITLE:=LibNSFB is a framebuffer abstraction library, written in C
DEPENDS:=+libsdl
URL:=http://www.netsurf-browser.org/projects/libnsfb/
2010-11-20 13:44:08 +02:00
endef
define Package/libnsfb/description
The overall idea of the library is to provide a generic abstraction to a linear section of memory which corresponds to a visible array of pixel elements on a display device. Different colour depths are supported and the library provides routines for tasks such as drawing onto the framebuffer and rectangle copy operations.
endef
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
$(MAKE_FLAGS) \
WARNFLAGS="" \
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/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(1)/usr/lib/pkgconfig/libnsfb.pc
$(SED) \
's/xcb\|xcb-icccm\|xcb-image\|xcb-keysyms//g' \
$(1)/usr/lib/pkgconfig/libnsfb.pc
endef
define Package/libnsfb/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsfb.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libnsfb))