ports/62895: update port games/doomlegacy to v1.41

alexander arundel at gmx.net
Mon Feb 16 02:20:04 UTC 2004


>Number:         62895
>Category:       ports
>Synopsis:       update port games/doomlegacy to v1.41
>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:   Sun Feb 15 18:20:03 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     No Name
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: FreeBSD skatecity 4.9-STABLE FreeBSD 4.9-STABLE #0: Sun Feb 8 17:15:36 CET 2004 arundel at skatecity:/usr/obj/usr/src/sys/ARUNDEL i386

>Description:

>How-To-Repeat:

>Fix:

--- output begins here ---
diff -urP /usr/ports/games/doomlegacy/Makefile /usr/ports/custom/doomlegacy/Makefile
--- /usr/ports/games/doomlegacy/Makefile	Mon Feb 16 03:06:17 2004
+++ /usr/ports/custom/doomlegacy/Makefile	Mon Feb 16 02:57:52 2004
@@ -2,62 +2,76 @@
 # Date Created:				10 April 2002
 # Whom:				Alexander G. Chetirbock <bock at bock.nnov.ru>
 #
-# $FreeBSD: ports/games/doomlegacy/Makefile,v 1.5 2004/02/04 05:20:20 marcus Exp $
+# $FreeBSD: ports/games/doomlegacy/Makefile,v 1.2 2003/02/21 12:05:44 knu Exp $
 
 PORTNAME=	doomlegacy
-PORTVERSION=	1.32b4
-PORTREVISION=	1
+PORTVERSION=	141
 CATEGORIES=	games
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR?=	${PORTNAME}
-DISTNAME=	legacy_${FILEVERSION}_src
+MASTER_SITE_SUBDIR=	${PORTNAME}
+DISTNAME=	legacy_${PORTVERSION}_src
 DISTFILES=	${DIST} ${WADFILE}
+DIST=           ${DISTNAME}${EXTRACT_SUFX}
+WADFILE=        legacy_dat.zip
 EXTRACT_ONLY=	${DIST}
 
 MAINTAINER=	bock at bock.nnov.ru
 COMMENT=	DooM Legacy: popular DooM clone!
 
-BUILD_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip \
+BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip \
 		nasm:${PORTSDIR}/devel/nasm
 
-WADVER=		132b4
-WADFILE=	doom3_wad_${WADVER}.zip
-FILEVERSION=	132beta4
-DIST=		${DISTNAME}${EXTRACT_SUFX}
+LIB_DEPENDS=	SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
 
 USE_XLIB=	yes
 USE_GMAKE=	yes
-USE_MESA=	yes
+USE_GL=		yes
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
-MAKEFILE=	makefile
-MAKE_ENV+=	FREEBSD=1 PTHREAD_LIBS="${PTHREAD_LIBS}" \
-		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
+WRKSRC=		${WRKDIR}/legacy_${PORTVERSION}_src
+MAKE_ARGS=	-f makefile FREEBSD=1 FBSD_SDL=1
 
 # I have no ideas about build status on other platforms
 ONLY_FOR_ARCHS=		i386
 
 TARGET_DIR=	${PREFIX}/${PORTNAME}
 
-DATA_FILES=	${WRKDIR}/bin/doom3.wad
+DATA_FILES=	${WRKDIR}/bin/legacy.dat
 PROG_FILES=	${WRKDIR}/bin/llsndserv ${WRKDIR}/bin/r_opengl.so
-SGID_FILES=	${WRKDIR}/bin/llxdoom
+SGID_FILES=	${WRKDIR}/bin/lsdldoom
 SGID_ARGS=	-c -s -o root -g kmem -m 2555
+DOC_FILES=	*.html *.txt *.cfg README_SDL copying
 
 post-extract:
-	@cd ${WRKDIR} && ${MKDIR} bin && \
-	unzip -q ${_DISTDIR}/${WADFILE} -d ${WRKDIR}/bin
+	@${MKDIR} ${WRKDIR}/bin
+	unzip -q ${DISTDIR}/${WADFILE} -d ${WRKDIR}/bin
 
+post-patch:
+	@${SED} -e "s|%%INSTALLDIR%%|${PREFIX}/${PORTNAME}|" ${SCRIPTDIR}/wrapper.sh > \
+		${WRKDIR}/bin/wrapper.sh
+
+do-build:
+	cd ${WRKSRC}/linux_x/sndserv && ${GMAKE} clean
+	cd ${WRKSRC}/linux_x/sndserv && ${GMAKE} clean
+	cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS}
+	@${LN} -s ${WRKSRC}/linux_x/sndserv/linux/llsndserv ${WRKDIR}/bin
+	
 do-install:
-	${LN} -sf ${WRKSRC}/linux_x/sndserv/linux/llsndserv ${WRKDIR}/bin
-	${INSTALL} -d ${TARGET_DIR} && \
-	${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR} && \
-	${INSTALL} ${SGID_ARGS} ${SGID_FILES} ${TARGET_DIR} && \
-	${INSTALL_DATA} ${DATA_FILES} ${TARGET_DIR} && \
-	${INSTALL} -d ${DOCSDIR} && \
-	${INSTALL_DATA} ${WRKSRC}/_doc/* ${DOCSDIR}
+	${INSTALL} -d ${TARGET_DIR}
+	${INSTALL_PROGRAM} ${PROG_FILES} ${TARGET_DIR}
+	${INSTALL} ${SGID_ARGS} ${SGID_FILES} ${TARGET_DIR}
+	${INSTALL_DATA} ${DATA_FILES} ${TARGET_DIR}
+	${INSTALL_SCRIPT} ${WRKDIR}/bin/wrapper.sh ${TARGET_DIR}/legacy.sh
+	@${LN} -s ${TARGET_DIR}/legacy.sh ${PREFIX}/bin/legacy
 
 post-install:
-	@${CAT} ${PKGMESSAGE}
+.ifndef(NOPORTDOCS)
+.for file in ${DOC_FILES}
+	${INSTALL} -d ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/_doc/${file} ${DOCSDIR}
+.endfor
+
+	@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${PKGMESSAGE}
+
+.endif
 
 .include <bsd.port.mk>
diff -urP /usr/ports/games/doomlegacy/distinfo /usr/ports/custom/doomlegacy/distinfo
--- /usr/ports/games/doomlegacy/distinfo	Mon Feb 16 03:06:17 2004
+++ /usr/ports/custom/doomlegacy/distinfo	Mon Feb 16 02:25:25 2004
@@ -1,2 +1,2 @@
-MD5 (legacy_132beta4_src.tar.gz) = 27b1564bf05faf962501a658b4167758
-MD5 (doom3_wad_132b4.zip) = 1bcc230b9ef9520cf81bc41f0aff48ce
+MD5 (legacy_141_src.tar.gz) = 4e64cb19e0e57055e664bdf09bce14d2
+MD5 (legacy_dat.zip) = 8182e1aebac3696ddc7f9e0663740d9a
Only in /usr/ports/games/doomlegacy/: files
diff -urP /usr/ports/games/doomlegacy/pkg-descr /usr/ports/custom/doomlegacy/pkg-descr
--- /usr/ports/games/doomlegacy/pkg-descr	Mon Feb 16 03:06:17 2004
+++ /usr/ports/custom/doomlegacy/pkg-descr	Mon Feb 16 03:01:05 2004
@@ -1,4 +1,4 @@
-Legacy Doom is DooM port. Some of supported features:
+DooM Legacy is a DooM port. Some of the supported features are:
     *  VIDEO OPTIONS MENU
     *  TRANSLUCENCY ON SPRITES AND WALLS
     *  SETUP CONTROLS MENU
diff -urP /usr/ports/games/doomlegacy/pkg-message /usr/ports/custom/doomlegacy/pkg-message
--- /usr/ports/games/doomlegacy/pkg-message	Mon Feb 16 03:06:17 2004
+++ /usr/ports/custom/doomlegacy/pkg-message	Mon Feb 16 02:53:33 2004
@@ -1,12 +1,14 @@
+
 ************************************************************
 Please read docs in
 
-     $(PREFIX)/share/doc/doomlegacy
+     %%PREFIX%%/share/doc/doomlegacy
 
 before you run the application.
 ************************************************************
-Copy doom2.wad or other Id iwad into
+Copy DOOM.WAD or other id iwads into
 
-     $(PREFIX)/doomlegacy
+     %%PREFIX%%/doomlegacy
 
 ************************************************************
+
diff -urP /usr/ports/games/doomlegacy/pkg-plist /usr/ports/custom/doomlegacy/pkg-plist
--- /usr/ports/games/doomlegacy/pkg-plist	Mon Feb 16 03:06:17 2004
+++ /usr/ports/custom/doomlegacy/pkg-plist	Mon Feb 16 01:44:42 2004
@@ -1,21 +1,28 @@
-doomlegacy/doom3.wad
+bin/legacy
+doomlegacy/legacy.dat
+doomlegacy/legacy.sh
 doomlegacy/llsndserv
-doomlegacy/llxdoom
+doomlegacy/lsdldoom
 doomlegacy/r_opengl.so
-share/doc/doomlegacy/Console.txt
-share/doc/doomlegacy/Doublescan.txt
-share/doc/doomlegacy/Legacy.txt
-share/doc/doomlegacy/README_SDL
-share/doc/doomlegacy/Readme.OS2
-share/doc/doomlegacy/Whatsnew.txt
-share/doc/doomlegacy/copying
-share/doc/doomlegacy/doomatic.txt
-share/doc/doomlegacy/doomlic.txt
-share/doc/doomlegacy/editing.txt
-share/doc/doomlegacy/faq.txt
-share/doc/doomlegacy/rules.txt
-share/doc/doomlegacy/skinspec.txt
-share/doc/doomlegacy/sound.cfg
-share/doc/doomlegacy/source.txt
+%%PORTDOCS%%%%DOCSDIR%%/3dfloors.html
+%%PORTDOCS%%%%DOCSDIR%%/Doublescan.txt
+%%PORTDOCS%%%%DOCSDIR%%/README_SDL
+%%PORTDOCS%%%%DOCSDIR%%/boomref.html
+%%PORTDOCS%%%%DOCSDIR%%/console.html
+%%PORTDOCS%%%%DOCSDIR%%/copying
+%%PORTDOCS%%%%DOCSDIR%%/doomatic.txt
+%%PORTDOCS%%%%DOCSDIR%%/doomlic.txt
+%%PORTDOCS%%%%DOCSDIR%%/editing.html
+%%PORTDOCS%%%%DOCSDIR%%/editspecs.html
+%%PORTDOCS%%%%DOCSDIR%%/faq.html
+%%PORTDOCS%%%%DOCSDIR%%/fsbasic.html
+%%PORTDOCS%%%%DOCSDIR%%/fsfuncs.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/legacy.html
+%%PORTDOCS%%%%DOCSDIR%%/rules.txt
+%%PORTDOCS%%%%DOCSDIR%%/skinspec.html
+%%PORTDOCS%%%%DOCSDIR%%/sound.cfg
+%%PORTDOCS%%%%DOCSDIR%%/source.html
+%%PORTDOCS%%%%DOCSDIR%%/whatsnew.html
 @dirrm share/doc/doomlegacy
 @dirrm doomlegacy
diff -urP /usr/ports/games/doomlegacy/scripts/wrapper.sh /usr/ports/custom/doomlegacy/scripts/wrapper.sh
--- /usr/ports/games/doomlegacy/scripts/wrapper.sh	Thu Jan  1 01:00:00 1970
+++ /usr/ports/custom/doomlegacy/scripts/wrapper.sh	Mon Feb 16 01:35:16 2004
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Needed to make symlinks/shortcuts work.
+# Wrap lsdldoom binary
+cd %%INSTALLDIR%%
+./lsdldoom -nocheckwadversion $*
+exit $?
--- output ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list