2003-01-19 15:26:13 +01:00
|
|
|
# New ports collection makefile for: DirectFB
|
|
|
|
# Date created: 19 October 2002
|
|
|
|
# Whom: Devaux Fabien <fab@gcu.info>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= directfb
|
2006-01-22 07:16:30 +01:00
|
|
|
PORTVERSION= 0.9.16
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 5
|
2003-01-19 15:26:13 +01:00
|
|
|
CATEGORIES= devel
|
2006-02-23 01:07:27 +01:00
|
|
|
MASTER_SITES= http://www.directfb.org/downloads/Old/
|
2003-01-19 15:26:13 +01:00
|
|
|
DISTNAME= DirectFB-${PORTVERSION}
|
|
|
|
|
2005-02-19 07:01:03 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Graphic development lightweight API
|
2003-01-19 15:26:13 +01:00
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
png.5:${PORTSDIR}/graphics/png
|
|
|
|
|
2004-03-08 00:39:10 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
|
2003-01-19 15:26:13 +01:00
|
|
|
LDFLAGS="${PTHREAD_LIBS}"
|
2004-03-08 00:39:10 +01:00
|
|
|
USE_SDL= sdl
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-01-19 15:26:13 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_PERL5= 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
|
|
|
|
|
2004-02-26 09:12:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
|
|
|
|
BROKEN= "Does not compile on alpha 5.x"
|
|
|
|
.endif
|
|
|
|
|
2003-01-19 15:26:13 +01:00
|
|
|
post-patch:
|
2003-11-13 15:45:08 +01:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
|
2003-01-19 15:26:13 +01:00
|
|
|
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g'
|
2006-01-31 00:59:11 +01:00
|
|
|
${REINPLACE_CMD} -e 's/-lc_r/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
|
2003-01-19 15:26:13 +01:00
|
|
|
|
2004-02-26 09:12:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|