Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2000 14:59:33 -0800 (PST)
From:      goranrunfeldt@home.se
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/23533: New port for xevil-2.02 (improved repost of ports/22665)
Message-ID:  <200012132259.eBDMxXD54075@freefall.freebsd.org>
Resent-Message-ID: <200012132300.eBDN02054153@freefall.freebsd.org>

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

>Number:         23533
>Category:       ports
>Synopsis:       New port for xevil-2.02 (improved repost of ports/22665)
>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:   Wed Dec 13 15:00:02 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Göran Runfeldt
>Release:        
>Organization:
>Environment:
>Description:
This is a port of xevil-2.02.
This port is almost the same as ports/22665 which got messed up.
I made some minor changes and added untested support for alpha-keymaps.
You should close the old report.
>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:
#
#   xevil2
#   xevil2/Makefile
#   xevil2/distinfo
#   xevil2/files
#   xevil2/files/patch-aa
#   xevil2/files/patch-ab
#   xevil2/files/patch-ac
#   xevil2/files/patch-ad
#   xevil2/pkg-comment
#   xevil2/pkg-descr
#   xevil2/pkg-plist
#
echo c - xevil2
mkdir -p xevil2 > /dev/null 2>&1
echo x - xevil2/Makefile
sed 's/^X//' >xevil2/Makefile << 'END-of-xevil2/Makefile'
X# New ports collection makefile for:   xevil
X# Date created:        7 November 2000
X# Whom:    Göran Runfeldt <goranrunfeldt@home.se>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      xevil
XPORTVERSION=   2.02
XCATEGORIES=        games
XMASTER_SITES=  ftp://ftp.xevil.com/stable/
XDISTNAME=      xevilsrc${PORTVERSION}
X
XMAINTAINER=        goranrunfeldt@home.se
X
XUSE_X_PREFIX=  yes
XUSE_ZIP=       yes
XUSE_XPM=       yes
XALL_TARGET=        freebsd
X
X# I'm not sure if this should be here
X.if (${MACHINE} == "alpha")
XCFLAGS+="-DXEVIL_KEYSET=UIalpha"
X.endif
X
Xpre-extract:
X   @${MKDIR} ${WRKDIR}/${DISTNAME}
X
Xdo-extract:
X   @unzip -aqo ${DISTDIR}/${DISTFILES} -d ${WRKSRC}
X
Xpost-extract:
X   @${MV} -f ${WRKDIR}/${DISTNAME}/makefile ${WRKDIR}/${DISTNAME}/Makef
ile
X
Xdo-install:
X   ${INSTALL_PROGRAM} ${WRKSRC}/x11/FREEBSD/xevil ${PREFIX}/bin/xevil2
X.if !defined(NOPORTDOCS)
X   ${MKDIR} ${PREFIX}/share/doc/xevil/instructions
X   ${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/xevil
X   ${INSTALL_DATA} ${WRKSRC}/instructions/* \
X   ${PREFIX}/share/doc/xevil/instructions
X.endif
X
X.include <bsd.port.mk>
END-of-xevil2/Makefile
echo x - xevil2/distinfo
sed 's/^X//' >xevil2/distinfo << 'END-of-xevil2/distinfo'
XMD5 (xevilsrc2.02.zip) = e1890f77144367e2e8bbf3609458b784
END-of-xevil2/distinfo
echo c - xevil2/files
mkdir -p xevil2/files > /dev/null 2>&1
echo x - xevil2/files/patch-aa
sed 's/^X//' >xevil2/files/patch-aa << 'END-of-xevil2/files/patch-aa'
X--- config.bak Wed Jan 19 14:19:04 2000
X+++ config.mk  Wed Dec 13 23:02:16 2000
X@@ -34,12 +34,12 @@
X # You can add -DNDEBUG to speed up a release build by removing the ass
ert()
X # calls.  But, on a really obscure Linux machine, this caused Xlib to
blow up
X # internally, so you do so at your own risk.
X-DEBUG_OPT   =   -O #-DNDEBUG
X+DEBUG_OPT   =   -DNDEBUG
X
X LINK_OPT    =
X
X # The string that will be used for making the packaged .tar.Z file.
X-VERSION     =   2.01
X+VERSION     =   2.02
X
X #SRC_DIR and WORK_DIR are only used for `make workdir`
X SRC_DIR       =   /mit/hardts/src/X/xevil1.4.9
X@@ -83,7 +83,9 @@
X #### Attempt to guesss the host architecture using the HOSTYPE and hos
type
X # variables.  Then call self with the architecture name.
X default:
X-  @if [ $${HOSTTYPE-bob} != bob ] ; then \
X+  @if [ $${OPSYS-bob} != bob ]; then \
X+      archit=$$OPSYS ; \
X+  elif [ $${HOSTTYPE-bob} != bob ] ; then \
X       archit=$$HOSTTYPE ; \
X   elif [ $${hosttype-bob} != bob ] ; then \
X       archit=$$hosttype ; \
X@@ -162,7 +164,7 @@
X # XEvil is all screwed up.
X freebsd:
X   @$(MAKE) CC="c++" \
X-CFLAGS="-DUSE_RANDOM -DPROTECTED_IS_PUBLIC -DMSEC_PER_CLOCK=8 -DUNAME_
USR_BIN" \
X+CFLAGS="-DUSE_RANDOM -DUSE_UINT_NET_LENGTH -DUNAME_USR_BIN ${CFLAGS}"
\
X INCL_DIRS="-I/usr/X11R6/include" LIBS_DIRS="-L/usr/X11R6/lib" \
X OBJ_DIR=$(DEPTH)/x11/FREEBSD PCKG_NAME="freebsd" \
X LIBS="-lXpm -lX11 -lm" $(TARGETS)
END-of-xevil2/files/patch-aa
echo x - xevil2/files/patch-ab
sed 's/^X//' >xevil2/files/patch-ab << 'END-of-xevil2/files/patch-ab'
X--- x11/ui.bak Wed Jan 19 12:54:14 2000
X+++ x11/ui.cpp Tue Nov  7 15:49:27 2000
X@@ -1322,7 +1322,7 @@
X      
X       // Get font.  Use user-specified font if given.
X       // regular size font.
X-      char *theFont = fontName ? fontName : DEFAULT_FONT_NAME;
X+      const char *theFont = fontName ? fontName : DEFAULT_FONT_NAME;
X       xvars.font[xvars.dpyMax] =
X         XLoadQueryFont(xvars.dpy[xvars.dpyMax],theFont);
X       if (!xvars.font[xvars.dpyMax]) {
END-of-xevil2/files/patch-ab
echo x - xevil2/files/patch-ac
sed 's/^X//' >xevil2/files/patch-ac << 'END-of-xevil2/files/patch-ac'
X--- cmn/intel.bak  Wed Jan 19 12:54:34 2000
X+++ cmn/intel.cpp  Tue Nov  7 15:45:28 2000
X@@ -1606,7 +1606,7 @@
X Boolean Machine::weapon_current_is_drop_liftable(PhysicalP p) {
X   // This is a HACK, we should really make Lifter override
X   // get_weapon_current(), etc.
X-  char *dummy;
X+  const char *dummy;
X   ClassId classId = p->get_weapon_string(dummy);
X   if (classId == A_DropLiftable) {
X     return True;
END-of-xevil2/files/patch-ac
echo x - xevil2/files/patch-ad
sed 's/^X//' >xevil2/files/patch-ad << 'END-of-xevil2/files/patch-ad'
X--- Makefile.bak   Wed Dec 13 23:08:48 2000
X+++ Makefile   Wed Dec 13 22:53:23 2000
X@@ -63,11 +63,6 @@
X
X # Could also include serverping in the distribution
X $(OBJ_DIR)/xevil$(VERSION).$(PCKG_NAME).tar.Z::
X-  cp readme.txt $(OBJ_DIR)
X-  cp gpl.txt $(OBJ_DIR)
X-  cp -r instructions $(OBJ_DIR)
X-  (cd $(OBJ_DIR); tar cf xevil$(VERSION).$(PCKG_NAME).tar xevil readme
.txt gpl.txt instructions)
X-  (cd $(OBJ_DIR); compress -f xevil$(VERSION).$(PCKG_NAME).tar)
X
X ## Make a distribution file.
X dist:
END-of-xevil2/files/patch-ad
echo x - xevil2/pkg-comment
sed 's/^X//' >xevil2/pkg-comment << 'END-of-xevil2/pkg-comment'
XA fast-action, networked, anti-social, kill-everything game
END-of-xevil2/pkg-comment
echo x - xevil2/pkg-descr
sed 's/^X//' >xevil2/pkg-descr << 'END-of-xevil2/pkg-descr'
XXEvil is a side-view, single or network-multiplayer, fast-action,
Xkill-everything, game for Windows and UNIX.
X
XYou have sinned in life.  Now, you die and go to Hell.  XEvil is the
Xcontest that determines your fate in Hell for all eternity.  At the
Xend of a game, you receive one of many possible rankings.  A poor
Xplayer, for example, may spend the rest of time as "Satan's Earwax
XRemover", while a good one might achieve a prestigious title such as
X"VP of Hell Marketing" or even "Lead Software Engineer of Hell".
X
XThe XEvil 2.X Instruction Manual is located in
X/usr/X11R6/share/doc/xevil/instructions
X
XWWW: http://www.xevil.com
END-of-xevil2/pkg-descr
echo x - xevil2/pkg-plist
sed 's/^X//' >xevil2/pkg-plist << 'END-of-xevil2/pkg-plist'
Xbin/xevil2
Xshare/doc/xevil/instructions/UNIXSetControls.gif
Xshare/doc/xevil/instructions/UNIXShowControls.gif
Xshare/doc/xevil/instructions/UNIXmenu.gif
Xshare/doc/xevil/instructions/instructions.html
Xshare/doc/xevil/instructions/keysdlg.gif
Xshare/doc/xevil/instructions/optionsdlg.gif
Xshare/doc/xevil/readme.txt
X@dirrm share/doc/xevil/instructions
X@dirrm share/doc/xevil
END-of-xevil2/pkg-plist
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?200012132259.eBDMxXD54075>