Lines 7-59
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= blockrage |
8 |
PORTNAME= blockrage |
9 |
PORTVERSION= 0.2.3 |
9 |
PORTVERSION= 0.2.3 |
10 |
PORTREVISION= 2 |
10 |
PORTREVISION= 3 |
11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \ |
|
|
13 |
SF/nemysisfreebsdp/:icons |
14 |
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ |
15 |
${PORTNAME}_icons.tar.gz:icons |
16 |
DIST_SUBDIR= ${PORTNAME} |
13 |
|
17 |
|
14 |
MAINTAINER= nemysis@gmx.ch |
18 |
MAINTAINER= nemysis@gmx.ch |
15 |
COMMENT= Falling blocks game with 2-player hotseat mode |
19 |
COMMENT= Falling blocks game with 2-player hotseat mode |
16 |
|
20 |
|
17 |
LICENSE= GPLv2 |
21 |
LICENSE= GPLv2 |
18 |
|
22 |
|
|
|
23 |
BUILD_DEPENDS= pngtopnm:${PORTSDIR}/graphics/netpbm |
24 |
|
19 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
20 |
ALL_TARGET= ${PORTNAME} |
26 |
ALL_TARGET= ${PORTNAME} |
21 |
USE_SDL= sdl image mixer |
27 |
USE_SDL= sdl image mixer |
22 |
MAKE_JOBS_SAFE= yes |
28 |
MAKE_JOBS_SAFE= yes |
23 |
|
29 |
|
24 |
PLIST_FILES= bin/${PORTNAME} |
30 |
PLIST_FILES= bin/${PORTNAME} \ |
|
|
31 |
share/pixmaps/${PORTNAME}.png \ |
32 |
share/icons/hicolor/32x32/apps/${PORTNAME}.png \ |
33 |
share/icons/hicolor/48x48/apps/${PORTNAME}.png \ |
34 |
share/icons/hicolor/64x64/apps/${PORTNAME}.png \ |
35 |
share/icons/hicolor/72x72/apps/${PORTNAME}.png \ |
36 |
share/icons/hicolor/96x96/apps/${PORTNAME}.png |
25 |
|
37 |
|
26 |
MAN6= ${PORTNAME}.6 |
38 |
MAN6= ${PORTNAME}.6 |
27 |
|
39 |
|
28 |
PORTDATA= * |
40 |
PORTDATA= * |
29 |
PORTDOCS= ChangeLog KNOWN_BUGS README TODO |
41 |
PORTDOCS= ChangeLog KNOWN_BUGS README TODO |
30 |
|
42 |
|
|
|
43 |
INSTALLS_ICONS= yes |
44 |
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 |
45 |
|
31 |
SUB_FILES= ${PORTNAME} |
46 |
SUB_FILES= ${PORTNAME} |
32 |
|
47 |
|
|
|
48 |
DESKTOP_ENTRIES="Block Rage" "${COMMENT}" "${PORTNAME}" \ |
49 |
"${PORTNAME}" "Game;ArcadeGame;" ${FALSE} |
50 |
|
33 |
.include <bsd.port.options.mk> |
51 |
.include <bsd.port.options.mk> |
34 |
|
52 |
|
|
|
53 |
post-patch: |
54 |
@${REINPLACE_CMD} -e 's|MYCC=gcc|MYCC=|' \ |
55 |
-e 's| -O2 -Wall||' \ |
56 |
${WRKSRC}/configure |
57 |
|
35 |
do-install: |
58 |
do-install: |
36 |
# Scripts |
|
|
37 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
59 |
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin |
38 |
|
|
|
39 |
# Executable |
40 |
${MKDIR} ${DATADIR} |
60 |
${MKDIR} ${DATADIR} |
41 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR} |
61 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR} |
42 |
|
62 |
|
|
|
63 |
.for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc |
64 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) |
65 |
.endfor |
66 |
|
43 |
post-install: |
67 |
post-install: |
44 |
${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6 |
68 |
.for s in ${ICON_SIZES} |
|
|
69 |
${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps |
70 |
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ |
71 |
${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png |
72 |
.endfor |
73 |
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps |
45 |
|
74 |
|
46 |
# Data |
75 |
${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6 |
47 |
. for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc |
|
|
48 |
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) |
49 |
. endfor |
50 |
|
76 |
|
51 |
# Documentation |
|
|
52 |
.if ${PORT_OPTIONS:MDOCS} |
77 |
.if ${PORT_OPTIONS:MDOCS} |
53 |
${MKDIR} ${DOCSDIR} |
78 |
${MKDIR} ${DOCSDIR} |
54 |
. for f in ${PORTDOCS} |
79 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
55 |
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} |
|
|
56 |
. endfor |
57 |
.endif |
80 |
.endif |
58 |
|
81 |
|
59 |
.include <bsd.port.mk> |
82 |
.include <bsd.port.mk> |