Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Nov 2008 18:59:10 GMT
From:      Ganael Laplanche <ganael.laplanche@martymac.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/128682: Port update: games/openalchemist - Update to v0.3
Message-ID:  <200811071859.mA7IxAXb069529@www.freebsd.org>
Resent-Message-ID: <200811071900.mA7J0CBF011987@freefall.freebsd.org>

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

>Number:         128682
>Category:       ports
>Synopsis:       Port update: games/openalchemist - Update to v0.3
>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:   Fri Nov 07 19:00:12 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #25: Tue Oct 21 13:40:19 CEST 2008     martymac@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL  amd64
>Description:
This patch updates Openalchemist to v0.3.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -aurN openalchemist.orig/Makefile openalchemist/Makefile
--- openalchemist.orig/Makefile	2008-05-16 20:59:50.000000000 +0200
+++ openalchemist/Makefile	2008-11-07 19:44:44.023831340 +0100
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	openalchemist
-PORTVERSION=	0.2.2
+PORTVERSION=	0.3
 CATEGORIES=	games
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
@@ -15,14 +15,37 @@
 COMMENT=	Tetris-like game
 
 BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
-LIB_DEPENDS=	clanCore-0.8:${PORTSDIR}/devel/clanlib
+LIB_DEPENDS=	clanCore-0.8:${PORTSDIR}/devel/clanlib \
+	jpeg.9:${PORTSDIR}/graphics/jpeg \
+	png.5:${PORTSDIR}/graphics/png
+
+USE_AUTOTOOLS=	aclocal:110 automake:110 autoconf:262
+# Necessary to find pkg.m4 (PKG_CHECK_MODULES)
+ACLOCAL_ARGS+=	-I ${LOCALBASE}/share/aclocal
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" \
+		LDFLAGS="${LDFLAGS}"
+USE_GNOME=	pkgconfig pygtk2
+USE_XORG=	xxf86vm xi x11 xmu xext xdamage xfixes xau xdmcp xt sm ice
+USE_GL=		gl glu
+USE_SDL=	sdl gfx
+USE_ICONV=	yes
 
-USE_GNOME=	pkgconfig
-MAKE_ENV+=	PTHREAD_LIBS="${PTHREAD_LIBS}" \
-		DATADIR="${DATADIR}"
+PORTDOCS=	AUTHORS CODE-LICENSE COPYING ChangeLog GRAPHICS-LICENSE README TODO
 
-# Allow relocation of skins (by default, must be in the skins/ sub-dir)
 post-patch:
-	@${REINPLACE_CMD} -E -e 's|CL_System::get_exe_path\(\) \+ "skins/|"${DATADIR}/skins/|g' ${WRKSRC}/src/*.cpp
+	@${REINPLACE_CMD} -E -e 's|^%|#|g' ${WRKSRC}/configure.ac
+	@${REINPLACE_CMD} -E -e 's|^dist_pkgdata_DATA =.*|dist_pkgdata_DATA = data/* skins/aqua.zip skins/brushed.zip skins/vectoriel.zip|g' ${WRKSRC}/Makefile.am
+	@${REINPLACE_CMD} -E -e 's|^#!/usr/bin/python|#!${LOCALBASE}/bin/python|g' ${WRKSRC}/openalchemist-config
+
+.if !defined(NOPORTDOCS)
+post-install:
+	${MKDIR} ${DOCSDIR}
+.for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
diff -aurN openalchemist.orig/distinfo openalchemist/distinfo
--- openalchemist.orig/distinfo	2008-05-16 20:59:50.000000000 +0200
+++ openalchemist/distinfo	2008-10-21 15:26:49.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (openalchemist-0.2.2-src.tar.gz) = 1fe3e74e100906258396694f40a8e7cd
-SHA256 (openalchemist-0.2.2-src.tar.gz) = 11c60f4e53fe42f349fe248eea09cfa8a984ff395c533d9874d8ccbd293ec1cc
-SIZE (openalchemist-0.2.2-src.tar.gz) = 2472519
+MD5 (openalchemist-0.3-src.tar.gz) = 3107b699d63d5ae7cbf65ddc9872c49a
+SHA256 (openalchemist-0.3-src.tar.gz) = 6f869ba8424f1f861a021b595c2b78b6e5740f56758f19b00f3bc7dc9105cc89
+SIZE (openalchemist-0.3-src.tar.gz) = 5936792
diff -aurN openalchemist.orig/files/patch-Makefile openalchemist/files/patch-Makefile
--- openalchemist.orig/files/patch-Makefile	2008-05-16 20:59:51.000000000 +0200
+++ openalchemist/files/patch-Makefile	1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
---- Makefile.orig	2006-09-03 20:17:13.000000000 +0200
-+++ Makefile	2008-04-30 19:57:29.216855616 +0200
-@@ -1,12 +1,10 @@
- PACKAGES = clanCore-0.8 clanDisplay-0.8 clanApp-0.8 clanGL-0.8 clanSDL-0.8
--LIBS = `pkg-config --libs $(PACKAGES)`
--OPTIONS =  -Iincludes -Wall -g
-+LIBS = `pkg-config --libs $(PACKAGES)` $(PTHREAD_LIBS)
-+OPTIONS = -Iincludes -I/usr/local/include -Wall -g
- LINKER_OPTIONS =  #-u malloc -lefence
- STATIC_LIBS = `pkg-config --libs $(PACKAGES) --static`
- CFLAGS = `pkg-config --cflags $(PACKAGES)`
- 
--INSTALL_DIR = /usr/local/games/openalchemist
--
- all: openalchemist skins/aqua.zip skins/brushed.zip
- 	@echo "OK"
- 
-@@ -83,18 +81,11 @@
- 	-rm skins/brushed.zip
- 
- install: openalchemist
--	mkdir $(INSTALL_DIR)
--	mkdir $(INSTALL_DIR)/skins
--	cp openalchemist $(INSTALL_DIR)/
--	cp skins/aqua.zip $(INSTALL_DIR)/skins/aqua.zip
--	cp skins/brushed.zip $(INSTALL_DIR)/skins/brushed.zip
--	ln -s $(INSTALL_DIR)/openalchemist /usr/local/bin/openalchemist
--
--uninstall: $(INSTALL_DIR)
--	rm $(INSTALL_DIR)/* -R
--	rmdir $(INSTALL_DIR)
--	rm /usr/local/bin/openalchemist
--
-+	install -d -o root -g wheel -m 755 $(PREFIX)/bin
-+	install -d -o root -g wheel -m 755 $(DATADIR)/skins
-+	install -s -o root -g wheel -m 555 openalchemist $(PREFIX)/bin/
-+	install -o root -g wheel -m 444 skins/aqua.zip $(DATADIR)/skins/aqua.zip
-+	install -o root -g wheel -m 444 skins/brushed.zip $(DATADIR)/skins/brushed.zip
- 
- static: includes/*.h bin/misc.o bin/main.o bin/game.o bin/key_events.o bin/detect_to_destroy.o bin/detect_to_fall.o bin/drawing.o bin/hightscores.o bin/pause.o bin/preferences.o bin/skins-selector.o skins/aqua.zip skins/brushed.zip
- 	@echo "On assemble le fichier final"
diff -aurN openalchemist.orig/files/patch-includes-piece.h openalchemist/files/patch-includes-piece.h
--- openalchemist.orig/files/patch-includes-piece.h	2008-05-16 20:59:51.000000000 +0200
+++ openalchemist/files/patch-includes-piece.h	1970-01-01 01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
---- includes/piece.h.orig	2008-03-18 17:51:15.254937990 +0100
-+++ includes/piece.h	2008-03-18 17:51:38.315878696 +0100
-@@ -81,12 +81,12 @@
-   }
-  
-   // Methods to display - be carefull, if current_prite is not initialized
--  void Piece::draw(CL_GraphicContext* context = 0)
-+  void draw(CL_GraphicContext* context = 0)
-     {
-       current_sprite -> draw(x, y, context);
-     }
- 
--  void Piece::draw_mini(CL_GraphicContext* context = 0)
-+  void draw_mini(CL_GraphicContext* context = 0)
-     {
-       mini_sprite -> draw(x, y, context); 
-     }
diff -aurN openalchemist.orig/pkg-plist openalchemist/pkg-plist
--- openalchemist.orig/pkg-plist	2008-05-16 20:59:50.000000000 +0200
+++ openalchemist/pkg-plist	2008-10-23 17:09:55.000000000 +0200
@@ -1,5 +1,9 @@
 bin/openalchemist
-%%DATADIR%%/skins/aqua.zip
-%%DATADIR%%/skins/brushed.zip
-@dirrm %%DATADIR%%/skins
+bin/openalchemist-config
+%%DATADIR%%/loading.png
+%%DATADIR%%/logo.png
+%%DATADIR%%/logo_svg.svg
+%%DATADIR%%/aqua.zip
+%%DATADIR%%/brushed.zip
+%%DATADIR%%/vectoriel.zip
 @dirrm %%DATADIR%%


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



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