Bug 175043 - games/super_methane_brothers: Update to version 1.5.1
Summary: games/super_methane_brothers: Update to version 1.5.1
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-01-05 18:10 UTC by tkato432
Modified: 2013-02-05 09:20 UTC (History)
0 users

See Also:


Attachments
file.diff (6.38 KB, patch)
2013-01-05 18:10 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-01-05 18:10:11 UTC
- Update to version 1.5.1

New file:
files/patch-sources__methane.cpp
pkg-req

Remove file:
pkg-install
pkg-plist
Comment 1 Marcelo Araujo freebsd_committer freebsd_triage 2013-01-18 06:17:21 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-02-05 09:15:21 UTC
Responsible Changed
From-To: araujo->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-02-05 09:15:24 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-02-05 09:15:28 UTC
Author: miwi
Date: Tue Feb  5 09:15:13 2013
New Revision: 311678
URL: http://svnweb.freebsd.org/changeset/ports/311678

Log:
  - Update to 1.5.1
  
  PR:		175043
  Submitted by:	Ports Fury

Added:
  head/games/super_methane_brothers/files/
  head/games/super_methane_brothers/files/patch-sources__methane.cpp   (contents, props changed)
  head/games/super_methane_brothers/pkg-req   (contents, props changed)
Deleted:
  head/games/super_methane_brothers/pkg-install
  head/games/super_methane_brothers/pkg-plist
Modified:
  head/games/super_methane_brothers/Makefile
  head/games/super_methane_brothers/distinfo   (contents, props changed)

Modified: head/games/super_methane_brothers/Makefile
==============================================================================
--- head/games/super_methane_brothers/Makefile	Tue Feb  5 09:12:52 2013	(r311677)
+++ head/games/super_methane_brothers/Makefile	Tue Feb  5 09:15:13 2013	(r311678)
@@ -2,42 +2,52 @@
 # $FreeBSD$
 
 PORTNAME=	super_methane_brothers
-PORTVERSION=	1.4.8
-PORTREVISION=	5
+PORTVERSION=	1.5.1
 CATEGORIES=	games
 MASTER_SITES=	SF/methane/Methane%20Stable/Methane%20V${PORTVERSION}
 DISTNAME=	methane-${PORTVERSION}
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A port of the Amiga platform game of the same name
+COMMENT=	Port of the Amiga platform game of the same name
 
-LIB_DEPENDS=	clanCore:${PORTSDIR}/devel/clanlib1 \
-		mikmod:${PORTSDIR}/audio/libmikmod
+LICENSE=	GPLv2
 
+LIB_DEPENDS=	clan23Core:${PORTSDIR}/devel/clanlib \
+		execinfo:${PORTSDIR}/devel/libexecinfo
+
+USE_GCC=	4.6+
+USE_GL=		glu
+USE_PKGCONFIG=	build
 USE_GMAKE=	yes
-MAKEFILE=	makefile
-BUILD_WRKSRC=	${WRKSRC}/source/linux
+MAKE_ENV=	METHANE_FLAGS="${CPPFLAGS}" METHANE_LIBS="${LDFLAGS}"
+MAKE_JOBS_UNSAFE=	yes
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib -lexecinfo
+
+PORTDOCS=	*
+PLIST_FILES=	bin/methane
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e \
-		's|g++|${CXX}|; s|gcc|${CXX}|; \
-		 s|^\(METHANE_FLAGS =\)|\1 ${CPPFLAGS}|; \
-		 s|^\(METHANE_LIBS =\)|\1 ${LDFLAGS}|; \
-		 s|0.8|1.0|g' \
-		${BUILD_WRKSRC}/makefile
+		's|-2.2|-2.3|g ; \
+		 s|FLAGS =|FLAGS +=| ; \
+		 s|LIBS =|LIBS +=| ; \
+		 s|g++|$${CXX}| ; \
+		 s|gcc|$${CXX}|' ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/methane ${PREFIX}/bin
+	(cd ${WRKDIR}/${DISTNAME} && ${INSTALL_PROGRAM} methane ${PREFIX}/bin)
 	${CHGRP} games ${PREFIX}/bin/methane
 	${CHMOD} g+s ${PREFIX}/bin/methane
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}/html
-	cd ${WRKSRC} && ${INSTALL_DATA} authors history readme todo ${DOCSDIR}
-	cd ${WRKSRC}/docs && ${INSTALL_DATA} *.gif *.html ${DOCSDIR}/html
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	@(cd ${WRKDIR}/${DISTNAME}/docs && ${COPYTREE_SHARE} . ${DOCSDIR})
 .endif
-
-post-install:
-	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+	@${SETENV} PKG_PREFIX=${PREFIX} \
+		${SH} ${PKGREQ} ${PKGNAME} POST-INSTALL
 
 .include <bsd.port.mk>

Modified: head/games/super_methane_brothers/distinfo
==============================================================================
--- head/games/super_methane_brothers/distinfo	Tue Feb  5 09:12:52 2013	(r311677)
+++ head/games/super_methane_brothers/distinfo	Tue Feb  5 09:15:13 2013	(r311678)
@@ -1,2 +1,2 @@
-SHA256 (methane-1.4.8.tgz) = 7e91d0b478b133a74565f0a7a01783cdda20bd555ca92feb4da66e51b51a9289
-SIZE (methane-1.4.8.tgz) = 1063099
+SHA256 (methane-1.5.1.tgz) = ac1de7009e638c784b4d413b56a4387be94a31bd5fe3050db7b51e39ccfdd248
+SIZE (methane-1.5.1.tgz) = 1057881

Added: head/games/super_methane_brothers/files/patch-sources__methane.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/super_methane_brothers/files/patch-sources__methane.cpp	Tue Feb  5 09:15:13 2013	(r311678)
@@ -0,0 +1,24 @@
+--- sources/methane.cpp.orig	2011-12-11 14:18:38.301132904 +0100
++++ sources/methane.cpp	2011-12-11 14:15:32.669126965 +0100
+@@ -105,15 +105,15 @@
+ 				return 0;
+ 			}
+ 
+-			CL_AutoPtr<CL_SetupSound> setup_sound;
+-			CL_AutoPtr<CL_SoundOutput> sound_output;
+-			CL_AutoPtr<CL_SetupMikMod> setup_mikmod;
++			CL_UniquePtr<CL_SetupSound> setup_sound;
++			CL_UniquePtr<CL_SoundOutput> sound_output;
++			CL_UniquePtr<CL_SetupMikMod> setup_mikmod;
+ 
+ 			if (GLOBAL_SoundEnable)
+ 			{
+-				setup_sound = new CL_SetupSound;
+-				sound_output = new CL_SoundOutput(44100);
+-				setup_mikmod = new CL_SetupMikMod;
++				setup_sound = cl_move(CL_UniquePtr<CL_SetupSound>(new CL_SetupSound));
++				sound_output = cl_move(CL_UniquePtr<CL_SoundOutput>(new CL_SoundOutput(44100)));
++				setup_mikmod = cl_move(CL_UniquePtr<CL_SetupMikMod>(new CL_SetupMikMod));
+ 			}
+ 
+ 			// Set the video mode

Added: head/games/super_methane_brothers/pkg-req
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/super_methane_brothers/pkg-req	Tue Feb  5 09:15:13 2013	(r311678)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+SCOREFILE="/var/games/methane.scores"
+
+if [ "x$2" = "xPOST-INSTALL" ]; then
+	mkdir -p /var/games
+	touch $SCOREFILE
+	chown root:games $SCOREFILE
+	chmod 664 $SCOREFILE
+fi
+
+if [ "x$2" = "xPOST-DEINSTALL" ]; then
+	if [ ! -s $SCOREFILE ]; then
+		rm -f $SCOREFILE
+	fi
+fi
_______________________________________________
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"