Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Oct 2016 22:53:51 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423628 - in head/games/goonies: . files
Message-ID:  <201610092253.u99MrpJa056091@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Oct  9 22:53:51 2016
New Revision: 423628
URL: https://svnweb.freebsd.org/changeset/ports/423628

Log:
  - Update to 1.4.1528
  - Add LICENSE

Added:
  head/games/goonies/files/patch-Makefile   (contents, props changed)
  head/games/goonies/pkg-plist   (contents, props changed)
Deleted:
  head/games/goonies/files/patch-build-linux-Makefile
Modified:
  head/games/goonies/Makefile
  head/games/goonies/distinfo

Modified: head/games/goonies/Makefile
==============================================================================
--- head/games/goonies/Makefile	Sun Oct  9 22:45:23 2016	(r423627)
+++ head/games/goonies/Makefile	Sun Oct  9 22:53:51 2016	(r423628)
@@ -2,48 +2,38 @@
 # $FreeBSD$
 
 PORTNAME=	goonies
-PORTVERSION=	1.0.1
-PORTREVISION=	10
+PORTVERSION=	1.4.1528
 CATEGORIES=	games
-MASTER_SITES=	http://goonies.jorito.net/download/ \
+MASTER_SITES=	http://braingames.jorito.net/goonies/downloads/ \
 		http://mirror.amdmi3.ru/distfiles/
-DISTNAME=	${PORTNAME}_r${PORTVERSION:C/\./-/g}
+DISTNAME=	${PORTNAME}.src_${PORTVERSION}
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Remake of the 8 bit classic game 'The Goonies'
 
-BROKEN_sparc64=	does not compile on sparc64
+LICENSE=	NONE
 
 USES=		gmake tar:tgz
 USE_SDL=	sdl mixer image
-USE_GL=		yes
+USE_GL=		gl glu
 
-BUILD_WRKSRC=	${WRKSRC}/src
-MAKEFILE=	../build/linux/Makefile
-MAKE_ARGS=	CC="${CXX}"
-MAKE_ENV=	DATADIR="${DATADIR}"
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-PLIST_FILES=	bin/${PORTNAME}
-
-PORTDOCS=	*
 PORTDATA=	*
 
-OPTIONS_DEFINE=	DOCS
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|sound/|${DATADIR}/sound/|g' \
-		${WRKSRC}/src/SFXManager.cpp
-	@${REINPLACE_CMD} -e 's|graphics/|${DATADIR}/graphics/|g' \
+		${WRKSRC}/src/SoundManager.cpp
+	@${REINPLACE_CMD} -e 's|graphics/|${DATADIR}/graphics/|g; \
+		s|"graphics"|"${DATADIR}/graphics"|' \
 		${WRKSRC}/src/GLTManager.cpp ${WRKSRC}/src/TheGooniesApp.cpp
 	@${REINPLACE_CMD} -e 's|maps/|${DATADIR}/maps/|g' \
 		${WRKSRC}/src/TheGoonies.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/goonies ${STAGEDIR}${PREFIX}/bin/
-	${MKDIR} ${STAGEDIR}${DATADIR}
-	cd ${WRKSRC} && ${COPYTREE_SHARE} \
-		'sound graphics maps' ${STAGEDIR}${DATADIR}/
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} 'graphics maps sound' ${STAGEDIR}${DATADIR}/
+	${INSTALL_DATA} ${WRKSRC}/build/linux/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
+	${INSTALL_DATA} ${WRKSRC}/build/linux/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications
 
 .include <bsd.port.mk>

Modified: head/games/goonies/distinfo
==============================================================================
--- head/games/goonies/distinfo	Sun Oct  9 22:45:23 2016	(r423627)
+++ head/games/goonies/distinfo	Sun Oct  9 22:53:51 2016	(r423628)
@@ -1,2 +1,3 @@
-SHA256 (goonies_r1-0-1.tgz) = f0e2e20707caacfbeb531561cd4421beb9007eb7c6aae6f0c5dffb2ec648ab86
-SIZE (goonies_r1-0-1.tgz) = 11708692
+TIMESTAMP = 1476028387
+SHA256 (goonies.src_1.4.1528.tgz) = 9e9c1e67a41dfae512e975b6931828cdc82f07397921ca0a41a81c3020a73799
+SIZE (goonies.src_1.4.1528.tgz) = 11428239

Added: head/games/goonies/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/goonies/files/patch-Makefile	Sun Oct  9 22:53:51 2016	(r423628)
@@ -0,0 +1,49 @@
+--- Makefile.orig	2009-03-12 10:05:30 UTC
++++ Makefile
+@@ -1,11 +1,11 @@
+ EXE = goonies
+ SRC = src
+-PREFIX = /usr
++PREFIX ?= /usr
+ EXTRADIR = ./build/linux
+ 
+-GAMEDIR = $(PREFIX)/games
++GAMEDIR = $(PREFIX)/bin
+ STARTUP = $(GAMEDIR)/$(EXE)
+-BINDIR = $(PREFIX)/share/games/$(EXE)
++BINDIR = $(PREFIX)/share/$(EXE)
+ ICNDIR = $(PREFIX)/share/pixmaps
+ APPDIR = $(PREFIX)/share/applications
+ 
+@@ -56,24 +56,24 @@ OBJS = \
+ 	$(SRC)/Symbol.o			$(SRC)/TheGooniesApp.o \
+ 	$(SRC)/TheGoonies.o		$(SRC)/Vector.o
+ 
+-CC = gcc
+-CFLAGS = -g3 -O3 -Wno-write-strings `sdl-config --cflags` -I/usr/X11R6/include
+-LDFLAGS = `sdl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lGL -lGLU
++CXX ?= gcc
++CXXFLAGS ?= -g3 -O3
++CXXFLAGS += -Wno-write-strings `sdl-config --cflags`
++LDFLAGS += `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -lm
+ RM = rm -f
+ CP = cp -r
+ MD = mkdir -p
+ ECHO = echo
+ CHMOD = chmod
+-STRIP = strip
++STRIP ?= strip
+ 
+ all: $(EXE)
+ 
+ %.o: %.cpp
+-	$(CC) $(CFLAGS) -c $< -o $@
++	$(CXX) $(CXXFLAGS) -c $< -o $@
+ 
+ $(EXE): $(OBJS)
+-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
+-	@$(STRIP) $@
++	$(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
+ 	@$(ECHO) " o If there are no errors, the game compiled succesfully"
+ 
+ clean:

Added: head/games/goonies/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/goonies/pkg-plist	Sun Oct  9 22:53:51 2016	(r423628)
@@ -0,0 +1,3 @@
+bin/goonies
+share/applications/goonies.desktop
+share/pixmaps/goonies.png



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