1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/devel/clanlib/Makefile
2004-02-04 05:21:48 +00:00

60 lines
1.6 KiB
Makefile

# New ports collection makefile for: clanlib
# Date created: 10 May 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= clanlib
PORTVERSION= 0.6.5.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= http://clanlib.org/~sphair/download/
DISTNAME= ClanLib-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= jylefort@brutele.be
COMMENT= Cross-platform game SDK
LIB_DEPENDS= Hermes:${PORTSDIR}/graphics/Hermes \
jpeg:${PORTSDIR}/graphics/jpeg \
png:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
mikmod:${PORTSDIR}/audio/libmikmod \
vorbis:${PORTSDIR}/audio/libvorbis
# conflicts with devel/clanlib-devel
CONFLICTS= clanlib-0.7.*
WRKSRC= ${WRKDIR}/ClanLib-${PORTVERSION:R}
USE_XLIB= yes
USE_GL= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-directfb --disable-lua
INSTALLS_SHLIB= yes
.if !defined(NOPORTDOCS)
USE_PERL5_BUILD= yes
ALL_TARGET= all docs
INSTALL_TARGET= install docs_install
.endif
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
${WRKSRC}/Sources/TTF/font_ttf.cpp
@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
${WRKSRC}/Setup/Unix/clanlib-config.in
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|' \
${WRKSRC}/Documentation/FAQ.theme \
${WRKSRC}/Documentation/Reference/pce2 \
${WRKSRC}/Documentation/Utilities/transform.sh
@${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|' \
${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
.include <bsd.port.mk>