Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 13:20:16 +0000 (UTC)
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334484 - head/games/openjazz
Message-ID:  <201311211320.rALDKG0u098163@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: martymac
Date: Thu Nov 21 13:20:15 2013
New Revision: 334484
URL: http://svnweb.freebsd.org/changeset/ports/334484

Log:
  - Enable staging
  - Work in a subdir of WRKDIR
  - Update USES
  - Strip binary

Modified:
  head/games/openjazz/Makefile

Modified: head/games/openjazz/Makefile
==============================================================================
--- head/games/openjazz/Makefile	Thu Nov 21 13:12:53 2013	(r334483)
+++ head/games/openjazz/Makefile	Thu Nov 21 13:20:15 2013	(r334484)
@@ -3,6 +3,7 @@
 
 PORTNAME=	openjazz
 PORTVERSION=	20120819
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	http://alister.eu/jazz/oj/ \
 		LOCAL/martymac
@@ -13,27 +14,34 @@ COMMENT=	Free re-implementation of the J
 
 LICENSE=	GPLv2
 
-NO_WRKSUBDIR=	yes
 USE_ZIP=	yes
-USE_GMAKE=	yes
-ALL_TARGET=	OpenJazz
-USE_XORG=	x11 xext xrandr xrender xau xdmcp
-USE_SDL=	sdl
+WRKSRC=	${WRKDIR}/${PORTNAME}
+EXTRACT_AFTER_ARGS=	-d ${WRKSRC}
 
 USE_DOS2UNIX=	yes
 DOS2UNIX_REGEX=	.*\.(h|cpp)
 
+USES=	gmake
+ALL_TARGET=	OpenJazz
+USE_XORG=	x11 xext xrandr xrender xau xdmcp
+USE_SDL=	sdl
+
 CPPFLAGS+=	-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
 		-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} `${SDL_CONFIG} --libs`
 
 SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
+pre-extract:
+	@${MKDIR} ${WRKSRC}
+
 do-install:
-	@${MKDIR} ${DATADIR}
-	@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${DATADIR}/
-	@${INSTALL_SCRIPT} ${WRKDIR}/OpenJazz ${PREFIX}/bin/openjazz
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	@${INSTALL_DATA} ${WRKSRC}/openjazz.000 ${STAGEDIR}${DATADIR}
+	@${INSTALL_SCRIPT} ${WRKSRC}/OpenJazz ${STAGEDIR}${PREFIX}/bin/openjazz
 	@${CAT} ${PKGMESSAGE}
 
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/openjazz
+
 .include <bsd.port.mk>



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