Bug 171018 - games/openastromenace: fix build
Summary: games/openastromenace: fix build
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: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-25 11:00 UTC by fiziologus
Modified: 2012-08-26 18:10 UTC (History)
0 users

See Also:


Attachments
file.diff (2.67 KB, patch)
2012-08-25 11:00 UTC, fiziologus
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fiziologus 2012-08-25 11:00:06 UTC
[games/openastromenace] unbroken (patch from Gentoo's Bugzilla (bug #288340))

OptionNG, fix subdir for data files

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-25 11:00:33 UTC
Maintainer of games/openastromenace,

Please note that PR ports/171018 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171018

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-25 11:00:35 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 proler 2012-08-25 20:30:22 UTC
i'm approve the patch


> Maintainer of games/openastromenace,
>
> Please note that PR ports/171018 has just been submitted.
>
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
>
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171018
Comment 4 Raphael Kubo da Costa freebsd_committer freebsd_triage 2012-08-26 17:54:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rakuco

I'll take it.
Comment 5 Raphael Kubo da Costa freebsd_committer freebsd_triage 2012-08-26 18:00:41 UTC
For the record, the right syntax for checking the port options is
${PORT_OPTIONS:...}, not $(PORT_OPTIONS:...}, I'm fixing this with the
commit.
Comment 6 Raphael Kubo da Costa freebsd_committer freebsd_triage 2012-08-26 18:09:48 UTC
State Changed
From-To: feedback->closed

Committed, with minor changes. Thanks!
Comment 7 dfilter service freebsd_committer freebsd_triage 2012-08-26 18:09:52 UTC
Author: rakuco
Date: Sun Aug 26 17:09:37 2012
New Revision: 303193
URL: http://svn.freebsd.org/changeset/ports/303193

Log:
  - Fix the build and remove the BROKEN mark. [1]
  - Convert to OptionsNG.
  
  PR:		ports/171018
  Submitted by:	Green Dog <fiziologus@gmail.com>
  Approved by:	oleg alexeenkov <proler@gmail.com> (maintainer)
  Obtained from:	https://bugs.gentoo.org/show_bug.cgi?id=288340 [1]

Added:
  head/games/openastromenace/files/patch-AstroMenaceSource-Core-RendererInterface-RendererInterface.h   (contents, props changed)
Modified:
  head/games/openastromenace/Makefile

Modified: head/games/openastromenace/Makefile
==============================================================================
--- head/games/openastromenace/Makefile	Sun Aug 26 16:56:32 2012	(r303192)
+++ head/games/openastromenace/Makefile	Sun Aug 26 17:09:37 2012	(r303193)
@@ -9,10 +9,12 @@ PORTNAME=	openastromenace
 PORTVERSION=	1.2.0
 PORTREVISION=	11
 CATEGORIES=	games
-MASTER_SITES=	SF
-DISTFILES=	openamenace-src-${PORTVERSION}${EXTRACT_SUFX} \
-		oamenace-data-${PORTVERSION}${EXTRACT_SUFX} \
-		oamenace-lang-${LANGPACK}-${PORTVERSION}${EXTRACT_SUFX}
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S/$/:source,data/}
+DISTFILES=	openamenace-src-${PORTVERSION}${EXTRACT_SUFX}:source \
+		oamenace-data-1.2.0.tar.bz2:data \
+		oamenace-lang-${LANGPACK}-${PORTVERSION}${EXTRACT_SUFX}:data
+MASTER_SITE_SUBDIR=     openastromenace/openastromenace/1.2.0/:source \
+                        openastromenace/openastromenace%20vfs/1.2.0/:data
 
 MAINTAINER=	proler@gmail.com
 COMMENT=	Hardcore 3D space shooter with spaceship upgrade possibilities
@@ -20,8 +22,6 @@ COMMENT=	Hardcore 3D space shooter with 
 LIB_DEPENDS+=	vorbisfile:${PORTSDIR}/audio/libvorbis \
 		jpeg:${PORTSDIR}/graphics/jpeg
 
-BROKEN=		does not compile
-
 USE_BZIP2=	yes
 USE_GL=		gl glu
 USE_OPENAL=	al alut
@@ -31,20 +31,22 @@ USE_CMAKE=	yes
 WRKSRC=		${WRKDIR}/OpenAstroMenaceSVN
 USE_DOS2UNIX=	yes
 
-OPTIONS=	EN	"English language pack"	on \
-		DE	"German language pack"	off \
-		RU	"Russian language pack"	off
+OPTIONS_SINGLE=	LANG
+OPTIONS_SINGLE_LANG=	EN DE RU
+OPTIONS_DEFAULT=EN
+
+EN_DESC=	"English language pack"
+DE_DESC=	"German language pack"
+RU_DESC=	"Russian language pack"
 
 .include <bsd.port.pre.mk>
 
-.if !defined(WITHOUT_EN)
+.if ${PORT_OPTIONS:MEN}
 LANGPACK=	en
-.elif defined(WITH_DE)
+.elif ${PORT_OPTIONS:MDE}
 LANGPACK=	de
-.elif defined(WITH_RU)
+.elif ${PORT_OPTIONS:MRU}
 LANGPACK=	ru
-.else
-IGNORE=		cannot be build without/with multiple language packs. Please rerun 'make config' and select single language pack
 .endif
 
 .if !defined(WITHOUT_NOUVEAU)

Added: head/games/openastromenace/files/patch-AstroMenaceSource-Core-RendererInterface-RendererInterface.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/openastromenace/files/patch-AstroMenaceSource-Core-RendererInterface-RendererInterface.h	Sun Aug 26 17:09:37 2012	(r303193)
@@ -0,0 +1,11 @@
+--- AstroMenaceSource/Core/RendererInterface/RendererInterface.h.orig	2012-08-25 13:33:11.000000000 +0400
++++ AstroMenaceSource/Core/RendererInterface/RendererInterface.h	2012-08-25 13:36:09.000000000 +0400
+@@ -37,7 +37,7 @@
+ #include "../Base.h"
+ #include "../Math/Math.h"
+ #include "../Texture/Texture.h"
+-
++#define PFNGLCLIENTACTIVETEXTUREPROC PFNGLACTIVETEXTUREPROC
+ 
+ 
+ struct eDevCaps
\ No newline at end of file
_______________________________________________
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"