Date: Sun, 25 Jan 2004 05:15:39 +0100 (CET) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/61863: New port: games/urban, a bloody, violent sidescrolling shoot-em-up Message-ID: <20040125041539.C974722E1B@jsite.lefort.net> Resent-Message-ID: <200401250420.i0P4KJh5097098@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 61863 >Category: ports >Synopsis: New port: games/urban, a bloody, violent sidescrolling shoot-em-up >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 24 20:20:19 PST 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 4.9-RELEASE i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Tue Dec 2 09:53:57 CET 2003 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 >Description: This port should be committed along with the submitted games/urban-sounds. >How-To-Repeat: >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: # # urban # urban/pkg-plist # urban/pkg-descr # urban/distinfo # urban/Makefile # urban/files # urban/files/patch-src::include::highscor.h # urban/files/patch-src::gfx::ggidrv.cc # urban/files/patch-src::highscor::highscor.cc # urban/files/patch-src::sound::sound.cc # urban/files/patch-configure # urban/pkg-message # echo c - urban mkdir -p urban > /dev/null 2>&1 echo x - urban/pkg-plist sed 's/^X//' >urban/pkg-plist << 'END-of-urban/pkg-plist' Xbin/urban Xshare/urban/intro.dat Xshare/urban/levels.dat Xshare/urban/urban.dat X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/CHEAT X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/README.swe X@dirrm share/urban X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-urban/pkg-plist echo x - urban/pkg-descr sed 's/^X//' >urban/pkg-descr << 'END-of-urban/pkg-descr' XURBAN is a bloody, violent sidescrolling shoot-em-up in which you're a Xrenegade military cyborg fighting your way out of the military base Xwhere you were created. X XWWW: http://urban.worldonline.nl/ X X- Jean-Yves Lefort Xjylefort@brutele.be END-of-urban/pkg-descr echo x - urban/distinfo sed 's/^X//' >urban/distinfo << 'END-of-urban/distinfo' XMD5 (urban/urban-1.5.2.tar.gz) = 4d394e70866db944ffff0901d75535b0 END-of-urban/distinfo echo x - urban/Makefile sed 's/^X//' >urban/Makefile << 'END-of-urban/Makefile' X# New ports collection makefile for: urban X# Date created: 25 Jan 2004 X# Whom: Jean-Yves Lefort <jylefort@brutele.be> X# X# $FreeBSD$ X# X XPORTNAME= urban XPORTVERSION= 1.5.2 XCATEGORIES= games XMASTER_SITES= http://urban.worldonline.nl/files/linux/ XDIST_SUBDIR= urban X XMAINTAINER= jylefort@brutele.be XCOMMENT= A bloody, violent sidescrolling shoot-em-up X XLIB_DEPENDS= ggi:${PORTSDIR}/graphics/libggi \ X mikmod:${PORTSDIR}/audio/libmikmod X XSCOREFILE= /var/games/urban.scores X XUSE_X_PREFIX= yes XGNU_CONFIGURE= yes XCFLAGS+= ${PTHREAD_CFLAGS} XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ X LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" XCONFIGURE_ARGS= --with-global-highscore=${SCOREFILE} X XOPTIONS= CHEAT_CODES "Enable cheat codes" off X X.include <bsd.port.pre.mk> X X.if defined(WITH_CHEAT_CODES) XCONFIGURE_ARGS+= --enable-cheat-codes X.endif X Xpost-install: X ${TOUCH} ${SCOREFILE} X ${CHGRP} games ${SCOREFILE} X ${CHMOD} g+w ${SCOREFILE} X ${CHGRP} games ${PREFIX}/bin/urban X ${CHMOD} g+s ${PREFIX}/bin/urban X.if !defined(NOPORTDOCS) X ${MKDIR} ${DOCSDIR} X ${INSTALL_DATA} \ X ${WRKSRC}/AUTHORS \ X ${WRKSRC}/CHEAT \ X ${WRKSRC}/NEWS \ X ${WRKSRC}/README \ X ${WRKSRC}/README.swe \ X ${DOCSDIR} X.endif X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-urban/Makefile echo c - urban/files mkdir -p urban/files > /dev/null 2>&1 echo x - urban/files/patch-src::include::highscor.h sed 's/^X//' >urban/files/patch-src::include::highscor.h << 'END-of-urban/files/patch-src::include::highscor.h' X--- src/include/highscor.h.orig Sun Jan 25 03:55:49 2004 X+++ src/include/highscor.h Sun Jan 25 03:55:54 2004 X@@ -6,7 +6,7 @@ X /***************************************************************************/ X struct Score { X char Name[64]; X- int Score; X+ int Skore; X int Level; X }; X /***************************************************************************/ END-of-urban/files/patch-src::include::highscor.h echo x - urban/files/patch-src::gfx::ggidrv.cc sed 's/^X//' >urban/files/patch-src::gfx::ggidrv.cc << 'END-of-urban/files/patch-src::gfx::ggidrv.cc' X--- src/gfx/ggidrv.cc.orig Sun Jan 25 03:56:28 2004 X+++ src/gfx/ggidrv.cc Sun Jan 25 03:57:34 2004 X@@ -383,7 +383,7 @@ X } X /**************************************************************************/ X int set_palette(PALETTE p) { X- struct ggi_color pal[256]; X+ ggi_color pal[256]; X int i; X X for(i=0;i<256;i++) { X@@ -398,7 +398,7 @@ X }; X /**************************************************************************/ X void get_palette(PALETTE p) { X- struct ggi_color pal[256]; X+ ggi_color pal[256]; X int i; X X ggiGetPalette(screen->vis, 0, 1 << 8, pal); X@@ -715,7 +715,7 @@ X } X /**************************************************************************/ X int set_color(int i, RGB *rgb) { X- struct ggi_color Color; X+ ggi_color Color; X X Color.r = rgb->r << 10; X Color.g = rgb->g << 10; END-of-urban/files/patch-src::gfx::ggidrv.cc echo x - urban/files/patch-src::highscor::highscor.cc sed 's/^X//' >urban/files/patch-src::highscor::highscor.cc << 'END-of-urban/files/patch-src::highscor::highscor.cc' X--- src/highscor/highscor.cc.orig Sun Jan 25 03:58:07 2004 X+++ src/highscor/highscor.cc Sun Jan 25 03:58:30 2004 X@@ -75,7 +75,7 @@ X X if(highscore[i].Level) X sprintf(buffer, " %-10s%6d %1d:%1d", highscore[i].Name, X- highscore[i].Score, ((highscore[i].Level-1) / 3) + 1, ((highscore[i].Level-1) % 3) + 1); X+ highscore[i].Skore, ((highscore[i].Level-1) / 3) + 1, ((highscore[i].Level-1) % 3) + 1); X else X sprintf(buffer, " %-10s%6d 0:0", "Empty", 0); X X@@ -166,13 +166,13 @@ X X for(int i = 0; i < NUM_HIGHSCORES; i++) { X X- if(score > highscore[i].Score) { X+ if(score > highscore[i].Skore) { X X memmove(&highscore[i + 1], &highscore[i], X sizeof(Score) * (NUM_HIGHSCORES - i - 1)); X X strcpy(highscore[i].Name, GetName()); X- highscore[i].Score = score; X+ highscore[i].Skore = score; X highscore[i].Level = level; X break; X } END-of-urban/files/patch-src::highscor::highscor.cc echo x - urban/files/patch-src::sound::sound.cc sed 's/^X//' >urban/files/patch-src::sound::sound.cc << 'END-of-urban/files/patch-src::sound::sound.cc' X--- src/sound/sound.cc.orig Sun Jan 25 03:58:51 2004 X+++ src/sound/sound.cc Sun Jan 25 04:00:00 2004 X@@ -90,7 +90,7 @@ X md_mode = DMODE_SOFT_SNDFX | DMODE_SOFT_MUSIC | DMODE_16BITS; X md_mixfreq = 22050; X X- if(MikMod_Init()) { X+ if(MikMod_Init(NULL)) { X fprintf(stderr,"Could not initialize sound, reason: %s\n", X MikMod_strerror(MikMod_errno)); X END-of-urban/files/patch-src::sound::sound.cc echo x - urban/files/patch-configure sed 's/^X//' >urban/files/patch-configure << 'END-of-urban/files/patch-configure' X--- configure.orig Sun Jan 25 03:50:44 2004 X+++ configure Sun Jan 25 04:28:46 2004 X@@ -1501,47 +1501,8 @@ X fi X done X X-echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6 X-echo "configure:1506: checking for pthread_mutex_init in -lpthread" >&5 X-ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'` X-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X- echo $ac_n "(cached) $ac_c" 1>&6 X-else X- ac_save_LIBS="$LIBS" X-LIBS="-lpthread $LIBS" X-cat > conftest.$ac_ext <<EOF X-#line 1514 "configure" X-#include "confdefs.h" X-/* Override any gcc2 internal prototype to avoid an error. */ X-/* We use char because int might match the return type of a gcc2 X- builtin and then its argument prototype would still apply. */ X-char pthread_mutex_init(); X- X-int main() { X-pthread_mutex_init() X-; return 0; } X-EOF X-if { (eval echo configure:1525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then X- rm -rf conftest* X- eval "ac_cv_lib_$ac_lib_var=yes" X-else X- echo "configure: failed program was:" >&5 X- cat conftest.$ac_ext >&5 X- rm -rf conftest* X- eval "ac_cv_lib_$ac_lib_var=no" X-fi X-rm -f conftest* X-LIBS="$ac_save_LIBS" X- X-fi X-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X- echo "$ac_t""yes" 1>&6 X- PTHREAD_LIBS="-lpthread" X-else X- echo "$ac_t""no" 1>&6 X-{ echo "configure: error: "Urban needs pthreads"" 1>&2; exit 1; } X-fi X- X+# PTHREAD_LIBS will be set in LDFLAGS by the FreeBSD port X+PTHREAD_LIBS= X X X # Check whether --with-libmikmod-prefix or --without-libmikmod-prefix was given. END-of-urban/files/patch-configure echo x - urban/pkg-message sed 's/^X//' >urban/pkg-message << 'END-of-urban/pkg-message' X------------------------------------------------------------------------------- XIf you want sound effects, install the games/urban-sounds port. X------------------------------------------------------------------------------- END-of-urban/pkg-message exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040125041539.C974722E1B>