Lines 2-20
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= pingus |
4 |
PORTNAME= pingus |
5 |
PORTVERSION= 0.7.2 |
5 |
PORTVERSION= 0.7.6 |
6 |
PORTREVISION= 13 |
6 |
PORTREVISION= 1 |
7 |
CATEGORIES= games |
7 |
CATEGORIES= games |
8 |
MASTER_SITES= http://pingus.seul.org/files/ |
8 |
MASTER_SITES= http://pingus.seul.org/files/ \ |
|
|
9 |
${MASTER_SITE_GOOGLE_CODE} |
9 |
|
10 |
|
10 |
MAINTAINER= acm@FreeBSD.org |
11 |
MAINTAINER= acm@FreeBSD.org |
11 |
COMMENT= Free Lemmings-like game |
12 |
COMMENT= Free Lemmings-like game |
12 |
|
13 |
|
|
|
14 |
LICENSE= GPLv3 |
15 |
|
13 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ |
16 |
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ |
14 |
libboost_regex.so:${PORTSDIR}/devel/boost-libs \ |
17 |
libboost_signals.so:${PORTSDIR}/devel/boost-libs \ |
15 |
libphysfs.so:${PORTSDIR}/devel/physfs |
18 |
libphysfs.so:${PORTSDIR}/devel/physfs |
16 |
|
19 |
|
17 |
USES= iconv scons tar:bzip2 |
20 |
USES= iconv scons tar:bzip2 compiler:features |
18 |
MAKE_ARGS= with_linuxusbmouse=0 \ |
21 |
MAKE_ARGS= with_linuxusbmouse=0 \ |
19 |
with_linuxevdev=0 |
22 |
with_linuxevdev=0 |
20 |
USE_SDL= sdl image mixer |
23 |
USE_SDL= sdl image mixer |
Lines 21-37
Link Here
|
21 |
|
24 |
|
22 |
DESKTOP_ENTRIES="Pingus" "${COMMENT}" \ |
25 |
DESKTOP_ENTRIES="Pingus" "${COMMENT}" \ |
23 |
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ |
26 |
"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \ |
24 |
"pingus" "" "false" |
27 |
"pingus" "" false |
25 |
|
28 |
|
26 |
PLIST= ${WRKDIR}/pkg-plist |
29 |
PLIST= ${WRKDIR}/pkg-plist |
27 |
|
30 |
|
|
|
31 |
.include <bsd.port.pre.mk> |
32 |
|
33 |
.if !${COMPILER_FEATURES:Mc++0x} |
34 |
IGNORE_MSG= pingus needs a compiler supporting c++0x. Try gcc 4.6 \ |
35 |
or clang 3.2 (or greater) and specify CC and CXX in /etc/make.conf |
36 |
IGNORE= ${IGNORE_MSG} |
37 |
.endif |
38 |
|
28 |
post-patch: |
39 |
post-patch: |
29 |
@${REINPLACE_CMD} -e 's|add_path("data")|add_path("${DATADIR}")|g' \ |
40 |
${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/SConscript |
30 |
${WRKSRC}/src/pingus_main.cpp |
41 |
${REINPLACE_CMD} -e 's|g++|${CXX}|' ${WRKSRC}/SConscript |
|
|
42 |
${REINPLACE_CMD} -r 's|(CPPPATH.*)\[\]|\1\["${LOCALBASE}/include", \ |
43 |
"${LOCALBASE}/include/SDL"\]|' ${WRKSRC}/SConscript |
44 |
${REINPLACE_CMD} -r 's|(LIBPATH.*)\[\]|\1\["${LOCALBASE}/lib"\]|' \ |
45 |
${WRKSRC}/SConscript |
31 |
|
46 |
|
|
|
47 |
do-build: |
48 |
# shouldn't be necessary, but scons will fail to build without this |
49 |
cd ${WRKSRC} && ${MAKE_CMD} |
50 |
|
32 |
pre-install: |
51 |
pre-install: |
33 |
@${RM} -f ${PLIST} |
52 |
@${RM} -f ${PLIST} |
|
|
53 |
@${PRINTF} "#!/bin/sh\nexec \"${DATADIR}/pingus\" --datadir \"${DATADIR}\"" > ${WRKSRC}/build/${PORTNAME}.sh |
34 |
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST} |
54 |
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST} |
|
|
55 |
@${ECHO_CMD} "%%DATADIR%%/${PORTNAME}" >> ${PLIST} |
35 |
@${ECHO_CMD} "share/pixmaps/${PORTNAME}.ico" >> ${PLIST} |
56 |
@${ECHO_CMD} "share/pixmaps/${PORTNAME}.ico" >> ${PLIST} |
36 |
@cd ${WRKSRC}/data && \ |
57 |
@cd ${WRKSRC}/data && \ |
37 |
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ |
58 |
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ |
Lines 42-48
Link Here
|
42 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
63 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
43 |
@cd ${WRKSRC}/data && \ |
64 |
@cd ${WRKSRC}/data && \ |
44 |
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
65 |
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
45 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
66 |
${INSTALL_SCRIPT} ${WRKSRC}/build/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
46 |
${INSTALL_DATA} ${WRKSRC}/src/win32/icon1.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico |
67 |
${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} ${STAGEDIR}${DATADIR} |
|
|
68 |
${INSTALL_DATA} ${WRKSRC}/data/images/icons/pingus.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico |
47 |
|
69 |
|
48 |
.include <bsd.port.mk> |
70 |
.include <bsd.port.post.mk> |