freebsd-ports/devel/directfb/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

57 lines
1.3 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= 4
CATEGORIES= devel
MASTER_SITES= http://www.directfb.org/download/DirectFB/
DISTNAME= DirectFB-${PORTVERSION}
MAINTAINER= fab@gcu.info
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
USE_INC_LIBTOOL_VER= 13
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
.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'
.include <bsd.port.post.mk>