Bug 176534 - games/stratagus: Update to version 2.2.7
Summary: games/stratagus: Update to version 2.2.7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 18:10 UTC by tkato432
Modified: 2013-03-14 05:40 UTC (History)
0 users

See Also:


Attachments
file.diff (5.70 KB, patch)
2013-02-28 18:10 UTC, tkato432
no flags Details | Diff
games_stratagus.diff (5.72 KB, patch)
2013-03-06 17:44 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-02-28 18:10:02 UTC
- Update to version 2.2.7

Remove file:
files/patch-png.cpp
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-28 18:10:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

araujo@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-03-01 15:00:46 UTC
Responsible Changed
From-To: araujo->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-03-01 18:54:49 UTC
State Changed
From-To: open->feedback

Hi Kato, this build fails please have a look. 
http://miwibox.org/tb/index.php?action=describe_port&id=1937
Comment 4 tkato432 2013-03-06 17:44:56 UTC
Here is the corrected patch.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2013-03-14 05:33:44 UTC
State Changed
From-To: feedback->closed

Committed thx
Comment 6 dfilter service freebsd_committer freebsd_triage 2013-03-14 05:33:51 UTC
Author: miwi
Date: Thu Mar 14 05:33:42 2013
New Revision: 314131
URL: http://svnweb.freebsd.org/changeset/ports/314131

Log:
  i- Update to 2.2.7
  
  PR:		176534
  Submitted by:	Ports Fury

Deleted:
  head/games/stratagus/files/
Modified:
  head/games/stratagus/Makefile   (contents, props changed)
  head/games/stratagus/distinfo   (contents, props changed)
  head/games/stratagus/pkg-descr   (contents, props changed)

Modified: head/games/stratagus/Makefile
==============================================================================
--- head/games/stratagus/Makefile	Thu Mar 14 05:30:28 2013	(r314130)
+++ head/games/stratagus/Makefile	Thu Mar 14 05:33:42 2013	(r314131)
@@ -1,86 +1,81 @@
-# New ports collection makefile for:	stratagus
-# Date created:			30 Jun 2004
-# Whom:				Travis Poppe <tlp@liquidx.org>
-#
+# Created by: Travis Poppe <tlp@liquidx.org>
 # $FreeBSD$
-#
 
 PORTNAME=	stratagus
-PORTVERSION=	2.2.5.5
-PORTREVISION=	3
+PORTVERSION=	2.2.7
 CATEGORIES=	games
-MASTER_SITES=	http://launchpadlibrarian.net/59493540/
-DISTNAME=	${PORTNAME}_${PORTVERSION}
-EXTRACT_SUFX=	.orig.tar.gz
+MASTER_SITES=	http://launchpadlibrarian.net/113005346/
+DISTNAME=	${PORTNAME}_${PORTVERSION}.orig
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Free cross-platform real-time strategy gaming engine
 
+LICENSE=	GPLv2
+
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
 
 OPTIONS_DEFINE=	MIKMOD MNG THEORA VORBIS DOCS
 OPTIONS_DEFAULT=	VORBIS
-MNG_DESC=	Enable MNG support
 
-LICENSE=	GPLv2
-USE_GCC=	4.6+
-USE_LUA=	5.0+
+USE_GL=		glu
 USE_SDL=	sdl
-USE_GL=		gl
-USE_AUTOTOOLS=	aclocal autoheader autoconf
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-extra-includes=${LUA_INCDIR} \
-		--with-extra-includes=${LOCALBASE}/include/libpng15 \
-		--with-extra-libs=${LUA_LIBDIR} \
-		--without-gles
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-MAKE_JOBS_UNSAFE=	yes
+USE_SQLITE=	3
+USE_LUA=	5.0+
+LUA_COMPS=	toluaxx
+USE_CMAKE=	yes
+CMAKE_OUTSOURCE=	yes
+CMAKE_ARGS=	-DGAMEDIR:STRING="bin" \
+		-DTOLUA++_APP:STRING="${TOLUAXX_CMD}" \
+		-DTOLUA++_INCLUDE_DIR:STRING="${LUA_INCDIR}" \
+		-DTOLUA++_LIBRARY:STRING="${LUA_LIBDIR}/libtolua++.so"
+MAKE_JOBS_SAFE=	yes
 
+MAN6=		stratagus.6
 PORTDOCS=	*
-PLIST_FILES=	bin/stratagus
+PLIST_FILES=	bin/png2stratagus bin/stratagus sbin/metaserver
 
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMIKMOD}
-LIB_DEPENDS+=	mikmod.2:${PORTSDIR}/audio/libmikmod
-CONFIGURE_ARGS+=--with-mikmod
+LIB_DEPENDS+=	mikmod:${PORTSDIR}/audio/libmikmod
+CMAKE_ARGS+=	-DWITH_MIKMOD:BOOL=ON
 .else
-CONFIGURE_ARGS+=--without-mikmod
+CMAKE_ARGS+=	-DWITH_MIKMOD:BOOL=OFF
 .endif
 
 .if ${PORT_OPTIONS:MMNG}
-LIB_DEPENDS+=	mng.1:${PORTSDIR}/graphics/libmng
-CONFIGURE_ARGS+=--with-mng
+LIB_DEPENDS+=	mng:${PORTSDIR}/graphics/libmng
+CMAKE_ARGS+=	-DWITH_MNG:BOOL=ON
 .else
-CONFIGURE_ARGS+=--without-mng
+CMAKE_ARGS+=	-DWITH_MNG:BOOL=OFF
 .endif
 
 .if ${PORT_OPTIONS:MTHEORA}
-LIB_DEPENDS+=	theora.0:${PORTSDIR}/multimedia/libtheora
-CONFIGURE_ARGS+=--with-theora
+LIB_DEPENDS+=	theora:${PORTSDIR}/multimedia/libtheora
+CMAKE_ARGS+=	-DWITH_THEORA:BOOL=ON
 .else
-CONFIGURE_ARGS+=--without-theora
+CMAKE_ARGS+=	-DWITH_THEORA:BOOL=OFF
 .endif
 
 .if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+=	vorbisfile.6:${PORTSDIR}/audio/libvorbis
-CONFIGURE_ARGS+=--with-vorbis
+LIB_DEPENDS+=	vorbis:${PORTSDIR}/audio/libvorbis
+CMAKE_ARGS+=	-DWITH_OGGVORBIS:BOOL=ON
 .else
-CONFIGURE_ARGS+=--without-vorbis
+CMAKE_ARGS+=	-DWITH_OGGVORBIS:BOOL=OFF
 .endif
 
-pre-configure:
-	@(cd ${WRKSRC}; ./autogen.sh)
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/stratagus ${PREFIX}/bin
+post-install:
+	(cd ${WRKSRC}/doc && ${INSTALL_DATA} stratagus.6 ${MAN6PREFIX}/man/man6)
 .if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@(cd ${WRKSRC}/doc; ${COPYTREE_SHARE} . ${DOCSDIR})
-.endif
+	(cd ${WRKSRC}/doc && ${INSTALL_DATA} [a-z]*.html *.txt ${DOCSDIR})
+	@${MKDIR} ${DOCSDIR}/graphics
+	(cd ${WRKSRC}/doc/graphics && ${INSTALL_DATA} * ${DOCSDIR}/graphics)
+	@${MKDIR} ${DOCSDIR}/scripts
+	(cd ${WRKSRC}/doc/scripts && ${INSTALL_DATA} * ${DOCSDIR}/scripts)
 	@${ECHO_CMD}
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO_CMD}
+.endif
 
 .include <bsd.port.mk>

Modified: head/games/stratagus/distinfo
==============================================================================
--- head/games/stratagus/distinfo	Thu Mar 14 05:30:28 2013	(r314130)
+++ head/games/stratagus/distinfo	Thu Mar 14 05:33:42 2013	(r314131)
@@ -1,2 +1,2 @@
-SHA256 (stratagus_2.2.5.5.orig.tar.gz) = e0c8fe592ee3ad0c5806937aa950aad39019780de5344987366fe76901377285
-SIZE (stratagus_2.2.5.5.orig.tar.gz) = 976972
+SHA256 (stratagus_2.2.7.orig.tar.gz) = 9bdaf207623b60a5e98451128bb7fb649e00ce4aba507320bde63e60f93e8c9f
+SIZE (stratagus_2.2.7.orig.tar.gz) = 939967

Modified: head/games/stratagus/pkg-descr
==============================================================================
--- head/games/stratagus/pkg-descr	Thu Mar 14 05:30:28 2013	(r314130)
+++ head/games/stratagus/pkg-descr	Thu Mar 14 05:33:42 2013	(r314131)
@@ -4,4 +4,4 @@ opponent. The engine is configurable and
 a wide-range of features specific to your needs. See the data sets page 
 for a list of current games using the stratagus engine.
 
-WWW: http://stratagus.sourceforge.net
+WWW: https://launchpad.net/stratagus
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"