Index: head/games/quakeforge/Makefile =================================================================== --- head/games/quakeforge/Makefile (revision 366876) +++ head/games/quakeforge/Makefile (revision 366877) @@ -1,125 +1,124 @@ -# Created by: darius@dons.net.au +# Created by: Daniel J. O'Connor # $FreeBSD$ PORTNAME= quakeforge PORTVERSION= 0.5.5 PORTREVISION= 12 CATEGORIES= games MASTER_SITES= SF/quake/quake/${PORTVERSION}:sf DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org -COMMENT= Cleaned up copy of the GPLd Quake 1 source code +COMMENT= Cleaned up copy of the GPL'ed Quake 1 source code -NOT_FOR_ARCHS= sparc64 -NOT_FOR_ARCHS_REASON= generated Quake C compiler (qfcc) does not work +LICENSE= GPLv2 + +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png + USE_AUTOTOOLS= libtool -USES= bison gmake tar:bzip2 +USES= bison compiler:nestedfct gmake tar:bzip2 USE_LDCONFIG= yes GNU_CONFIGURE= yes WANT_SDL= yes CONFIGURE_ARGS+=--with-global-cfg=${PREFIX}/etc/quakeforge.conf \ --with-sharepath=${DATADIR} \ --disable-optimize OPTIONS_DEFINE= CLIENTS OPTIMIZED_CFLAGS SDL SERVERS SKYBOXES VORBIS \ XMMS DOCS -OPTIONS_DEFAULT= CLIENTS OPTIMIZED_CFLAGS SERVERS DOCS +OPTIONS_DEFAULT= CLIENTS SERVERS DOCS CLIENTS_DESC= Clients SDL_DESC= SDL client SERVERS_DESC= Dedicated servers SKYBOXES_DESC= Install skyboxes pak VORBIS_DESC= Ogg Vorbis support in clients XMMS_DESC= XMMS support in clients -MAN1= pak.1 qfcc.1 qflight.1 qfvis.1 wad.1 SUB_FILES= pkg-message DATADIR= ${Q1DIR} -NO_STAGE= yes .include "${.CURDIR}/../quake-data/Makefile.include" - .include .if ${PORT_OPTIONS:MCLIENTS} USE_GL= yes USE_XORG= x11 xt PLIST_SUB+= CLIENTS="" .if ${PORT_OPTIONS:MSDL} USE_SDL= sdl CONFIGURE_ARGS+=--with-sdl=${LOCALBASE} PLIST_SUB+= SDL="" .else CONFIGURE_ARGS+=--disable-sdl PLIST_SUB+= SDL="@comment " .endif .if ${PORT_OPTIONS:MVORBIS} LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis CONFIGURE_ARGS+=--with-ogg=${LOCALBASE} --with-vorbis=${LOCALBASE} PLIST_SUB+= VORBIS="" .else CONFIGURE_ARGS+=--disable-ogg --disable-vorbis PLIST_SUB+= VORBIS="@comment " .endif .if ${PORT_OPTIONS:MXMMS} LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms CONFIGURE_ARGS+=--with-xmms-prefix=${LOCALBASE} PLIST_SUB+= XMMS="" .else CONFIGURE_ARGS+=--disable-xmms PLIST_SUB+= XMMS="@comment " .endif .else CONFIGURE_ARGS+=--with-clients="" PLIST_SUB+= CLIENTS="@comment " .endif .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS+= -O3 -funroll-loops -fomit-frame-pointer -fno-common \ - -fexpensive-optimizations -fstrict-aliasing -. if ${ARCH} != "alpha" -CFLAGS+= -ffast-math -. endif + -fexpensive-optimizations -fstrict-aliasing -ffast-math .endif .if ${PORT_OPTIONS:MSERVERS} PLIST_SUB+= SERVERS="" .else CONFIGURE_ARGS+=--with-servers="" PLIST_SUB+= SERVERS="@comment " .endif .if ${PORT_OPTIONS:MSKYBOXES} MASTER_SITES+= http://www.quakeforge.net/files/:qf DISTFILES+= skyboxes.pak:qf PLIST_SUB+= SKYBOXES="" .else PLIST_SUB+= SKYBOXES="@comment " .endif +post-patch: + @${REINPLACE_CMD} -e 's,\*gzfile,gzfile,' ${WRKSRC}/libs/util/quakeio.c + @${REINPLACE_CMD} -e 's,-no-undefined,& -L${LOCALBASE}/lib,' \ + ${WRKSRC}/libs/image/Makefile.in + post-install: .if ${PORT_OPTIONS:MSKYBOXES} - ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/skyboxes.pak ${DATADIR}/QF + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/skyboxes.pak \ + ${STAGEDIR}${DATADIR}/QF .endif -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -. for f in *.txt *.q1 *.q2 *.ico *.gif *.fig *.h CodingStyle - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} -. endfor -. for d in config data ideas - ${CP} -R ${WRKSRC}/doc/${d} ${DOCSDIR} -. endfor -.endif - @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in *.txt *.q1 *.q2 *.ico *.gif *.fig *.h CodingStyle + ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR} +.endfor +.for d in config data ideas + ${CP} -a ${WRKSRC}/doc/${d} ${STAGEDIR}${DOCSDIR} +.endfor .include Index: head/games/quakeforge/files/patch-libs-audio-targets-snd_oss.c =================================================================== --- head/games/quakeforge/files/patch-libs-audio-targets-snd_oss.c (nonexistent) +++ head/games/quakeforge/files/patch-libs-audio-targets-snd_oss.c (revision 366877) @@ -0,0 +1,18 @@ +--- libs/audio/targets/snd_oss.c.orig 2004-01-16 02:50:26 UTC ++++ libs/audio/targets/snd_oss.c +@@ -132,12 +132,11 @@ try_open (int rw) + if (snd_device->string[0]) + snd_dev = snd_device->string; + +- if (rw) { ++ if (rw) + omode = O_RDWR; +- mmmode |= PROT_READ; +- mmflags |= MAP_SHARED; +- } + omode |= O_NONBLOCK; ++ mmmode |= PROT_READ; ++ mmflags |= MAP_SHARED; /* device mmapping on FreeBSD requires this */ + + audio_fd = open (snd_dev, omode); + if (audio_fd < 0) { // Failed open, retry up to 3 times Property changes on: head/games/quakeforge/files/patch-libs-audio-targets-snd_oss.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/quakeforge/pkg-plist =================================================================== --- head/games/quakeforge/pkg-plist (revision 366876) +++ head/games/quakeforge/pkg-plist (revision 366877) @@ -1,321 +1,326 @@ bin/bsp2img %%SERVERS%%bin/hw-master %%CLIENTS%%bin/nq-glx %%CLIENTS%%%%SDL%%bin/nq-sdl %%CLIENTS%%%%SDL%%bin/nq-sdl32 %%SERVERS%%bin/nq-server %%CLIENTS%%%%SDL%%bin/nq-sgl %%CLIENTS%%bin/nq-x11 bin/pak bin/qfbsp bin/qfcc bin/qflight bin/qfmodelgen bin/qfpreqcc bin/qfprogs bin/qfvis bin/qfwavinfo %%SERVERS%%bin/qtv %%CLIENTS%%bin/qw-client-glx %%CLIENTS%%%%SDL%%bin/qw-client-sdl %%CLIENTS%%%%SDL%%bin/qw-client-sdl32 %%CLIENTS%%%%SDL%%bin/qw-client-sgl %%CLIENTS%%bin/qw-client-x11 %%SERVERS%%bin/qw-master %%SERVERS%%bin/qw-server bin/wad bin/zpak %%CLIENTS%%lib/libQFcd.a %%CLIENTS%%lib/libQFcd.la %%CLIENTS%%lib/libQFcd.so %%CLIENTS%%lib/libQFcd.so.1 lib/libQFconsole.a lib/libQFconsole.la lib/libQFconsole.so lib/libQFconsole.so.1 lib/libQFgamecode.a lib/libQFgamecode.la lib/libQFgamecode.so lib/libQFgamecode.so.1 lib/libQFgamecode_builtins.a lib/libQFgamecode_builtins.la lib/libQFgamecode_builtins.so lib/libQFgamecode_builtins.so.1 lib/libQFgib.a lib/libQFgib.la lib/libQFgib.so lib/libQFgib.so.1 lib/libQFimage.a lib/libQFimage.la lib/libQFimage.so lib/libQFimage.so.1 %%CLIENTS%%lib/libQFjs.a %%CLIENTS%%lib/libQFjs.la %%CLIENTS%%lib/libQFjs.so %%CLIENTS%%lib/libQFjs.so.1 lib/libQFmodels.a lib/libQFmodels.la lib/libQFmodels.so lib/libQFmodels.so.1 %%CLIENTS%%lib/libQFmodels_gl.a %%CLIENTS%%lib/libQFmodels_gl.la %%CLIENTS%%lib/libQFmodels_gl.so %%CLIENTS%%lib/libQFmodels_gl.so.1 %%CLIENTS%%lib/libQFmodels_sw.a %%CLIENTS%%lib/libQFmodels_sw.la %%CLIENTS%%lib/libQFmodels_sw.so %%CLIENTS%%lib/libQFmodels_sw.so.1 %%CLIENTS%%lib/libQFrenderer_gl.a %%CLIENTS%%lib/libQFrenderer_gl.la %%CLIENTS%%lib/libQFrenderer_gl.so %%CLIENTS%%lib/libQFrenderer_gl.so.1 %%CLIENTS%%lib/libQFrenderer_sw.a %%CLIENTS%%lib/libQFrenderer_sw.la %%CLIENTS%%lib/libQFrenderer_sw.so %%CLIENTS%%lib/libQFrenderer_sw.so.1 %%CLIENTS%%%%SDL%%lib/libQFrenderer_sw32.a %%CLIENTS%%%%SDL%%lib/libQFrenderer_sw32.la %%CLIENTS%%%%SDL%%lib/libQFrenderer_sw32.so %%CLIENTS%%%%SDL%%lib/libQFrenderer_sw32.so.1 lib/libQFruamoko.a lib/libQFruamoko.la lib/libQFruamoko.so lib/libQFruamoko.so.1 %%CLIENTS%%lib/libQFsound.a %%CLIENTS%%lib/libQFsound.la %%CLIENTS%%lib/libQFsound.so %%CLIENTS%%lib/libQFsound.so.1 lib/libQFutil.a lib/libQFutil.la lib/libQFutil.so lib/libQFutil.so.1 %%CLIENTS%%lib/quakeforge/cd_file.a %%CLIENTS%%lib/quakeforge/cd_file.la %%CLIENTS%%lib/quakeforge/cd_file.so %%CLIENTS%%%%SDL%%lib/quakeforge/cd_sdl.a %%CLIENTS%%%%SDL%%lib/quakeforge/cd_sdl.la %%CLIENTS%%%%SDL%%lib/quakeforge/cd_sdl.so %%CLIENTS%%%%XMMS%%lib/quakeforge/cd_xmms.a %%CLIENTS%%%%XMMS%%lib/quakeforge/cd_xmms.la %%CLIENTS%%%%XMMS%%lib/quakeforge/cd_xmms.so lib/quakeforge/console_client.a lib/quakeforge/console_client.la lib/quakeforge/console_client.so lib/quakeforge/console_server.a lib/quakeforge/console_server.la lib/quakeforge/console_server.so %%CLIENTS%%lib/quakeforge/snd_output_disk.a %%CLIENTS%%lib/quakeforge/snd_output_disk.la %%CLIENTS%%lib/quakeforge/snd_output_disk.so %%CLIENTS%%lib/quakeforge/snd_output_oss.a %%CLIENTS%%lib/quakeforge/snd_output_oss.la %%CLIENTS%%lib/quakeforge/snd_output_oss.so %%CLIENTS%%%%SDL%%lib/quakeforge/snd_output_sdl.a %%CLIENTS%%%%SDL%%lib/quakeforge/snd_output_sdl.la %%CLIENTS%%%%SDL%%lib/quakeforge/snd_output_sdl.so %%CLIENTS%%lib/quakeforge/snd_render_default.a %%CLIENTS%%lib/quakeforge/snd_render_default.la %%CLIENTS%%lib/quakeforge/snd_render_default.so lib/ruamoko/libcsqc.a lib/ruamoko/libgui.a lib/ruamoko/libnq.a lib/ruamoko/libqw.a lib/ruamoko/libr.a %%DATADIR%%/QF/menu.dat.gz %%SKYBOXES%%%%DATADIR%%/QF/skyboxes.pak include/QF/bspfile.h include/QF/cbuf.h include/QF/cdaudio.h include/QF/checksum.h include/QF/clip_hull.h include/QF/cmd.h include/QF/console.h include/QF/crc.h include/QF/csqc.h include/QF/cvar.h include/QF/draw.h include/QF/dstring.h include/QF/gib.h include/QF/hash.h include/QF/hl.h include/QF/idparse.h include/QF/image.h include/QF/in_event.h include/QF/info.h include/QF/input.h include/QF/joystick.h include/QF/keys.h include/QF/link.h include/QF/llist.h include/QF/locs.h include/QF/mathlib.h include/QF/mdfour.h include/QF/model.h include/QF/modelgen.h include/QF/msg.h include/QF/object.h include/QF/pak.h include/QF/pakfile.h include/QF/pcx.h include/QF/plugin.h include/QF/png.h include/QF/pr_comp.h include/QF/pr_debug.h include/QF/pr_obj.h include/QF/progs.h include/QF/qargs.h include/QF/qdefs.h include/QF/qendian.h include/QF/qfplist.h include/QF/qtypes.h include/QF/quakefs.h include/QF/quakeio.h include/QF/render.h include/QF/riff.h include/QF/ruamoko.h include/QF/screen.h include/QF/sizebuf.h include/QF/skin.h include/QF/sound.h include/QF/spritegn.h include/QF/sys.h include/QF/teamplay.h include/QF/tga.h include/QF/uint32.h include/QF/va.h include/QF/ver_check.h include/QF/vid.h include/QF/view.h include/QF/wad.h include/QF/wadfile.h include/QF/zone.h include/QF/GL/ati.h include/QF/GL/defines.h include/QF/GL/extensions.h include/QF/GL/funcs.h include/QF/GL/qf_explosions.h include/QF/GL/qf_funcs_list.h include/QF/GL/qf_lightmap.h include/QF/GL/qf_noisetextures.h include/QF/GL/qf_rlight.h include/QF/GL/qf_rmain.h include/QF/GL/qf_rsurf.h include/QF/GL/qf_screen.h include/QF/GL/qf_sky.h include/QF/GL/qf_textures.h include/QF/GL/qf_vid.h include/QF/GL/types.h include/QF/plugin/cd.h include/QF/plugin/console.h include/QF/plugin/general.h include/QF/plugin/input.h include/QF/plugin/snd_output.h include/QF/plugin/snd_render.h include/QF/ruamoko/Array.h include/QF/ruamoko/AutoreleasePool.h include/QF/ruamoko/Entity.h include/QF/ruamoko/List.h include/QF/ruamoko/ListNode.h include/QF/ruamoko/Object.h include/QF/ruamoko/Stack.h include/QF/ruamoko/cbuf.h include/QF/ruamoko/cmd.h include/QF/ruamoko/crudefile.h include/QF/ruamoko/cvar.h include/QF/ruamoko/debug.h include/QF/ruamoko/draw.h include/QF/ruamoko/entities.h include/QF/ruamoko/file.h include/QF/ruamoko/gib.h include/QF/ruamoko/hash.h include/QF/ruamoko/infokey.h include/QF/ruamoko/key.h include/QF/ruamoko/math.h include/QF/ruamoko/message.h include/QF/ruamoko/nq_message.h include/QF/ruamoko/physics.h include/QF/ruamoko/plist.h include/QF/ruamoko/qfile.h include/QF/ruamoko/qfs.h include/QF/ruamoko/qw_message.h include/QF/ruamoko/qw_physics.h include/QF/ruamoko/qw_sys.h include/QF/ruamoko/server.h include/QF/ruamoko/sound.h include/QF/ruamoko/string.h include/QF/ruamoko/system.h include/QF/ruamoko/gui/Group.h include/QF/ruamoko/gui/InputLine.h include/QF/ruamoko/gui/Pic.h include/QF/ruamoko/gui/Point.h include/QF/ruamoko/gui/Rect.h include/QF/ruamoko/gui/Size.h include/QF/ruamoko/gui/Slider.h include/QF/ruamoko/gui/Text.h include/QF/ruamoko/gui/View.h +man/man1/pak.1.gz +man/man1/qfcc.1.gz +man/man1/qflight.1.gz +man/man1/qfvis.1.gz +man/man1/wad.1.gz %%PORTDOCS%%%%DOCSDIR%%/3dfx.txt %%PORTDOCS%%%%DOCSDIR%%/CodingStyle %%PORTDOCS%%%%DOCSDIR%%/glqnotes.txt %%PORTDOCS%%%%DOCSDIR%%/net_DoS_protection.txt %%PORTDOCS%%%%DOCSDIR%%/progdefs.q1 %%PORTDOCS%%%%DOCSDIR%%/progdefs.q2 %%PORTDOCS%%%%DOCSDIR%%/qe3.ico %%PORTDOCS%%%%DOCSDIR%%/qf-client-3dfx-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-glx-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-sdl-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-sgl-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-svga-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-x11-cmd.txt %%PORTDOCS%%%%DOCSDIR%%/qf-client-x11-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/qf-server-cmd.txt %%PORTDOCS%%%%DOCSDIR%%/qf-server-cvar.txt %%PORTDOCS%%%%DOCSDIR%%/quake.gif %%PORTDOCS%%%%DOCSDIR%%/quake.ico %%PORTDOCS%%%%DOCSDIR%%/readme.txt %%PORTDOCS%%%%DOCSDIR%%/skybox.fig %%PORTDOCS%%%%DOCSDIR%%/template.h %%PORTDOCS%%%%DOCSDIR%%/timestamps.txt %%PORTDOCS%%%%DOCSDIR%%/wqreadme.txt %%PORTDOCS%%%%DOCSDIR%%/config/glspeed-v1.cfg %%PORTDOCS%%%%DOCSDIR%%/config/glspeed-v3.cfg %%PORTDOCS%%%%DOCSDIR%%/config/swspeed.cfg %%PORTDOCS%%%%DOCSDIR%%/config/gib/adjustvolume.gib %%PORTDOCS%%%%DOCSDIR%%/config/gib/infobot.gib %%PORTDOCS%%%%DOCSDIR%%/config/gib/ln.gib %%PORTDOCS%%%%DOCSDIR%%/config/gib/qfadmin.gib %%PORTDOCS%%%%DOCSDIR%%/config/gib/sshot.gib %%PORTDOCS%%%%DOCSDIR%%/config/gib/zoom.gib %%PORTDOCS%%%%DOCSDIR%%/data/comexp.txt %%PORTDOCS%%%%DOCSDIR%%/data/help.txt %%PORTDOCS%%%%DOCSDIR%%/data/licinfo.txt %%PORTDOCS%%%%DOCSDIR%%/data/manual.txt %%PORTDOCS%%%%DOCSDIR%%/data/order.txt %%PORTDOCS%%%%DOCSDIR%%/data/readme.txt %%PORTDOCS%%%%DOCSDIR%%/data/rlicnse.txt %%PORTDOCS%%%%DOCSDIR%%/data/slicnse.txt %%PORTDOCS%%%%DOCSDIR%%/data/techinfo.txt %%PORTDOCS%%%%DOCSDIR%%/data/docs/install %%PORTDOCS%%%%DOCSDIR%%/data/docs/install.q2mission %%PORTDOCS%%%%DOCSDIR%%/data/docs/install.quake %%PORTDOCS%%%%DOCSDIR%%/data/docs/install.quake2 %%PORTDOCS%%%%DOCSDIR%%/data/docs/readme %%PORTDOCS%%%%DOCSDIR%%/data/docs/readme.glquake %%PORTDOCS%%%%DOCSDIR%%/data/docs/readme.squake %%PORTDOCS%%%%DOCSDIR%%/data/docs/readme.x11 %%PORTDOCS%%%%DOCSDIR%%/ideas/quakedownload.txt %%PORTDOCS%%%%DOCSDIR%%/ideas/rhamph.txt %%PORTDOCS%%%%DOCSDIR%%/ideas/serverlist.txt %%PORTDOCS%%@dirrm %%DOCSDIR%%/ideas %%PORTDOCS%%@dirrm %%DOCSDIR%%/config/gib %%PORTDOCS%%@dirrm %%DOCSDIR%%/config %%PORTDOCS%%@dirrm %%DOCSDIR%%/data/docs %%PORTDOCS%%@dirrm %%DOCSDIR%%/data %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm include/QF/GL @dirrm include/QF/plugin @dirrm include/QF/ruamoko/gui @dirrm include/QF/ruamoko @dirrm include/QF @dirrm lib/ruamoko @dirrm lib/quakeforge @dirrm %%DATADIR%%/QF