2010-11-20 13:44:08 +02:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := libnsfb
PKG_REV := 10618
PKG_VERSION := r$( PKG_REV)
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := svn://svn.netsurf-browser.org/trunk/libnsfb
PKG_SOURCE_PROTO := svn
PKG_SOURCE_VERSION := $( PKG_REV)
PKG_SOURCE_SUBDIR := $( PKG_NAME) -$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION)
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / l i b n s f b
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
2011-02-26 17:57:53 +02:00
DEPENDS:= +libsdl
URL:= http://www.netsurf-browser.org/projects/libnsfb/
2010-11-20 13:44:08 +02:00
e n d e f
d e f i n e P a c k a g e / l i b n s f b / d e s c r i p t i o n
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.
e n d e f
d e f i n e B u i l d / C o m p i l e
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
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
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
e n d e f
d e f i n e P a c k a g e / l i b n s f b / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/local/lib/libnsfb.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,libnsfb ) )