1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/clanlib1/Makefile
2014-12-25 20:54:41 +00:00

51 lines
1.2 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= clanlib
PORTVERSION= 1.0.0
PORTREVISION= 6
CATEGORIES= devel
MASTER_SITES= http://www.clanlib.org/download/releases-1.0/
DISTNAME= ClanLib-${PORTVERSION}
PKGNAMESUFFIX= 1
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform game SDK
LICENSE= ZLIB
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng.so:${PORTSDIR}/graphics/png \
libmikmod.so:${PORTSDIR}/audio/libmikmod \
libvorbis.so:${PORTSDIR}/audio/libvorbis
USES= gmake libtool pathfix pkgconfig tar:tgz
USE_XORG= x11 xi
USE_LDCONFIG= yes
USE_SDL= gfx
USE_GL= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-docs \
--enable-clanDisplay \
--enable-clanGL \
--enable-clanSDL \
--enable-clanSound \
--enable-clanNetwork \
--enable-clanGUI \
--enable-clanMikMod \
--enable-clanVorbis \
--enable-getaddr
PLIST_SUB+= VER=${PORTVERSION:R}
post-patch:
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|SDL/SDL|SDL|g'
@${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
.include <bsd.port.mk>