svn commit: r401067 - head/games/asteroids3d
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Nov 8 17:37:20 UTC 2015
Author: amdmi3
Date: Sun Nov 8 17:37:19 2015
New Revision: 401067
URL: https://svnweb.freebsd.org/changeset/ports/401067
Log:
- Switch to USES=autoreconf
- Simplify
- Switch to options helpers
Modified:
head/games/asteroids3d/Makefile
Modified: head/games/asteroids3d/Makefile
==============================================================================
--- head/games/asteroids3d/Makefile Sun Nov 8 17:22:50 2015 (r401066)
+++ head/games/asteroids3d/Makefile Sun Nov 8 17:37:19 2015 (r401067)
@@ -3,7 +3,7 @@
PORTNAME= asteroids3d
PORTVERSION= 0.5.1
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/a3d/${PORTVERSION}/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
@@ -17,8 +17,7 @@ COMMENT= First-person shooter blowing up
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-USES= tar:bzip2
-USE_AUTOTOOLS= aclocal autoheader
+USES= autoreconf tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV= with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}"
USE_GL= glut
@@ -26,8 +25,7 @@ USE_GL= glut
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PORTDOCS= README.html
-OPTIONS_DEFINE= DOCS
+PORTDOCS= *
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 128x128
@@ -35,16 +33,15 @@ ICON_SIZES= 32x32 48x48 64x64 72x72 96x9
DESKTOP_ENTRIES="Asteroids3D" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
-pre-configure:
- @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/autogen.sh
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/3d/3D/} \
+ ${INSTALL_PROGRAM} ${WRKSRC}/asteroids3D \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
- @(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.ub *.ppm" \
+ @(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.ub *.ppm" \
${STAGEDIR}${DATADIR})
.for s in ${ICON_SIZES}
@@ -55,7 +52,8 @@ do-install:
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list