summaryrefslogtreecommitdiffstats
path: root/games/secretmaryochronicles/Makefile
blob: dc702c02cf996dcfcdd49f0377a8f453b116f189 (plain)
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
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$

PORTNAME=	secretmaryochronicles
PORTVERSION=	1.10.git20120512
PORTREVISION=	6
CATEGORIES=	games
MASTER_SITES=	http://mirror.amdmi3.ru/distfiles/
#		SF/smclone/Secret%20Maryo%20Chronicles/${PORTVERSION}
DISTNAME=	smc-${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Secret Maryo Chronicles two-dimensional platform game

LIB_DEPENDS=	libCEGUIBase-0.7.9.so:${PORTSDIR}/graphics/cegui \
		libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
		libpng15.so:${PORTSDIR}/graphics/png

USE_BZIP2=	yes
USE_AUTOTOOLS=	aclocal:env autoheader:env autoconf:env automake:env
GNU_CONFIGURE=	yes
USE_SDL=	sdl image mixer ttf
USE_GL=		gl glu
USES=		gettext gmake pkgconfig

CPPFLAGS+=	-I${LOCALBASE}/include
CXXFLAGS+=	-DBOOST_FILESYSTEM_VERSION=3
LDFLAGS+=	-L${LOCALBASE}/lib

DATADIR=	${PREFIX}/share/smc

WRKSRC=		${WRKDIR}/smc

PORTDOCS=	controls.html history.html style.css

NO_STAGE=	yes

OPTIONS_DEFINE=	DOCS 

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/autogen.sh

run-autotools:
	cd ${WRKSRC} && ${SH} ./autogen.sh
	@${REINPLACE_CMD} -e '/^LIBS =/ s|$$|$$(INTLLIBS)|' \
		${WRKSRC}/src/Makefile.in

.if ${PORT_OPTIONS:MDOCS}
post-install:
	${MKDIR} ${DOCSDIR}
.  for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.  endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud