diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-25 21:23:12 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-25 21:23:12 +0000 |
commit | 66e9463da81962a62578a312091f3e2a7e62a772 (patch) | |
tree | e47320a2de74cefc845841c388d1853003af224b /games/tuxkart | |
parent | 9a57e8b7e38844bb2c1f9ab7fa350a8721f6fb99 (diff) | |
download | ports-66e9463da81962a62578a312091f3e2a7e62a772.tar.gz ports-66e9463da81962a62578a312091f3e2a7e62a772.zip |
Notes
Diffstat (limited to 'games/tuxkart')
-rw-r--r-- | games/tuxkart/Makefile | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/games/tuxkart/Makefile b/games/tuxkart/Makefile index 7bf2edbc2487..c624ccb6f6d6 100644 --- a/games/tuxkart/Makefile +++ b/games/tuxkart/Makefile @@ -6,7 +6,7 @@ PORTVERSION= 0.4.0 PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://tuxkart.sourceforge.net/dist/ \ - SF/nemysisfreebsdp/:icons + SF/nemysisfreebsdp/${CATEGORIES}/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} @@ -18,10 +18,10 @@ LICENSE= GPLv2 BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib +USES= gmake USE_GL= gl GNU_CONFIGURE= yes CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lusbhid" -USE_GMAKE= yes CONFIGURE_ARGS= --with-plib=${LOCALBASE} CPPFLAGS+= -I${LOCALBASE}/include @@ -34,18 +34,15 @@ DOCSRCDIR2= ${WRKSRC}/doc DOCSDIR2= ${DOCSDIR}/doc DOC_FILES2= *.png *.html -DESKTOP_ENTRIES="TuxKart" "${COMMENT}" ${PORTNAME} \ - "${PORTNAME}" "Game;ArcadeGame;" false - OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include <bsd.port.options.mk> +DESKTOP_ENTRIES="TuxKart" "" ${PORTNAME} \ + "${PORTNAME}" "Game;SportsGame;" "" post-patch: @${REINPLACE_CMD} -e 's|-O6|${PTHREAD_CFLAGS}|g ; \ - s|-lpthread|${PTHREAD_LIBS}|g ; \ - s|datadir/games|datadir|g' ${WRKSRC}/configure + s|-lpthread|${PTHREAD_LIBS}|g ; \ + s|datadir/games|datadir|g' ${WRKSRC}/configure @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|$$(prefix)/games|@bindir@|g ; \ s|$$(datadir)/games|$$(datadir)|g' @@ -53,13 +50,12 @@ post-patch: ${WRKSRC}/Makefile.in post-install: - ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} - @${MKDIR} ${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR2} + ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} .include <bsd.port.mk> |