Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= glasteroids |
8 |
PORTNAME= glasteroids |
9 |
PORTVERSION= 1.0 |
9 |
PORTVERSION= 1.0 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
12 |
MASTER_SITES= http://www.honors.montana.edu/~jjc/Glasteroids/ |
12 |
MASTER_SITES= http://www.honors.montana.edu/~jjc/Glasteroids/ |
13 |
DISTNAME= Glasteriods |
13 |
DISTNAME= Glasteriods |
Lines 15-46
Link Here
|
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
16 |
COMMENT= 3D Asteroids game for X Window System |
16 |
COMMENT= 3D Asteroids game for X Window System |
17 |
|
17 |
|
18 |
MAKEFILE= Makefile.FreeBSD |
18 |
LIB_DEPENDS= glut.3:${PORTSDIR}/graphics/libglut |
19 |
|
19 |
|
20 |
WRKSRC= ${WRKDIR}/Glasteroids |
20 |
WRKSRC= ${WRKDIR}/Glasteroids |
21 |
|
21 |
|
22 |
USE_X_PREFIX= yes |
22 |
USE_X_PREFIX= yes |
23 |
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" |
23 |
USE_GL= yes |
24 |
USE_MESA= yes |
24 |
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
25 |
|
25 |
PTHREAD_LIBS="${PTHREAD_LIBS}" |
26 |
pre-build: |
26 |
MAKEFILE= ${FILESDIR}/Makefile.FreeBSD |
27 |
@ ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC} |
|
|
28 |
|
27 |
|
29 |
do-install: |
28 |
do-install: |
30 |
@ ${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids |
29 |
${INSTALL_PROGRAM} -m 2755 -o root -g games ${WRKSRC}/Glasteroids ${PREFIX}/bin/glasteroids |
31 |
@ ${MKDIR} ${PREFIX}/share/glasteroids |
30 |
@${MKDIR} ${DATADIR} |
32 |
@ ${INSTALL_DATA} ${WRKSRC}/gameText.txf ${PREFIX}/share/glasteroids |
31 |
${INSTALL_DATA} ${WRKSRC}/gameText.txf ${DATADIR} |
33 |
@ cd ${WRKSRC}; tar -cf - scores.txt textures | \ |
32 |
${TAR} -C ${WRKSRC} -cf - scores.txt textures | \ |
34 |
( cd ${PREFIX}/share/glasteroids; tar -xf - ) |
33 |
${TAR} -C ${DATADIR} --unlink -xf - |
35 |
@ ${CHMOD} a+rx ${PREFIX}/share/glasteroids/textures |
34 |
@${CHMOD} a+rx ${DATADIR}/textures |
36 |
@ ${CHMOD} g+rw,a-x ${PREFIX}/share/glasteroids/scores.txt |
35 |
@${CHMOD} g+rw,a-x ${DATADIR}/scores.txt |
37 |
@ ${CHOWN} root:games ${PREFIX}/share/glasteroids/scores.txt |
36 |
@${CHOWN} root:games ${DATADIR}/scores.txt |
38 |
|
|
|
39 |
post-install: |
40 |
.if !defined(NOPORTDOCS) |
37 |
.if !defined(NOPORTDOCS) |
41 |
@ ${MKDIR} ${PREFIX}/share/doc/glasteroids |
38 |
@${MKDIR} ${DOCSDIR} |
42 |
@ ${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/glasteroids |
39 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
43 |
@ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/glasteroids |
|
|
44 |
.endif |
40 |
.endif |
45 |
|
41 |
|
46 |
.include <bsd.port.mk> |
42 |
.include <bsd.port.mk> |