Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  3 Apr 2008 14:44:40 +0400 (MSD)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/122407: [REPOCOPY][MAINTAINER] games/glpuzzle: repocopy to jigzo, update to 0.5
Message-ID:  <20080403104440.52CF91702D@hades.panopticon>
Resent-Message-ID: <200804031050.m33Ao9KT087434@freefall.freebsd.org>

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

>Number:         122407
>Category:       ports
>Synopsis:       [REPOCOPY][MAINTAINER] games/glpuzzle: repocopy to jigzo, update to 0.5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 10:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 7.0-RELEASE FreeBSD 7.0-RELEASE #5: Fri Mar 14 14:26:43 MSK 2008 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
Please repocopy games/glpuzzle to games/jigzo and update the latter with the attached patch.

* Project name has changed (glpuzzle->jigzo)
* Update to 0.5
>How-To-Repeat:
>Fix:

--- glpuzzle-jigzo.patch begins here ---
diff -ruN glpuzzle/Makefile jigzo/Makefile
--- glpuzzle/Makefile	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/Makefile	2008-04-03 14:39:31.000000000 +0400
@@ -5,11 +5,10 @@
 # $FreeBSD: ports/games/glpuzzle/Makefile,v 1.8 2008/03/20 17:59:10 miwi Exp $
 #
 
-PORTNAME=	glpuzzle
-PORTVERSION=	0.2
-PORTREVISION=	4
+PORTNAME=	jigzo
+PORTVERSION=	0.5
 CATEGORIES=	games
-MASTER_SITES=	http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/ \
+MASTER_SITES=	http://www.iua.upf.es/~mdeboer/resorama/jigzo/ \
 		http://www.amdmi3.ru/distfiles/
 EXTRACT_SUFX=	.tgz
 
@@ -20,27 +19,25 @@
 		jpeg.9:${PORTSDIR}/graphics/jpeg
 
 USE_SDL=	sdl mixer
-USE_GL=		yes
+USE_GL=		gl
 USE_GMAKE=	yes
 
-MAKE_ENV=	CXX="${CXX}" \
-		CPPFLAGS="`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
-		LDFLAGS="`${SDL_CONFIG} --libs` -L${X11BASE}/lib"
+MAKE_ENV=	CXX="${CXX}"
+
+PORTDOCS=	*
 
 post-patch:
 .for i in font image puzzles sound
-	@${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" ${WRKSRC}/main.cxx
+	@${REINPLACE_CMD} -e "s|${i}/|${DATADIR}/${i}/|g" \
+		${WRKSRC}/src/main.cxx
 .endfor
-	@${REINPLACE_CMD} -e "s|g++|${CXX}|g" ${WRKSRC}/Makefile
-	@${REINPLACE_CMD} -e "s|INCLFLAGS|CPPFLAGS|" ${WRKSRC}/Makefile
-	@${REINPLACE_CMD} -e "/^include.*DEPENDS/ d" ${WRKSRC}/Makefile
+	@${FIND} ${WRKSRC} -name .thumbnails | ${XARGS} ${RM} -rf
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin
-.for i in font image puzzles sound
-	${MKDIR} ${DATADIR}/${i}
-	${INSTALL_DATA} ${WRKSRC}/${i}/* ${DATADIR}/${i}
-.endfor
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${MKDIR} ${DATADIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "font image puzzles sound" \
+		${DATADIR}/
 
 .ifndef (NOPORTDOCS)
 post-install:
diff -ruN glpuzzle/distinfo jigzo/distinfo
--- glpuzzle/distinfo	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/distinfo	2008-04-03 13:36:27.000000000 +0400
@@ -1,3 +1,3 @@
-MD5 (glpuzzle-0.2.tgz) = 0dffdc8c0b9a2b689c1932d725ede2d3
-SHA256 (glpuzzle-0.2.tgz) = 2ff48c279c61329f18171c409301a49bcc0789e9085118cf74bb6c09c287f27a
-SIZE (glpuzzle-0.2.tgz) = 4111471
+MD5 (jigzo-0.5.tgz) = 4ca868ca80c2a9ad9b4bf92c7287d598
+SHA256 (jigzo-0.5.tgz) = 57bd9163f902a98440ee4ce2c9a0b7378cc6af796c2c5ecaef5d060450395d9a
+SIZE (jigzo-0.5.tgz) = 4609883
diff -ruN glpuzzle/files/patch-Loader.cxx jigzo/files/patch-Loader.cxx
--- glpuzzle/files/patch-Loader.cxx	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/files/patch-Loader.cxx	1970-01-01 03:00:00.000000000 +0300
@@ -1,13 +0,0 @@
---- Loader.cxx.orig	Mon Feb  6 13:45:24 2006
-+++ Loader.cxx	Mon Feb  6 13:45:04 2006
-@@ -20,8 +20,10 @@
- 
- #include "Loader.hxx"
- 
-+extern "C" {
- #include <png.h>
- #include <jpeglib.h>
-+}
- 
- void JpgLoader::Load(const std::string& filename,RGB& target,int x,int y)
- {
diff -ruN glpuzzle/files/patch-Makefile jigzo/files/patch-Makefile
--- glpuzzle/files/patch-Makefile	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/files/patch-Makefile	2008-04-03 13:45:14.000000000 +0400
@@ -1,21 +1,25 @@
---- Makefile.orig	Sun Feb  5 04:41:46 2006
-+++ Makefile	Sun Feb  5 23:05:34 2006
-@@ -1,8 +1,6 @@
- PROGRAM = glpuzzle
+--- Makefile.orig	2008-04-03 01:16:52.000000000 +0400
++++ Makefile	2008-04-03 13:45:02.000000000 +0400
+@@ -19,7 +19,7 @@
+ ARCH_OK = yes
+ endif
  
--CXXFLAGS = -O2 -Wall
--INCLFLAGS = -I/usr/include/SDL
--LIBSFLAGS = -lpthread -lGL -lpthread -lpng -ljpeg -lSDL
-+LIBSFLAGS = $(LDFLAGS) -lGL -lpng -ljpeg
- SOURCES = main.cxx Screen.cxx Texture.cxx Loader.cxx
+-ifeq "$(ARCH_OK)" "yes"
++ifeq "yes" "yes"
+ #
+ # The given ARCH is correct
+ #
+@@ -28,8 +28,11 @@
+ # Variables
+ #
  
- ENABLE_SOUND = 1
-@@ -43,7 +41,7 @@
- 	g++ -c $(CXXFLAGS) $(INCLFLAGS) $< -o $@ 
+-CXXFLAGS = -O2 $(ARCHCXXFLAGS) -DENABLE_SOUND
+-LDFLAGS = -O2 $(ARCHLDFLAGS)
++STRIP = strip
++APP = jigzo
++
++CXXFLAGS += `$(SDL_CONFIG) --cflags` -DENABLE_SOUND
++LDFLAGS += `$(SDL_CONFIG) --libs` -lGL -lpng -ljpeg -lSDL_mixer
  
- $(PROGRAM): $(OBJECTS) 
--	g++ $(OBJECTS) $(LIBSFLAGS) -o $@
-+	g++ $(OBJECTS) $(CXXFLAGS) $(CPPFLAGS) $(LIBSFLAGS) -o $@
- 
- install: $(PROGRAM)
- 	@echo Installing in $(PREFIX)
+ #
+ # List of all source files.
diff -ruN glpuzzle/files/patch-main.cxx jigzo/files/patch-main.cxx
--- glpuzzle/files/patch-main.cxx	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/files/patch-main.cxx	1970-01-01 03:00:00.000000000 +0300
@@ -1,10 +0,0 @@
---- main.cxx.orig	Sun Feb  5 04:41:46 2006
-+++ main.cxx	Sun Feb  5 23:41:41 2006
-@@ -28,6 +28,7 @@
- float BG_G = 0.0;
- float BG_B = 0.0;
- 
-+#include <unistd.h>
- #include <cstdio>
- #include <cstring>
- #include <cmath>
diff -ruN glpuzzle/pkg-descr jigzo/pkg-descr
--- glpuzzle/pkg-descr	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/pkg-descr	2008-04-03 14:38:31.000000000 +0400
@@ -1,6 +1,6 @@
-glpuzzle is a jigsaw puzzle game. Choose from 12 puzzles of various
-difficulties (4 to 25 pieces), and move the pieces around to create
-the desired picture. glpuzzle uses OpenGL for smooth movement and
-anti-aliased display.
+jigzo (formerly glpuzzle) is a jigsaw puzzle game. Choose from 12
+puzzles of various difficulties (4 to 25 pieces), and move the
+pieces around to create the desired picture. gigzo uses OpenGL for
+smooth movement and anti-aliased display.
 
-WWW: http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/
+WWW: http://www.resorama.com/jigzo/
diff -ruN glpuzzle/pkg-plist jigzo/pkg-plist
--- glpuzzle/pkg-plist	2008-04-03 13:34:00.000000000 +0400
+++ jigzo/pkg-plist	2008-04-03 13:53:49.000000000 +0400
@@ -1,28 +1,27 @@
-bin/glpuzzle
+bin/jigzo
 %%DATADIR%%/font/charmap.jpg
 %%DATADIR%%/font/charmap.map
 %%DATADIR%%/font/charmap.png
 %%DATADIR%%/image/arrow.png
-%%DATADIR%%/image/clouds-3x2.png
+%%DATADIR%%/image/folder.png
 %%DATADIR%%/image/leave.png
-%%DATADIR%%/puzzles/bike-3x4.pzl
-%%DATADIR%%/puzzles/bird-4x4.pzl
-%%DATADIR%%/puzzles/blackberry-3x3.pzl
-%%DATADIR%%/puzzles/castle-6x3.pzl
-%%DATADIR%%/puzzles/clouds-4x4.pzl
-%%DATADIR%%/puzzles/goat-4x3.pzl
-%%DATADIR%%/puzzles/gorilla-4x3.pzl
-%%DATADIR%%/puzzles/heli-4x3.pzl
-%%DATADIR%%/puzzles/horse-4x3.pzl
-%%DATADIR%%/puzzles/penguin-3x2.pzl
-%%DATADIR%%/puzzles/penguins-5x5.pzl
-%%DATADIR%%/puzzles/train-2x2.pzl
+%%DATADIR%%/puzzles/00_default/bike-3x4.pzl
+%%DATADIR%%/puzzles/00_default/bird-2x3.pzl
+%%DATADIR%%/puzzles/00_default/blackberry-3x3.pzl
+%%DATADIR%%/puzzles/00_default/castle-6x3.pzl
+%%DATADIR%%/puzzles/00_default/clouds-4x4.pzl
+%%DATADIR%%/puzzles/00_default/gorilla2-3x3.pzl
+%%DATADIR%%/puzzles/00_default/heli-4x3.pzl
+%%DATADIR%%/puzzles/00_default/horse-4x3.pzl
+%%DATADIR%%/puzzles/00_default/penguin-3x2.pzl
+%%DATADIR%%/puzzles/00_default/tobogan-4x3.pzl
+%%DATADIR%%/puzzles/00_default/train-2x2.pzl
+%%DATADIR%%/puzzles/00_default/windmill-4x4.pzl
 %%DATADIR%%/sound/connect.wav
 %%DATADIR%%/sound/finish.wav
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/font
-@dirrm %%DATADIR%%/image
-@dirrm %%DATADIR%%/puzzles
 @dirrm %%DATADIR%%/sound
+@dirrm %%DATADIR%%/puzzles/00_default
+@dirrm %%DATADIR%%/puzzles
+@dirrm %%DATADIR%%/image
+@dirrm %%DATADIR%%/font
 @dirrm %%DATADIR%%
--- glpuzzle-jigzo.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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