Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:48:39 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184848: games/openglad: Fix build
Message-ID:  <20131217024839.e9254edb336c6d5659fd8a1a@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAD4V016172@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184848
>Category:       ports
>Synopsis:       games/openglad: Fix build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:12 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build
- Add LICENSE
- Add DESKTOP_ENTRIES

Remove file:
files/patch-Makefile.in

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/games/openglad/Makefile games/openglad/Makefile
--- /usr/ports/games/openglad/Makefile	2013-11-06 22:00:26.000000000 +0900
+++ games/openglad/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -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>
diff -urN /usr/ports/games/openglad/files/patch-Makefile.in games/openglad/files/patch-Makefile.in
--- /usr/ports/games/openglad/files/patch-Makefile.in	2013-11-06 22:00:26.000000000 +0900
+++ games/openglad/files/patch-Makefile.in	1970-01-01 09:00:00.000000000 +0900
@@ -1,46 +0,0 @@
---- Makefile.in.orig	Tue May 13 17:07:41 2003
-+++ Makefile.in	Tue May 13 17:08:30 2003
-@@ -77,7 +77,7 @@
- docs_DOCS = NEWS README ChangeLog release-notes.txt cheats.txt \
- scen.txt AUTHORS COPYING INSTALL
- 
--docdir = ${DESTDIR}/$(prefix)/share/doc/@PACKAGE@
-+docdir = $(prefix)/share/doc/@PACKAGE@
- 
- EXTRA_DIST = scen/*.fss start.tex glad.hlp openglad.cfg cheats.txt pix/*.pix \
- $(docs_DOCS)
-@@ -121,20 +121,20 @@
- uninstall-info-am:
- install-dataDATA: $(data_DATA)
- 	@$(NORMAL_INSTALL)
--	$(mkinstalldirs) $(DESTDIR)$(datadir)
-+	$(mkinstalldirs) $(datadir)
- 	@list='$(data_DATA)'; for p in $$list; do \
- 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
--	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f"; \
--	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(datadir)/$$f; \
-+	  echo " $(INSTALL_DATA) $$d$$p $(datadir)/$$f"; \
-+	  $(INSTALL_DATA) $$d$$p $(datadir)/$$f; \
- 	done
- 
- uninstall-dataDATA:
- 	@$(NORMAL_UNINSTALL)
- 	@list='$(data_DATA)'; for p in $$list; do \
- 	  f="`echo $$p | sed -e 's|^.*/||'`"; \
--	  echo " rm -f $(DESTDIR)$(datadir)/$$f"; \
--	  rm -f $(DESTDIR)$(datadir)/$$f; \
-+	  echo " rm -f $(datadir)/$$f"; \
-+	  rm -f $(datadir)/$$f; \
- 	done
- 
- # This directory's subdirectories are mostly independent; you can cd
-@@ -314,7 +314,7 @@
- all-am: Makefile $(DATA)
- installdirs: installdirs-recursive
- installdirs-am:
--	$(mkinstalldirs) $(DESTDIR)$(datadir)
-+	$(mkinstalldirs) $(datadir)
- install-exec: install-exec-recursive
- install-data: install-data-recursive
- 
diff -urN /usr/ports/games/openglad/pkg-plist games/openglad/pkg-plist
--- /usr/ports/games/openglad/pkg-plist	2013-11-06 22:00:26.000000000 +0900
+++ games/openglad/pkg-plist	2013-12-17 00:00:00.000000000 +0900
@@ -1,7 +1,6 @@
 bin/openglad
 bin/openscen
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/INSTALL
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131217024839.e9254edb336c6d5659fd8a1a>