aboutsummaryrefslogtreecommitdiff
path: root/devel/clanlib/Makefile
blob: 691a9755ff9da65825f560ac76583ce0882ef458 (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
54
55
56
57
58
59
# 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>