ports/91619: New port: games/glpuzzle An OpenGL jigsaw puzzle game

Dmitry Marakasov amdmi3 at mail.ru
Wed Jan 11 01:50:07 UTC 2006


>Number:         91619
>Category:       ports
>Synopsis:       New port: games/glpuzzle An OpenGL jigsaw puzzle game
>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:   Wed Jan 11 01:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Sun Dec 18 08:07:07 MSK 2005 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386

>Description:
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.

WWW: http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/
>How-To-Repeat:
>Fix:

--- glpuzzle-0.1.2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	glpuzzle
#	glpuzzle/files
#	glpuzzle/files/patch-Makefile
#	glpuzzle/files/patch-main.cxx
#	glpuzzle/Makefile
#	glpuzzle/distinfo
#	glpuzzle/pkg-descr
#	glpuzzle/pkg-plist
#
echo c - glpuzzle
mkdir -p glpuzzle > /dev/null 2>&1
echo c - glpuzzle/files
mkdir -p glpuzzle/files > /dev/null 2>&1
echo x - glpuzzle/files/patch-Makefile
sed 's/^X//' >glpuzzle/files/patch-Makefile << 'END-of-glpuzzle/files/patch-Makefile'
X--- Makefile.orig	Mon Jan  9 03:32:53 2006
X+++ Makefile	Tue Jan 10 02:57:36 2006
X@@ -23,6 +23,6 @@
X 	chmod +x $(PREFIX)/bin/glpuzzle
X 
X glpuzzle: main.cxx version.h
X-	g++ -O2 -Wall -I/usr/include/SDL main.cxx -lpthread -lSDL -lGL -lpthread -lpng -ljpeg -o glpuzzle
X+	$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -lGL -lpng -ljpeg -o glpuzzle main.cxx
X 
X 
END-of-glpuzzle/files/patch-Makefile
echo x - glpuzzle/files/patch-main.cxx
sed 's/^X//' >glpuzzle/files/patch-main.cxx << 'END-of-glpuzzle/files/patch-main.cxx'
X--- main.cxx.orig	Wed Jan 11 04:42:54 2006
X+++ main.cxx	Wed Jan 11 04:43:04 2006
X@@ -24,6 +24,7 @@
X  * 
X  */
X 
X+#include <unistd.h>
X #include <cstdio>
X #include <cstdlib>
X #include <cstring>
END-of-glpuzzle/files/patch-main.cxx
echo x - glpuzzle/Makefile
sed 's/^X//' >glpuzzle/Makefile << 'END-of-glpuzzle/Makefile'
X# New ports collection makefile for:	glpuzzle
X# Date created:				09 Jan 2006
X# Whom:					Dmitry Marakasov <amdmi3 at mail.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	glpuzzle
XPORTVERSION=	0.1.2
XCATEGORIES=	games
XMASTER_SITES=	http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	amdmi3 at mail.ru
XCOMMENT=	An OpenGL jigsaw puzzle game
X
XLIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
X		jpeg.9:${PORTSDIR}/graphics/jpeg
X
XUSE_X_PREFIX=	yes
XUSE_SDL=	sdl
XUSE_GL=		yes
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
X
XMAKE_ENV=	"CXX=${CXX}" "CPPFLAGS=`${SDL_CONFIG} --cflags` -I${X11BASE}/include" \
X		"LDFLAGS=`${SDL_CONFIG} --libs` -L${X11BASE}/lib"
X
Xpost-extract:
X	@[ -f "${WRKSRC}/glpuzzle" ] && ${RM} "${WRKSRC}/glpuzzle" || true
X
Xpost-patch:
X	@${REINPLACE_CMD} -e "s|font/|${DATADIR}/font/|g" ${WRKSRC}/main.cxx
X	@${REINPLACE_CMD} -e "s|puzzle-preview/|${DATADIR}/puzzle-preview/|g" ${WRKSRC}/main.cxx
X	@${REINPLACE_CMD} -e "s|puzzle-maps/|${DATADIR}/puzzle-maps/|g" ${WRKSRC}/puzzle-preview/preview.map
X	@${RM} ${WRKSRC}/puzzle-preview/preview.map.bak
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/glpuzzle ${PREFIX}/bin
X.for i in font puzzle-maps puzzle-preview
X	${MKDIR} ${DATADIR}/${i}
X	${INSTALL_DATA} ${WRKSRC}/${i}/* ${DATADIR}/${i}/
X.endfor
X
X.ifndef (NOPORTDOCS)
Xpost-install:
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-glpuzzle/Makefile
echo x - glpuzzle/distinfo
sed 's/^X//' >glpuzzle/distinfo << 'END-of-glpuzzle/distinfo'
XMD5 (glpuzzle-0.1.2.tgz) = dda33d2b77a00b39bd3240cd65710d77
XSHA256 (glpuzzle-0.1.2.tgz) = 1dde2a5fefeb957358697d49054ef8043e7d7d0486b672647ccaa9a7ca3922c7
XSIZE (glpuzzle-0.1.2.tgz) = 3207022
END-of-glpuzzle/distinfo
echo x - glpuzzle/pkg-descr
sed 's/^X//' >glpuzzle/pkg-descr << 'END-of-glpuzzle/pkg-descr'
Xglpuzzle is a jigsaw puzzle game. Choose from 12 puzzles of various
Xdifficulties (4 to 25 pieces), and move the pieces around to create
Xthe desired picture. glpuzzle uses OpenGL for smooth movement and
Xanti-aliased display.
X
XWWW: http://www.iua.upf.es/~mdeboer/resorama/glpuzzle/
END-of-glpuzzle/pkg-descr
echo x - glpuzzle/pkg-plist
sed 's/^X//' >glpuzzle/pkg-plist << 'END-of-glpuzzle/pkg-plist'
Xbin/glpuzzle
X%%DATADIR%%/font/charmap.jpg
X%%DATADIR%%/font/charmap.map
X%%DATADIR%%/font/charmap.png
X%%DATADIR%%/puzzle-maps/bike-3x4.jpg
X%%DATADIR%%/puzzle-maps/bike-3x4.map
X%%DATADIR%%/puzzle-maps/bike-3x4.png
X%%DATADIR%%/puzzle-maps/bird-4x4.jpg
X%%DATADIR%%/puzzle-maps/bird-4x4.map
X%%DATADIR%%/puzzle-maps/bird-4x4.png
X%%DATADIR%%/puzzle-maps/blackberry-3x3.jpg
X%%DATADIR%%/puzzle-maps/blackberry-3x3.map
X%%DATADIR%%/puzzle-maps/blackberry-3x3.png
X%%DATADIR%%/puzzle-maps/castle-6x3.jpg
X%%DATADIR%%/puzzle-maps/castle-6x3.map
X%%DATADIR%%/puzzle-maps/castle-6x3.png
X%%DATADIR%%/puzzle-maps/clouds-4x4.jpg
X%%DATADIR%%/puzzle-maps/clouds-4x4.map
X%%DATADIR%%/puzzle-maps/clouds-4x4.png
X%%DATADIR%%/puzzle-maps/goat-4x3.jpg
X%%DATADIR%%/puzzle-maps/goat-4x3.map
X%%DATADIR%%/puzzle-maps/goat-4x3.png
X%%DATADIR%%/puzzle-maps/gorilla-4x3.jpg
X%%DATADIR%%/puzzle-maps/gorilla-4x3.map
X%%DATADIR%%/puzzle-maps/gorilla-4x3.png
X%%DATADIR%%/puzzle-maps/heli-4x3.jpg
X%%DATADIR%%/puzzle-maps/heli-4x3.map
X%%DATADIR%%/puzzle-maps/heli-4x3.png
X%%DATADIR%%/puzzle-maps/horse-4x3.jpg
X%%DATADIR%%/puzzle-maps/horse-4x3.map
X%%DATADIR%%/puzzle-maps/horse-4x3.png
X%%DATADIR%%/puzzle-maps/penguin-3x2.jpg
X%%DATADIR%%/puzzle-maps/penguin-3x2.map
X%%DATADIR%%/puzzle-maps/penguin-3x2.png
X%%DATADIR%%/puzzle-maps/penguins-5x5.jpg
X%%DATADIR%%/puzzle-maps/penguins-5x5.map
X%%DATADIR%%/puzzle-maps/penguins-5x5.png
X%%DATADIR%%/puzzle-maps/train-2x2.jpg
X%%DATADIR%%/puzzle-maps/train-2x2.map
X%%DATADIR%%/puzzle-maps/train-2x2.png
X%%DATADIR%%/puzzle-preview/preview.jpg
X%%DATADIR%%/puzzle-preview/preview.map
X%%DATADIR%%/puzzle-preview/preview.png
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrm %%DATADIR%%/puzzle-preview
X at dirrm %%DATADIR%%/puzzle-maps
X at dirrm %%DATADIR%%/font
X at dirrm %%DATADIR%%
END-of-glpuzzle/pkg-plist
exit
--- glpuzzle-0.1.2.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list