OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | include $(TOPDIR)/rules.mk |
2 | |
3 | PKG_NAME:=libnsfb |
4 | PKG_VERSION:=0.0.2 |
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:=f7c1cbf5a7d26750a9d6e0668dd8760c |
10 | |
11 | include $(INCLUDE_DIR)/package.mk |
12 | |
13 | define Package/libnsfb |
14 | MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc> |
15 | SECTION:=libs |
16 | CATEGORY:=Libraries |
17 | TITLE:=LibNSFB is a framebuffer abstraction library, written in C |
18 | DEPENDS:=+libsdl |
19 | URL:=http://www.netsurf-browser.org/projects/libnsfb/ |
20 | endef |
21 | |
22 | define Package/libnsfb/description |
23 | 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. |
24 | endef |
25 | |
26 | define Build/Compile |
27 | rm -rf $(PKG_INSTALL_DIR) |
28 | $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \ |
29 | $(MAKE_FLAGS) \ |
30 | WARNFLAGS="" \ |
31 | COMPONENT_TYPE=lib-shared \ |
32 | DESTDIR="$(PKG_INSTALL_DIR)" \ |
33 | all install |
34 | endef |
35 | |
36 | define Build/InstallDev |
37 | mkdir -p $(1)/usr/include |
38 | $(CP) $(PKG_INSTALL_DIR)/usr/local/include/* $(1)/usr/include/ |
39 | mkdir -p $(1)/usr/lib |
40 | $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/* $(1)/usr/lib/ |
41 | $(SED) \ |
42 | 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \ |
43 | $(1)/usr/lib/pkgconfig/libnsfb.pc |
44 | $(SED) \ |
45 | 's/xcb\|xcb-icccm\|xcb-image\|xcb-keysyms//g' \ |
46 | $(1)/usr/lib/pkgconfig/libnsfb.pc |
47 | endef |
48 | |
49 | define Package/libnsfb/install |
50 | $(INSTALL_DIR) $(1)/usr/lib |
51 | $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsfb.so* $(1)/usr/lib/ |
52 | endef |
53 | |
54 | $(eval $(call BuildPackage,libnsfb)) |
55 |