Import devel/clanlib1 version 1.0.0_7
[dports.git] / devel / clanlib1 / Makefile
1 # Created by: Maxim Sobolev <sobomax@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       clanlib
5 PORTVERSION=    1.0.0
6 PORTREVISION=   7
7 CATEGORIES=     devel
8 MASTER_SITES=   http://www.clanlib.org/download/releases-1.0/
9 PKGNAMESUFFIX=  1
10 DISTNAME=       ClanLib-${PORTVERSION}
11
12 MAINTAINER=     ports@FreeBSD.org
13 COMMENT=        Cross-platform game SDK
14
15 LICENSE=        ZLIB
16
17 LIB_DEPENDS=    libpng.so:${PORTSDIR}/graphics/png \
18                 libmikmod.so:${PORTSDIR}/audio/libmikmod \
19                 libvorbis.so:${PORTSDIR}/audio/libvorbis
20
21 USES=           alias gmake jpeg libtool pathfix pkgconfig tar:tgz
22 USE_XORG=       x11 xi
23 USE_LDCONFIG=   yes
24 USE_SDL=        gfx
25 USE_GL=         yes
26
27 CPPFLAGS+=      -I${LOCALBASE}/include
28 LDFLAGS+=       -L${LOCALBASE}/lib
29 GNU_CONFIGURE=  yes
30 CONFIGURE_ARGS= --disable-docs \
31                 --enable-clanDisplay \
32                 --enable-clanGL \
33                 --enable-clanSDL \
34                 --enable-clanSound \
35                 --enable-clanNetwork \
36                 --enable-clanGUI \
37                 --enable-clanMikMod \
38                 --enable-clanVorbis \
39                 --enable-getaddr
40 INSTALL_TARGET= install-strip
41
42 PLIST_SUB+=     VER=${PORTVERSION:R}
43
44 post-patch:
45         @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
46                 's|SDL/SDL|SDL|g'
47         @${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
48                 ${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
49
50 .include <bsd.port.mk>