1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/directfb/Makefile
Shaun Amott 5c25b526b9 Take maintainership: I'm working on getting the latest versions running
on FreeBSD.

Approved by:	ahze (mentor)
2006-06-22 02:19:38 +00:00

58 lines
1.4 KiB
Makefile

# New ports collection makefile for: DirectFB
# Date created: 19 October 2002
# Whom: Devaux Fabien <fab@gcu.info>
#
# $FreeBSD$
#
PORTNAME= directfb
PORTVERSION= 0.9.16
PORTREVISION= 5
CATEGORIES= devel
MASTER_SITES= http://www.directfb.org/downloads/Old/
DISTNAME= DirectFB-${PORTVERSION}
MAINTAINER= shaun@FreeBSD.org
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}"
USE_SDL= sdl
GNU_CONFIGURE= yes
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
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
BROKEN= Does not compile on alpha 5.x
.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
.include <bsd.port.post.mk>