aboutsummaryrefslogtreecommitdiff
path: root/games/py-fife/Makefile
blob: 71dd3a0b55497d2d4cbae32a0919fa20a48b4dae (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
# Created by: GreenDog <fiziologus@gmail.com>
# $FreeBSD$

PORTNAME=		fife
PORTVERSION=		0.3.5
PORTREVISION=	3
CATEGORIES=		games
MASTER_SITES=		http://sourceforge.net/projects/${PORTNAME}/files/active/src/:source \
			http://sourceforge.net/projects/${PORTNAME}/files/active/demos/:demo \
			http://sourceforge.net/projects/${PORTNAME}/files/active/tools/:tools
PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
DISTNAME=		${PORTNAME}_${PORTVERSION}
DISTFILES+=		${DISTNAME}.tar.gz:source \
			${DISTNAME}_demos.tar.gz:demo \
			${DISTNAME}_tools.tar.gz:tools

MAINTAINER=		fiziologus@gmail.com
COMMENT=		Flexible Isometric Free Engine

LICENSE=		LGPL21

BUILD_DEPENDS=		${LOCALBASE}/bin/swig2.0:${PORTSDIR}/devel/swig20
LIB_DEPENDS=		libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
			libguichan.so:${PORTSDIR}/devel/guichan \
			libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
			libpng15.so:${PORTSDIR}/graphics/png

USES=			openal:al pkgconfig scons
USE_GL=			gl
USE_PYTHON=		2
USE_SDL=		sdl ttf image
USE_XORG=		xcursor

ALL_TARGET=		fife-python
INSTALL_TARGET=		install-python
MAKE_ENV+=		SWIG=${LOCALBASE}/bin/swig2.0

OPTIONS_DEFINE=		DOCS

post-patch:
	${REINPLACE_CMD} -e 's/X11R6/local/g; s/libpng/ligpng15/g' ${WRKSRC}/build/openbsd4-config.py && \
		${MV} ${WRKSRC}/build/openbsd4-config.py ${WRKSRC}/build/${PYTHON_PLATFORM}-config.py

OPTIONS_DEFINE=	DOCS

post-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	${MV} ${WRKDIR}/tools ${STAGEDIR}${DATADIR}
	${MV} ${WRKDIR}/demos ${STAGEDIR}${DATADIR}
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in README AUTHORS CHANGES COPYING
	${MV} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>