Bug 184848 - games/openglad: Fix build
Summary: games/openglad: 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: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 18:10 UTC by tkato432
Modified: 2013-12-26 13:20 UTC (History)
0 users

See Also:


Attachments
file.diff (3.39 KB, patch)
2013-12-16 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-12-16 18:10:12 UTC
- Fix build
- Add LICENSE
- Add DESKTOP_ENTRIES

Remove file:
files/patch-Makefile.in
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 13:53:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 Pawel Pekala freebsd_committer freebsd_triage 2013-12-25 14:08:33 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-12-25 14:08:41 UTC
Author: pawel
Date: Wed Dec 25 14:08:24 2013
New Revision: 337417
URL: http://svnweb.freebsd.org/changeset/ports/337417

Log:
  - Fix build on 8.x and 9.x
  - Add LICENSE, desktop entry file
  - Support staging
  
  PR:		ports/184848
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Deleted:
  head/games/openglad/files/patch-Makefile.in
Modified:
  head/games/openglad/Makefile   (contents, props changed)
  head/games/openglad/pkg-plist   (contents, props changed)

Modified: head/games/openglad/Makefile
==============================================================================
--- head/games/openglad/Makefile	Wed Dec 25 13:49:07 2013	(r337416)
+++ head/games/openglad/Makefile	Wed Dec 25 14:08:24 2013	(r337417)
@@ -3,29 +3,30 @@
 
 PORTNAME=	openglad
 PORTVERSION=	0.98
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	games
 MASTER_SITES=	SF/snowstorm/OpenGlad/Openglad-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	SDL port of an old DOS game called Gladiator
 
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
+LICENSE=	GPLv2 # (or later)
+
+USES=		gmake
 USE_SDL=	sdl mixer
+GNU_CONFIGURE=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+DESKTOP_ENTRIES="OpenGlad" "" "" "${PORTNAME}" "" ""
 
 NOT_FOR_ARCHS=	sparc64
 
-.if defined(NOPORTDOCS)
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's|^docs_DOCS = |nono&|' ${WRKSRC}/Makefile.in
-.endif
-
-post-configure:
-	${REINPLACE_CMD} -e 's|/path/to/data/dir|${LOCALBASE}/share/openglad|g' \
-		${WRKSRC}/openglad.cfg
+	@${REINPLACE_CMD} -e \
+		's|COPYING INSTALL|INSTALL|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e \
+		's|/path/to/data/dir|${DATADIR}|' ${WRKSRC}/openglad.cfg
 
 .include <bsd.port.mk>

Modified: head/games/openglad/pkg-plist
==============================================================================
--- head/games/openglad/pkg-plist	Wed Dec 25 13:49:07 2013	(r337416)
+++ head/games/openglad/pkg-plist	Wed Dec 25 14:08:24 2013	(r337417)
@@ -1,7 +1,6 @@
 bin/openglad
 bin/openscen
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
_______________________________________________
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"
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-26 13:15:14 UTC
Author: mat
Date: Thu Dec 26 13:15:06 2013
New Revision: 337498
URL: http://svnweb.freebsd.org/changeset/ports/337498

Log:
  MFH: r337417
  
  - Fix build on 8.x and 9.x
  - Add LICENSE, desktop entry file
  - Support staging
  
  PR:		ports/184848
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
  Approved by:	portmgr (implicit)

Deleted:
  branches/2014Q1/games/openglad/files/patch-Makefile.in
Modified:
  branches/2014Q1/games/openglad/Makefile   (contents, props changed)
  branches/2014Q1/games/openglad/pkg-plist   (contents, props changed)
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/games/openglad/Makefile
==============================================================================
--- branches/2014Q1/games/openglad/Makefile	Thu Dec 26 13:13:30 2013	(r337497)
+++ branches/2014Q1/games/openglad/Makefile	Thu Dec 26 13:15:06 2013	(r337498)
@@ -3,29 +3,30 @@
 
 PORTNAME=	openglad
 PORTVERSION=	0.98
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	games
 MASTER_SITES=	SF/snowstorm/OpenGlad/Openglad-${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	SDL port of an old DOS game called Gladiator
 
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
+LICENSE=	GPLv2 # (or later)
+
+USES=		gmake
 USE_SDL=	sdl mixer
+GNU_CONFIGURE=	yes
 
 CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+DESKTOP_ENTRIES="OpenGlad" "" "" "${PORTNAME}" "" ""
 
 NOT_FOR_ARCHS=	sparc64
 
-.if defined(NOPORTDOCS)
-NO_STAGE=	yes
 post-patch:
-	@${REINPLACE_CMD} -e 's|^docs_DOCS = |nono&|' ${WRKSRC}/Makefile.in
-.endif
-
-post-configure:
-	${REINPLACE_CMD} -e 's|/path/to/data/dir|${LOCALBASE}/share/openglad|g' \
-		${WRKSRC}/openglad.cfg
+	@${REINPLACE_CMD} -e \
+		's|COPYING INSTALL|INSTALL|' ${WRKSRC}/Makefile.in
+	@${REINPLACE_CMD} -e \
+		's|/path/to/data/dir|${DATADIR}|' ${WRKSRC}/openglad.cfg
 
 .include <bsd.port.mk>

Modified: branches/2014Q1/games/openglad/pkg-plist
==============================================================================
--- branches/2014Q1/games/openglad/pkg-plist	Thu Dec 26 13:13:30 2013	(r337497)
+++ branches/2014Q1/games/openglad/pkg-plist	Thu Dec 26 13:15:06 2013	(r337498)
@@ -1,7 +1,6 @@
 bin/openglad
 bin/openscen
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
_______________________________________________
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"