Date: Fri, 31 Dec 1999 06:47:59 -0500 (EST) From: Will Andrews <andrews@technologist.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/15807: new port: games/rubix Message-ID: <199912311147.GAA37528@argon.blackdawn.com>
next in thread | raw e-mail | index | archive | help
>Number: 15807 >Category: ports >Synopsis: new port: games/rubix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 31 03:50:07 PST 1999 >Closed-Date: >Last-Modified: >Originator: Will Andrews >Release: FreeBSD 4.0-CURRENT i386 >Organization: none >Environment: FreeBSD argon.blackdawn.com 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Nov 30 10:14:31 EST 1999 root@argon.blackdawn.com:/usr/src/sys/compile/ARGON i386 >Description: See pkg/DESCR for more info. This is just a simple X11 rubik's cube game. I patched the main.c file to allow us to put the sound file and such in a ${PREFIX}/share/ directory, which makes this program much nicer to the ports collection. Plus, _now_ the program works without any intervening on the user's part (i.e. after installation). >How-To-Repeat: Use the shar below to commit the port to the tree. >Fix: # 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: # # rubix # rubix/files # rubix/files/md5 # rubix/pkg # rubix/pkg/COMMENT # rubix/pkg/DESCR # rubix/pkg/PLIST # rubix/patches # rubix/patches/patch-aa # rubix/patches/patch-ab # rubix/patches/patch-ac # rubix/patches/patch-ad # rubix/Makefile # echo c - rubix mkdir -p rubix > /dev/null 2>&1 echo c - rubix/files mkdir -p rubix/files > /dev/null 2>&1 echo x - rubix/files/md5 sed 's/^X//' >rubix/files/md5 << 'END-of-rubix/files/md5' XMD5 (rubix-1.0.1.tar.gz) = 665aec4bfaddbc98732c2963dc4d4a56 END-of-rubix/files/md5 echo c - rubix/pkg mkdir -p rubix/pkg > /dev/null 2>&1 echo x - rubix/pkg/COMMENT sed 's/^X//' >rubix/pkg/COMMENT << 'END-of-rubix/pkg/COMMENT' END-of-rubix/pkg/COMMENT echo x - rubix/pkg/DESCR sed 's/^X//' >rubix/pkg/DESCR << 'END-of-rubix/pkg/DESCR' END-of-rubix/pkg/DESCR echo x - rubix/pkg/PLIST sed 's/^X//' >rubix/pkg/PLIST << 'END-of-rubix/pkg/PLIST' Xbin/rubix Xshare/rubix/module.xm Xshare/rubix/AUTHORS Xshare/rubix/BUGS Xshare/rubix/INSTALL Xshare/rubix/NOISE Xshare/rubix/README Xshare/rubix/TODO X@dirrm share/rubix END-of-rubix/pkg/PLIST echo c - rubix/patches mkdir -p rubix/patches > /dev/null 2>&1 echo x - rubix/patches/patch-aa sed 's/^X//' >rubix/patches/patch-aa << 'END-of-rubix/patches/patch-aa' X--- Makefile Mon Dec 6 10:19:16 1999 X+++ Makefile.new Mon Dec 6 16:54:12 1999 X@@ -12,34 +12,37 @@ X X #customize to fit your needs (it does not work for now). X architecture=-DPC_ARCHI X+module_file=-DMODULE_FILE_PREFIX=\"$(PREFIX)/share/rubix/\" X X #SOLARIS=-lsocket X X CC=gcc X CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math -Iplayer \ X- $(architecture) X+ $(architecture) $(module_file) X #CFLAGS=-Wall -g -ffast-math -Iplayer \ X # $(architecture) X-XINC=-I/usr/X11R6/include X-XLIB=-L/usr/X11R6/lib -lX11 X+XINC=-I$(PREFIX)/include X+XLIB=-L$(PREFIX)/lib -lX11 X X #the following should not be changed. X X OBJ=cube.o event.o fillpoly.o line.o main.o screen.o sound.o player/player.a X X+all: rubix X+ X rubix : $(OBJ) X $(CC) $(CFLAGS) -o $@ $^ -lm $(XLIB) $(SOLARIS) X # strip rubix X X clean : X rm -f *.o *~ core *.bak *.dat gmon.out X- (cd player; make clean) X+ (cd player; $(GMAKE) clean) X X dep : X makedepend -Y *.c -s"#I like the GNU tools" -Iplayer X X player/player.a : player/*.c player/*.h X- (cd player; make) X+ (cd player; $(GMAKE)) X X %.o : %.c X $(CC) $(CFLAGS) $(XINC) -c -o $@ $< END-of-rubix/patches/patch-aa echo x - rubix/patches/patch-ab sed 's/^X//' >rubix/patches/patch-ab << 'END-of-rubix/patches/patch-ab' X--- event.c Thu Dec 2 12:50:06 1999 X+++ event.c.new Mon Dec 6 16:44:01 1999 X@@ -18,6 +18,7 @@ X #include <errno.h> X #include <stdio.h> X #include <X11/Xlib.h> X+#include <string.h> X X #include "sound.h" X #include "screen.h" END-of-rubix/patches/patch-ab echo x - rubix/patches/patch-ac sed 's/^X//' >rubix/patches/patch-ac << 'END-of-rubix/patches/patch-ac' X--- player/Makefile Thu Dec 2 12:35:44 1999 X+++ player/Makefile.new Mon Dec 6 16:45:30 1999 X@@ -7,7 +7,8 @@ X WITH_ASM=1 X X CC=gcc X-CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math X+INCS=-I$(PREFIX)/include X+CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math $(INCS) X X OBJ=card.o mixer.o xm.o live_player.o wav.o X END-of-rubix/patches/patch-ac echo x - rubix/patches/patch-ad sed 's/^X//' >rubix/patches/patch-ad << 'END-of-rubix/patches/patch-ad' X--- main.c Thu Dec 2 19:00:49 1999 X+++ main.c.new Wed Dec 22 21:13:11 1999 X@@ -22,6 +22,10 @@ X #include "event.h" X #include "device.h" X X+#ifndef MODULE_FILE_PREFIX X+#define MODULE_FILE_PREFIX "\"/usr/X11R6/share/rubix/\"" X+#endif X+ X char *the_screen; X device d; X X@@ -32,6 +36,10 @@ X CUBE cube; X int i; X int rand=1; X+ char full_module_file[4096]; X+ char *module_file = "module.xm"; X+ strcpy(full_module_file, MODULE_FILE_PREFIX); X+ strcat(full_module_file, module_file); X X the_screen=&screen.buffer[0]; X d.buffer=screen.buffer; X@@ -68,7 +76,7 @@ X return -1; X } X X- if (rubick_init_sound(&sound, "module.xm")==-1) { X+ if (rubick_init_sound(&sound, full_module_file)==1) { X fprintf(stderr, "Error with initing the sound, sorry pal, no sound no game.\n(I fucked my head with" X " an xm player, this is not for nothing !)\n"); X return 0; END-of-rubix/patches/patch-ad echo x - rubix/Makefile sed 's/^X//' >rubix/Makefile << 'END-of-rubix/Makefile' X# New ports collection makefile for: rubix X# Version required: 1.0.1 X# Date created: 19 Nov 1999 X# Whom: Will Andrews <andrews@technologist.com> X# X# $FreeBSD$ X# X XDISTNAME= rubix-1.0.1 XCATEGORIES= games XMASTER_SITES= http://sed.free.fr/rubix/ X XMAINTAINER= andrews@technologist.com X XBUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm X XUSE_GMAKE= yes XMAKE_ENV= GMAKE=${GMAKE} XUSE_X_PREFIX= yes X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/rubix ${PREFIX}/bin X @${MKDIR} ${PREFIX}/share/rubix X @${INSTALL_DATA} ${WRKSRC}/module.xm ${PREFIX}/share/rubix X.if !defined(NOPORTDOCS) X.for DOC in AUTHORS BUGS INSTALL NOISE README TODO X @${INSTALL_DATA} ${WRKSRC}/${DOC} ${PREFIX}/share/rubix X.endfor X @${ECHO} X @${ECHO} "Docs are installed in ${PREFIX}/share/rubix." X @${ECHO} X.endif X X.include <bsd.port.mk> END-of-rubix/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912311147.GAA37528>