2012-10-02 12:06:27 +02:00
|
|
|
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= clanlib
|
|
|
|
PORTVERSION= 1.0.0
|
2015-06-23 16:12:14 +02:00
|
|
|
PORTREVISION= 7
|
2012-10-02 12:06:27 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.clanlib.org/download/releases-1.0/
|
2013-09-16 13:30:07 +02:00
|
|
|
PKGNAMESUFFIX= 1
|
2015-09-21 17:48:20 +02:00
|
|
|
DISTNAME= ClanLib-${PORTVERSION}
|
2012-10-02 12:06:27 +02:00
|
|
|
|
2013-11-25 01:03:38 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-02 12:06:27 +02:00
|
|
|
COMMENT= Cross-platform game SDK
|
|
|
|
|
|
|
|
LICENSE= ZLIB
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
|
|
libmikmod.so:audio/libmikmod \
|
|
|
|
libvorbis.so:audio/libvorbis
|
2012-10-02 12:06:27 +02:00
|
|
|
|
2015-09-21 17:48:20 +02:00
|
|
|
USES= alias gmake jpeg libtool pathfix pkgconfig tar:tgz
|
2012-10-02 12:06:27 +02:00
|
|
|
USE_XORG= x11 xi
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_SDL= gfx
|
|
|
|
USE_GL= yes
|
|
|
|
|
2014-12-24 00:17:19 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2013-02-14 10:42:12 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-10-02 12:06:27 +02:00
|
|
|
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
|
2015-06-23 16:12:14 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2012-10-02 12:06:27 +02:00
|
|
|
|
|
|
|
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>
|