summaryrefslogtreecommitdiff
path: root/devel/directfb/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2003-01-19 14:26:13 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2003-01-19 14:26:13 +0000
commitf6c89b947e20a4c395ecb9d748291d6437e23796 (patch)
tree3abecd738782a314cd37dec60bb11ea2ff8d20d9 /devel/directfb/Makefile
parentNew port of ITS RP06 filesystem image for KLH10 PDP-10 emulator (diff)
Add directfb, it's a graphics library which was designed with embedded systems.
PR: ports/44782 Submitted by: Fabien Devaux <devaux.fabien@free.fr> Somepart by: me
Notes
Notes: svn path=/head/; revision=73492
Diffstat (limited to 'devel/directfb/Makefile')
-rw-r--r--devel/directfb/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/devel/directfb/Makefile b/devel/directfb/Makefile
new file mode 100644
index 000000000000..07d78df5eff2
--- /dev/null
+++ b/devel/directfb/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: DirectFB
+# Date created: 19 October 2002
+# Whom: Devaux Fabien <fab@gcu.info>
+#
+# $FreeBSD$
+#
+
+PORTNAME= directfb
+PORTVERSION= 0.9.16
+CATEGORIES= devel
+MASTER_SITES= http://www.directfb.org/download/DirectFB/
+DISTNAME= DirectFB-${PORTVERSION}
+
+MAINTAINER= fab@gcu.info
+
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
+ png.5:${PORTSDIR}/graphics/png
+
+SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
+
+CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
+ CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LDFLAGS="${PTHREAD_LIBS}"
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_PERL5= yes
+USE_REINPLACE= yes
+PLIST_SUB+= DIRECTFB_VERSION=${PORTVERSION}
+
+.if exists(${LOCALBASE}/lib/libfreetype.so.9)
+WITH_FREETYPE2= yes
+.endif
+
+.if defined(WITH_FREETYPE2)
+LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
+CONFIGURE_ARGS+= --enable-freetype
+PLIST_SUB+= WITH_FREETYPE2=""
+.else
+CONFIGURE_ARGS+= --disable-freetype
+PLIST_SUB+= WITH_FREETYPE2="@comment "
+.endif
+
+MAN1= directfb-csource.1 dfbg.1
+MAN5= directfbrc.5
+
+post-patch:
+ @find ${WRKSRC} -name Makefile.in | xargs ${REINPLACE_CMD} -e \
+ 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
+
+.include <bsd.port.mk>