allow for uclibc-ng
[openadk.git] / package / DirectFB / Makefile
blobe669ee059a4269b09ad2ad8bc9b3cf56f26e90db
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= DirectFB
7 PKG_VERSION:= 1.6.3
8 PKG_RELEASE:= 3
9 PKG_EXTRAVER:= 1.6-0
10 PKG_HASH:= 7a96aced0f69b2ec0810e9923068e61c21e6b19dd593e09394c872414df75e70
11 PKG_DESCR:= thin graphic library for framebuffer devices
12 PKG_SECTION:= libs/image
13 PKG_DEPENDS:= libpng libjpeg-turbo libfreetype
14 PKG_BUILDDEP:= libpng libjpeg-turbo freetype
15 PKG_URL:= http://www.directfb.org/
16 PKG_SITES:= http://directfb.org/downloads/Core/DirectFB-1.6/
17 PKG_LIBNAME:= directfb
18 PKG_OPTS:= dev
20 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call PKG_template,DIRECTFB,directfb,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
26 CONFIGURE_ARGS+= --with-inputdrivers=linuxinput,keyboard,ps2mouse \
27 --with-gfxdrivers=none \
28 --without-tools \
29 --enable-fbdev \
30 --disable-sdl \
31 --disable-osx \
32 --disable-x11 \
33 --disable-gif \
34 --enable-png \
35 --disable-debug \
36 --disable-trace \
37 --enable-text \
38 --enable-jpeg
40 # This is to overcome libtool fuckup - when building without,
41 # libtool calls (the correct) ld directly without parameters,
42 # which then chooses the wrong default emulation (which is
43 # probably the real problem here).
44 ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
45 XAKE_FLAGS+= LDFLAGS=$(ADK_TARGET_ABI_CFLAGS)
46 endif
48 directfb-install:
49 ${INSTALL_DIR} ${IDIR_DIRECTFB}/etc
50 ${INSTALL_DATA} ./files/directfbrc ${IDIR_DIRECTFB}/etc
51 $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/{inputdrivers,systems,wm}
52 ${CP} $(WRKINST)/usr/lib/lib{direct,fusion}*.so* \
53 $(IDIR_DIRECTFB)/usr/lib
54 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers/*.so \
55 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/inputdrivers
56 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/systems/*.so \
57 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/systems
58 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/wm/*.so \
59 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/wm
60 $(INSTALL_DIR) $(IDIR_DIRECTFB)/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFB{Font,ImageProvider,VideoProvider}
61 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont/*.so \
62 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBFont
63 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider/*.so \
64 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBImageProvider
65 ${CP} ${WRKINST}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider/*.so \
66 ${IDIR_DIRECTFB}/usr/lib/directfb-${PKG_EXTRAVER}/interfaces/IDirectFBVideoProvider
68 include ${ADK_TOPDIR}/mk/pkg-bottom.mk