binutils: update to 2.43.1
[openadk.git] / package / DirectFB / Makefile
blobc3fec321b92ef29c61a96ca0b5482f2d6fffe1cd
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.7.7
8 PKG_EXTRAVER:= 1.7-7
9 PKG_RELEASE:= 1
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
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