Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2013 21:23:12 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337456 - head/games/tuxkart
Message-ID:  <201312252123.rBPLNCvw016178@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Wed Dec 25 21:23:12 2013
New Revision: 337456
URL: http://svnweb.freebsd.org/changeset/ports/337456

Log:
  - Change master sites
  - USES gmake instead of USE_GMAKE
  - Support STAGEDIR
  - Change Desktop entry file
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/tuxkart/Makefile   (contents, props changed)

Modified: head/games/tuxkart/Makefile
==============================================================================
--- head/games/tuxkart/Makefile	Wed Dec 25 21:08:15 2013	(r337455)
+++ head/games/tuxkart/Makefile	Wed Dec 25 21:23:12 2013	(r337456)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312252123.rBPLNCvw016178>