Lines 3-47
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= asteroids3d |
4 |
PORTNAME= asteroids3d |
5 |
PORTVERSION= 0.5.1 |
5 |
PORTVERSION= 0.5.1 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= games |
7 |
CATEGORIES= games |
8 |
MASTER_SITES= SF/a3d/${PORTVERSION}/ \ |
8 |
MASTER_SITES= SF/a3d/${PORTVERSION}/ \ |
9 |
SF/nemysisfreebsdp/:icons |
9 |
SF/nemysisfreebsdp/:icons |
10 |
DISTNAME= ${PORTNAME:S/3d/3D/}-${DISTVERSION} |
10 |
DISTNAME= ${PORTNAME:S/3d/3D/}-${DISTVERSION} |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
12 |
asteroids3d_icons.tbz:icons |
12 |
${PORTNAME}_icons.tar.bz2:icons |
|
|
13 |
DIST_SUBDIR= ${PORTNAME} |
13 |
|
14 |
|
14 |
MAINTAINER= nemysis@gmx.ch |
15 |
MAINTAINER= nemysis@gmx.ch |
15 |
COMMENT= First-person shooter blowing up asteroids in 3D space |
16 |
COMMENT= First-person shooter blowing up asteroids in 3D space |
16 |
|
17 |
|
17 |
LICENSE= GPLv2 |
18 |
LICENSE= GPLv2 |
18 |
|
19 |
|
19 |
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \ |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION} |
20 |
drm:${PORTSDIR}/graphics/libdrm \ |
|
|
21 |
xcb:${PORTSDIR}/x11/libxcb |
22 |
|
21 |
|
23 |
USE_BZIP2= yes |
22 |
USE_BZIP2= yes |
24 |
USE_AUTOTOOLS= aclocal autoheader |
23 |
USE_AUTOTOOLS= aclocal autoheader |
25 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ENV= with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}" |
25 |
CONFIGURE_ENV= with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}" |
27 |
USE_XORG= x11 xau xdamage xdmcp xext xfixes xi xrandr xrender xxf86vm |
|
|
28 |
USE_GL= glut glu |
26 |
USE_GL= glut glu |
29 |
MAKE_JOBS_SAFE= yes |
27 |
MAKE_JOBS_SAFE= yes |
30 |
|
28 |
|
31 |
CFLAGS+= -I${LOCALBASE}/include |
29 |
CFLAGS+= -I${LOCALBASE}/include |
32 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
LDFLAGS+= -L${LOCALBASE}/lib |
33 |
|
31 |
|
34 |
WRKSRC= ${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION} |
|
|
35 |
|
36 |
PLIST_FILES= bin/${PORTNAME} \ |
37 |
share/pixmaps/${PORTNAME}_128.png \ |
38 |
share/pixmaps/${PORTNAME}_48.png |
39 |
|
40 |
PORTDATA= * |
41 |
PORTDOCS= README.html |
32 |
PORTDOCS= README.html |
42 |
|
33 |
|
|
|
34 |
INSTALLS_ICONS= yes |
35 |
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128 |
36 |
|
43 |
DESKTOP_ENTRIES="Asteroids3D" "${COMMENT}" \ |
37 |
DESKTOP_ENTRIES="Asteroids3D" "${COMMENT}" \ |
44 |
"${PREFIX}/share/pixmaps/${PORTNAME}_48.png" \ |
38 |
"${PREFIX}/share/pixmaps/${PORTNAME}.png" \ |
45 |
"${PORTNAME}" "Game;ArcadeGame;" false |
39 |
"${PORTNAME}" "Game;ArcadeGame;" false |
46 |
|
40 |
|
47 |
pre-configure: |
41 |
pre-configure: |
Lines 58-68
Link Here
|
58 |
${MKDIR} ${DATADIR} |
52 |
${MKDIR} ${DATADIR} |
59 |
@(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.ub *.ppm" ${DATADIR}) |
53 |
@(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.ub *.ppm" ${DATADIR}) |
60 |
|
54 |
|
61 |
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps |
55 |
post-install: |
|
|
56 |
.for s in ${ICON_SIZES} |
57 |
${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps |
58 |
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ |
59 |
${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png |
60 |
.endfor |
61 |
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps/ |
62 |
|
62 |
|
63 |
.if ${PORT_OPTIONS:MDOCS} |
63 |
.if ${PORT_OPTIONS:MDOCS} |
64 |
${MKDIR} ${DOCSDIR} |
64 |
${MKDIR} ${DOCSDIR} |
65 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
65 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
66 |
.endif |
66 |
.endif |
|
|
67 |
@-update-desktop-database -q |
67 |
|
68 |
|
68 |
.include <bsd.port.mk> |
69 |
.include <bsd.port.mk> |