aboutsummaryrefslogtreecommitdiff
path: root/devel/clanlib1/Makefile
blob: e984e612ff591dc54788e02ceb25c1977454ed9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$

PORTNAME=	clanlib
PORTVERSION=	1.0.0
PORTREVISION=	8
CATEGORIES=	devel
MASTER_SITES=	http://www.clanlib.org/download/releases-1.0/
PKGNAMESUFFIX=	1
DISTNAME=	ClanLib-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Cross-platform game SDK

LICENSE=	ZLIB
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libpng.so:graphics/png \
		libmikmod.so:audio/libmikmod \
		libvorbis.so:audio/libvorbis \
		libogg.so:audio/libogg

USES=		alias gmake jpeg libtool localbase:ldflags pathfix \
		pkgconfig tar:tgz
USE_XORG=	x11 xi xxf86vm
USE_LDCONFIG=	yes
USE_SDL=	gfx
USE_GL=		gl glu

CXXFLAGS+=	-Wno-c++11-narrowing

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
INSTALL_TARGET=	install-strip

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>