blob: ad0f2be96cb4aad265a53d453740bf9d30ba32e7 (
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: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= jigzo
PORTVERSION= 0.6.1
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= http://www.iua.upf.es/~mdeboer/resorama/jigzo/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= OpenGL jigsaw puzzle game
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL.txt
LIB_DEPENDS= libpng.so:graphics/png
USES= gmake jpeg tar:tgz
USE_SDL= sdl mixer
USE_GL= gl
MAKE_ARGS= CXX=${CXX}
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
PORTDOCS= *
DESKTOP_ENTRIES="Jigzo" \
"An OpenGL jigsaw puzzle game" \
"" \
"jigzo" \
"Game;LogicGame;KidsGame;" \
false
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e "s|int_p_NULL|NULL|g" \
${WRKSRC}/src/Loader.cxx
.for i in font image puzzles sound
@${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" \
${WRKSRC}/src/main.cxx
.endfor
@${FIND} ${WRKSRC} -name .thumbnails | ${XARGS} ${RM} -r
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC} && ${COPYTREE_SHARE} "font image puzzles sound" \
${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|