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
10 PKG_HASH
:= b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3
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
:= https
://distfiles.openadk.org
/
17 PKG_LIBNAME
:= directfb
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 \
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
)
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