summaryrefslogtreecommitdiff
path: root/devel/directfb/Makefile
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-05-30 21:23:40 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-05-30 21:23:40 +0000
commit489e0e17370b162bcb8fdfe3e5e99b003db63bfd (patch)
tree86664f2f65c582105a27b7a7c3fbd4277f42f8b8 /devel/directfb/Makefile
parent- Update to 1.7.3 (diff)
- Update to 1.1.1
- Pass maintainship to submitter Submitted by: Anatoly Borodin (anatoly.borodin@gmail.com) via mail Approved by: miwi (mentor)
Notes
Notes: svn path=/head/; revision=213975
Diffstat (limited to 'devel/directfb/Makefile')
-rw-r--r--devel/directfb/Makefile53
1 files changed, 41 insertions, 12 deletions
diff --git a/devel/directfb/Makefile b/devel/directfb/Makefile
index 194dedafb1ca..2d439ee5203d 100644
--- a/devel/directfb/Makefile
+++ b/devel/directfb/Makefile
@@ -6,27 +6,28 @@
#
PORTNAME= directfb
-PORTVERSION= 0.9.16
-PORTREVISION= 8
+PORTVERSION= 1.1.1
CATEGORIES= devel
-MASTER_SITES= http://www.directfb.org/downloads/Old/
+MASTER_SITES= http://www.directfb.org/downloads/Core/ \
+ http://www.directfb.org/downloads/Old/
DISTNAME= DirectFB-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= anatoly.borodin@gmail.com
COMMENT= Graphic development lightweight API
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
-CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
- LDFLAGS="${PTHREAD_LIBS}"
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
USE_AUTOTOOLS= libtool:15
USE_SDL= sdl
GNU_CONFIGURE= yes
USE_GMAKE= yes
+USE_GNOME= gnomehack
USE_LDCONFIG= yes
USE_PERL5= yes
-PLIST_SUB+= DIRECTFB_VERSION=${PORTVERSION}
+PLIST_SUB+= DIRECTFB_VERSION=${PORTVERSION} DIRECTFB_VER=1.1-0
.if exists(${LOCALBASE}/lib/libfreetype.so.9)
WITH_FREETYPE2= yes
@@ -35,10 +36,35 @@ WITH_FREETYPE2= yes
.if defined(WITH_FREETYPE2)
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --enable-freetype
-PLIST_SUB+= WITH_FREETYPE2=""
+PLIST_SUB+= FREETYPE2=""
.else
CONFIGURE_ARGS+= --disable-freetype
-PLIST_SUB+= WITH_FREETYPE2="@comment "
+PLIST_SUB+= FREETYPE2="@comment "
+.endif
+
+.if defined(WITH_X11)
+USE_XORG+= x11 xproto
+CONFIGURE_ARGS+= --enable-x11
+PLIST_SUB+= X11=""
+.else
+CONFIGURE_ARGS+= --disable-x11
+PLIST_SUB+= X11="@comment "
+.endif
+
+.if defined(WITH_SDL)
+USE_SDL+= sdl
+CONFIGURE_ARGS+= --enable-sdl
+PLIST_SUB+= SDL="" GFXDRIVERS=""
+.else
+CONFIGURE_ARGS+= --disable-sdl
+PLIST_SUB+= SDL="@comment " GFXDRIVERS="@comment "
+
+.endif
+
+.if defined(WITH_SDL) || defined(WITH_X11)
+PLIST_SUB+= INPUTDRIVERS=""
+.else
+PLIST_SUB+= INPUTDRIVERS="@comment "
.endif
MAN1= directfb-csource.1 dfbg.1
@@ -50,9 +76,12 @@ MAN5= directfbrc.5
BROKEN= Does not compile on alpha
.endif
+.if ${OSVERSION} < 600000
+BROKEN= 5.x not supported
+.endif
+
post-patch:
- @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
- 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
- ${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure.in
.include <bsd.port.post.mk>