Root/libnsfb/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libnsfb
4PKG_VERSION:=0.0.2
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.gz
8PKG_SOURCE_URL:=http://www.netsurf-browser.org/projects/releases/
9PKG_MD5SUM:=f7c1cbf5a7d26750a9d6e0668dd8760c
10
11include $(INCLUDE_DIR)/package.mk
12
13define 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/
20endef
21
22define 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.
24endef
25
26define 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
34endef
35
36define 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
47endef
48
49define Package/libnsfb/install
50    $(INSTALL_DIR) $(1)/usr/lib
51    $(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libnsfb.so* $(1)/usr/lib/
52endef
53
54$(eval $(call BuildPackage,libnsfb))
55

Archive Download this file



interactive