ports/56763: New Port: games/uqm, Ur-Quan Masters
Benjamin Lutz
benlutz at datacomm.ch
Sun Sep 14 04:40:11 UTC 2003
>Number: 56763
>Category: ports
>Synopsis: New Port: games/uqm, Ur-Quan Masters
>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: Sat Sep 13 21:40:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Lutz
>Release: FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD midgard 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Wed Sep 10 01:25:59 CEST 2003 root at midgard:/usr/obj/usr/src/sys/MIDGARD i386
>Description:
Ur-Quan Masters is a port of the original Star Control 2 for 3DO Consoles.
WWW: http://sc2.sourceforge.net
>How-To-Repeat:
>Fix:
--- uqm.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:
#
# uqm
# uqm/Makefile
# uqm/distinfo
# uqm/files
# uqm/files/patch-aa
# uqm/pkg-plist
# uqm/pkg-descr
#
echo c - uqm
mkdir -p uqm > /dev/null 2>&1
echo x - uqm/Makefile
sed 's/^X//' >uqm/Makefile << 'END-of-uqm/Makefile'
X# Ports collection makefile for: uqm
X# Date created: 14 September 2003
X# Whom: asami
X#
X# $FreeBSD$
X#
X
XPORTNAME= uqm
XPORTVERSION= 0.3
XCATEGORIES= games
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=sc2
XDISTFILES= ${PORTNAME}-${PORTVERSION}-source.tgz ${PORTNAME}-${PORTVERSION}-content.zip
XEXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}-source.tgz
X
XMAINTAINER= benlutz at datacomm.ch
XCOMMENT= A port of the original Star Control 2 for 3DO consoles
X
XLIB_DEPENDS= SDL_image:${PORTSDIR}/graphics/sdl_image \
X SDL_mixer:${PORTSDIR}/audio/sdl_mixer \
X vorbis:${PORTSDIR}/audio/libvorbis \
X ogg:${PORTSDIR}/audio/libogg
X
XUSE_XLIB= yes
XUSE_GMAKE= yes
XUSE_SDL= yes
XNO_INSTALL_MANPAGES=yes
X
Xpost-extract:
X ${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}-content.zip ${WRKSRC}/content/packages/
X
Xdo-configure:
X cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./build.sh uqm config
X
Xdo-build:
X cd ${WRKSRC} && ./build.sh uqm
X
Xdo-install:
X cd ${WRKSRC} && ./build.sh uqm install
X
Xpost-install:
X ${STRIP_CMD} ${PREFIX}/lib/uqm/uqm
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X ${INSTALL_MAN} ${WRKSRC}/doc/users/manual.txt ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-uqm/Makefile
echo x - uqm/distinfo
sed 's/^X//' >uqm/distinfo << 'END-of-uqm/distinfo'
XMD5 (uqm-0.3-source.tgz) = 6abcdc3caf7efd3bd978332743ee7568
XMD5 (uqm-0.3-content.zip) = b17bb7b54df03b2d0ae3a23b91382b27
END-of-uqm/distinfo
echo c - uqm/files
mkdir -p uqm/files > /dev/null 2>&1
echo x - uqm/files/patch-aa
sed 's/^X//' >uqm/files/patch-aa << 'END-of-uqm/files/patch-aa'
X--- build/unix/build.config.orig Sat Sep 6 17:08:49 2003
X+++ build/unix/build.config Sun Sep 14 06:19:47 2003
X@@ -2,7 +2,6 @@
X
X # Include build functions used here
X . build/unix/config_functions
X-. build/unix/menu_functions
X . build/unix/ansi
X
X
X@@ -37,168 +36,24 @@
X define_have_header getopt.h
X
X
X-# Describe the menu:
X-MENU_main_ITEMS="debug graphics sound ioformat install_path"
X-MENU_main_TITLE="Main menu"
X-MENU_main_ITEM_debug_TYPE=CHOICE
X-MENU_main_ITEM_graphics_TYPE=CHOICE
X-MENU_main_ITEM_sound_TYPE=CHOICE
X-MENU_main_ITEM_ioformat_TYPE=CHOICE
X-MENU_main_ITEM_link_TYPE=CHOICE
X-MENU_main_ITEM_install_path_TYPE=MENU
X-
X-CHOICE_debug_OPTIONS="nodebug debug strictdebug"
X-CHOICE_debug_TITLE="Include debugging information"
X-CHOICE_debug_OPTION_nodebug_TITLE="No debugging information"
X-CHOICE_debug_OPTION_nodebug_ACTION='nodebug_action'
X-nodebug_action() {
X- CFLAGS="$CFLAGS -O3"
X- DEBUG=0
X-}
X-CHOICE_debug_OPTION_debug_TITLE="Debugging information"
X-CHOICE_debug_OPTION_debug_ACTION='debug_action'
X-debug_action() {
X- CFLAGS="$CFLAGS -g -O0 -W -Wall"
X- CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore deugging
X- LDFLAGS="$LDFLAGS -O0"
X- DEBUG=1
X-}
X-CHOICE_debug_OPTION_strictdebug_TITLE="Debug info + strict compile checks"
X-CHOICE_debug_OPTION_strictdebug_ACTION='strictdebug_action'
X-strictdebug_action() {
X- CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized
X- CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore debugging
X- CFLAGS="$CFLAGS -W -Wall \
X- -Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
X- -Wstrict-prototypes -Wmissing-declarations \
X- -Wwrite-strings -Wimplicit -Wreturn-type -Wformat \
X- -Wswitch -Wcomment -Wchar-subscripts \
X- -Wparentheses -Wcast-align -Waggregate-return \
X- -Winline -Wuninitialized"
X-# CFLAGS="$CFLAGS "-Wpointer-arith"
X- # Some standard header won't even compile with this on
X-# CFLAGS="$CFLAGS -Wshadow"
X- # This gives absurd conflicts with standard files,
X- # like from 'y2'
X-# CFLAGS="$CFLAGS -Werror"
X- # We shouldn't do this until we actually nail them
X- # all in the original code. Then we can enforce them
X- # on ourselves.
X-# CFLAGS="$CFLAGS -pedantic-errors -ansi -trigraphs" # ANSI
X-# CFLAGS="$CFLAGS -Wnested-externs"
X- # We know they're in the code, and though we'd like to get
X- # rid of them, they're not bugs.
X- CFLAGS=`echo $CFLAGS`
X- # Remove all the unnecessary spaces from $CFLAGS,
X- # for more readable messages.
X- DEBUG=0
X-}
X-CHOICE_debug_DEFAULT=debug
X-
X-CHOICE_graphics_OPTIONS="pure opengl"
X-CHOICE_graphics_TITLE="OpenGL graphics support"
X-CHOICE_graphics_OPTION_pure_TITLE="Don't include OpenGL graphics support"
X-CHOICE_graphics_OPTION_pure_ACTION='graphics_pure_action'
X-graphics_pure_action() {
X- CFLAGS="$CFLAGS -DGFXMODULE_SDL"
X- HAVE_OPENGL=0
X-}
X-CHOICE_graphics_OPTION_opengl_TITLE="Include OpenGL graphics support"
X-CHOICE_graphics_OPTION_opengl_ACTION='graphics_opengl_action'
X-CHOICE_graphics_OPTION_opengl_PRECOND="have_library opengl"
X-graphics_opengl_action() {
X- CFLAGS="$CFLAGS -DGFXMODULE_SDL -DHAVE_OPENGL"
X- HAVE_OPENGL=1
X- use_library opengl
X-}
X-CHOICE_graphics_DEFAULT=opengl
X-
X-CHOICE_sound_OPTIONS="mixsdl openal"
X-CHOICE_sound_TITLE="Sound backend"
X-CHOICE_sound_OPTION_mixsdl_TITLE="Use MixSDL for sound (internal)"
X-CHOICE_sound_OPTION_mixsdl_ACTION=sound_mixsdl_action
X-sound_mixsdl_action() {
X- CFLAGS="$CFLAGS -DSOUNDMODULE_SDL"
X- SOUNDMODULE=mixsdl
X- use_library vorbisfile
X-# use_library vorbis
X-}
X-CHOICE_sound_OPTION_openal_TITLE="Include OpenAL support (experimental)"
X-CHOICE_sound_OPTION_openal_PRECOND="have_library openal"
X-CHOICE_sound_OPTION_openal_ACTION=sound_openal_action
X-sound_openal_action() {
X- CFLAGS="$CFLAGS -DHAVE_OPENAL -DSOUNDMODULE_SDL"
X- SOUNDMODULE=openal
X- use_library openal
X- use_library vorbisfile
X-# use_library vorbis
X-}
X-CHOICE_sound_DEFAULT=mixsdl
X-
X-CHOICE_ioformat_OPTIONS="stdio stdio_zip"
X-CHOICE_ioformat_TITLE="Supported file i/o methods"
X-CHOICE_ioformat_OPTION_stdio_TITLE="Only direct file i/o"
X-CHOICE_ioformat_OPTION_stdio_zip_TITLE="Direct & .zip file i/o"
X-CHOICE_ioformat_OPTION_stdio_zip_PRECOND="have_library zlib"
X-CHOICE_ioformat_OPTION_stdio_zip_ACTION="ioformat_stdio_zip_action"
X-ioformat_stdio_zip_action() {
X- CFLAGS="$CFLAGS -DHAVE_ZIP=1"
X- USE_ZIP_IO=1
X- use_library zlib
X-}
X-CHOICE_ioformat_DEFAULT=stdio_zip
X-
X-# Making static binaries is more complicated than this.
X-# For now, it will have to be done by hand.
X-#CHOICE_link_OPTIONS="static dynamic"
X-#CHOICE_link_TITLE="Linking"
X-#CHOICE_link_OPTION_static_TITLE="Statically linked libraries"
X-#CHOICE_link_OPTION_static_ACTION='eval LDFLAGS="$LDFLAGS -static"'
X-#CHOICE_link_OPTION_dynamic_TITLE="Dynamically linked libraries"
X-#CHOICE_link_DEFAULT=dynamic
X-
X-MENU_install_path_ITEMS="install_prefix install_bindir install_libdir \
X- install_sharedir"
X-MENU_install_path_TITLE="Installation paths"
X-MENU_install_path_ITEM_install_prefix_TYPE=INPUT
X-MENU_install_path_ITEM_install_bindir_TYPE=INPUT
X-MENU_install_path_ITEM_install_libdir_TYPE=INPUT
X-MENU_install_path_ITEM_install_sharedir_TYPE=INPUT
X-
X-INPUT_install_prefix_DEFAULT="/usr/local/games"
X-INPUT_install_prefix_TITLE="Installation prefix"
X-INPUT_install_prefix_VALIDATOR=validate_path
X-INPUT_install_prefix_ACTION='eval INSTALL_PREFIX=$MENU_install_prefix_VALUE'
X-
X-INPUT_install_bindir_DEFAULT='$prefix/bin'
X-INPUT_install_bindir_TITLE="Location for binaries"
X-INPUT_install_bindir_VALIDATOR=validate_path
X-
X-INPUT_install_libdir_DEFAULT='$prefix/lib'
X-INPUT_install_libdir_TITLE="Location for non-sharable data"
X-INPUT_install_libdir_VALIDATOR=validate_path
X-
X-INPUT_install_sharedir_DEFAULT='$prefix/share'
X-INPUT_install_sharedir_TITLE="Location for sharable data"
X-INPUT_install_sharedir_VALIDATOR=validate_path
X-
X-
X-# Show the menu and let people set things
X-do_menu MENU main config.state
X-echo "Configuration complete."
X-
X-# Set INSTALL_LIBDIR, INSTALL_BINDIR, and INSTALL_SHAREDIR to the specified
X-# values, replacing '$prefix' to the prefix set.
X-prefix="$INPUT_install_prefix_VALUE" \
X- eval INSTALL_BINDIR="${INPUT_install_bindir_VALUE%/}/"
X-prefix="$INPUT_install_prefix_VALUE" \
X- eval INSTALL_LIBDIR="${INPUT_install_libdir_VALUE%/}/"
X-prefix="$INPUT_install_prefix_VALUE" \
X- eval INSTALL_SHAREDIR="${INPUT_install_sharedir_VALUE%/}/"
X+CFLAGS="$CFLAGS -O3"
X+DEBUG=0
X+CFLAGS="$CFLAGS -DGFXMODULE_SDL -DHAVE_OPENGL"
X+HAVE_OPENGL=1
X+use_library opengl
X+CFLAGS="$CFLAGS -DSOUNDMODULE_SDL"
X+SOUNDMODULE=mixsdl
X+use_library vorbisfile
X+CFLAGS="$CFLAGS -DHAVE_ZIP=1"
X+USE_ZIP_IO=1
X+use_library zlib
X+
X+INSTALL_BINDIR=${PREFIX}/bin/
X+INSTALL_LIBDIR=${PREFIX}/lib/
X+INSTALL_SHAREDIR=${PREFIX}/share/
X
X # Set the content dir
X CONTENTDIR="${INSTALL_SHAREDIR}uqm/content"
X-
X
X # Export the HAVE_ symbols to config.h, using config.h.in as template
X SUBSTITUTE_VARS="$HAVE_SYMBOLS CONTENTDIR"
END-of-uqm/files/patch-aa
echo x - uqm/pkg-plist
sed 's/^X//' >uqm/pkg-plist << 'END-of-uqm/pkg-plist'
Xbin/uqm
Xlib/uqm/uqm
Xshare/uqm/content/packages/uqm-0.3-content.zip
Xshare/uqm/content/version
X at dirrm share/uqm/content/packages/addons
X at dirrm share/uqm/content/packages
X at dirrm share/uqm/content
X at dirrm share/uqm
X at dirrm lib/uqm
X%%PORTDOCS%%%%DOCSDIR%%/manual.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-uqm/pkg-plist
echo x - uqm/pkg-descr
sed 's/^X//' >uqm/pkg-descr << 'END-of-uqm/pkg-descr'
XUr-Quan Masters is a port of the original Star Control 2 for 3DO Consoles.
X
XThe project started in August 2002, when Toys For Bob released the partially
Xported sources of Star Control 2 3DO version to the fan community. Our goal
Xis to port this wonderful game to current personal computers and operating
Xsystems. It is and will remain 100% free of charge, and anyone can contribute
Xto the project and thus help make it even better.
X
XWWW: http://sc2.sourceforge.net
END-of-uqm/pkg-descr
exit
--- uqm.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list