svn commit: r354272 - in head/games/wargus: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri May 16 23:56:54 UTC 2014


Author: amdmi3
Date: Fri May 16 23:56:53 2014
New Revision: 354272
URL: http://svnweb.freebsd.org/changeset/ports/354272
QAT: https://qat.redports.org/buildarchive/r354272/

Log:
  - Support staging
  - Fix build with clang

Added:
  head/games/wargus/files/patch-wargus.c   (contents, props changed)
Modified:
  head/games/wargus/Makefile

Modified: head/games/wargus/Makefile
==============================================================================
--- head/games/wargus/Makefile	Fri May 16 23:29:17 2014	(r354271)
+++ head/games/wargus/Makefile	Fri May 16 23:56:53 2014	(r354272)
@@ -12,33 +12,23 @@ EXTRACT_SUFX=	.orig.tar.gz
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Warcraft 2 mod that allows you to play Warcraft 2 with Stratagus
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
 RUN_DEPENDS=	stratagus:${PORTSDIR}/games/stratagus
 
-LICENSE=	GPLv2
 NOT_FOR_ARCHS=	sparc64
 USES=		pathfix gmake pkgconfig
-USE_CSTD=	gnu89
 USE_GNOME=	gtk20
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 SUB_FILES=	${PORTNAME} pkg-message
 
 MAKE_ARGS+=	CFLAGS+="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15" LDFLAGS+=-L${LOCALBASE}/lib
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-	cd ${WRKSRC} && \
-	    ${FIND} campaigns contrib maps scripts -type d \
-	    -exec ${MKDIR} "${DATADIR}/{}" \; && \
-	    ${FIND} campaigns contrib maps scripts -type f \
-	    -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-	${INSTALL_PROGRAM} ${WRKSRC}/wartool ${DATADIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${DATADIR}
-
-post-install:
-	@${ECHO_CMD}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_CMD}
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "campaigns contrib maps scripts" ${STAGEDIR}${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/wartool ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/build.sh ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>

Added: head/games/wargus/files/patch-wargus.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/wargus/files/patch-wargus.c	Fri May 16 23:56:53 2014	(r354272)
@@ -0,0 +1,11 @@
+--- wargus.c.orig	2010-11-22 03:07:16.000000000 +0300
++++ wargus.c	2014-05-16 20:50:55.007540700 +0400
+@@ -86,7 +86,7 @@
+ int ConsoleMode = 0;
+ #endif
+ 
+-inline void error(char * title, char * text) {
++void error(char * title, char * text) {
+ 
+ #ifdef WIN32
+ 	MessageBox(NULL, text, title, MB_OK | MB_ICONERROR);


More information about the svn-ports-all mailing list