Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2005 16:50:21 GMT
From:      "Alejandro Pulver" <alejandro@varnet.biz>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/85325: [NEW PORT] games/darkplaces - Quake engine modification
Message-ID:  <200508271650.j7RGoLqJ088792@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/85325; it has been noted by GNATS.

From: "Alejandro Pulver" <alejandro@varnet.biz>
To: "FreeBSD gnats submit" <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: ports/85325: [NEW PORT] games/darkplaces - Quake engine modification
Date: Sat, 27 Aug 2005 13:50:21 -0300

 >Submitter-Id:	current-users 
 >Originator:	Alejandro Pulver 
 >Organization:	 
 >Confidential:	no 
 >Synopsis:	Re: ports/85325: [NEW PORT] games/darkplaces - Quake engine modification 
 >Severity:	non-critical 
 >Priority:	low 
 >Category:	ports 
 >Class:		change-request 
 >Release:	FreeBSD 5.4-RELEASE i386 
 >Environment:
 
 
 
 
 
 >Description:
 
 
 This patch fixes some issues in the previous shar.
 
 Changes:
 * Use pkg-plist instead of PLIST variables.
 * Make symbolic link "darkplaces" in "${PREFIX}/bin".
 * Create data directory (${DATADIR}) and when removing the port notify the user to remove the data directory.
 
 
 >How-To-Repeat:
 
 
 
 
 
 >Fix:
 
 
 --- darkplaces.diff begins here ---
 diff -urN pkgd/sent/darkplaces/Makefile darkplaces/Makefile
 --- pkgd/sent/darkplaces/Makefile	Sat Aug 27 13:45:10 2005
 +++ darkplaces/Makefile	Sat Aug 27 13:44:10 2005
 @@ -28,15 +28,16 @@
  		SERVER "Build dedicated server" on \
  		SDL_CLIENT "Build SDL client" on
  
 -PLIST_FILES=	%%CLIENT%%bin/${PORTNAME}-glx \
 -		%%SDL_CLIENT%%bin/${PORTNAME}-sdl \
 -		%%SERVER%%bin/${PORTNAME}-dedicated
 -
  SUB_FILES=	pkg-message
  PKGMESSAGE=	${WRKDIR}/pkg-message
  
  .include <bsd.port.pre.mk>
  
 +.if !defined(WITH_CLIENT) && !defined(WITH_SDL_CLIENT) && \
 +    !defined(WITH_DEDICATED)
 +IGNORE=		You must choose at least one option of CLIENT, SDL_CLIENT and DEDICATED
 +.endif
 +
  .if defined(WITH_CLIENT) || defined(WITH_SDL_CLIENT)
  # Loads libraries on run-time, thus RUN_DEPENDS
  RUN_DEPENDS=	${LOCALBASE}/lib/libvorbis.so:${PORTSDIR}/audio/libvorbis \
 @@ -86,9 +87,12 @@
  .endif
  
  do-install:
 +	@${MKDIR} ${DATADIR}
  .for f in ${PORTNAME}-glx ${PORTNAME}-sdl ${PORTNAME}-dedicated
  	@${TEST} -f ${WRKSRC}/${f} && \
  		${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
 +	@${TEST} -L ${PREFIX}/bin/${PORTNAME} || \
 +		${LN} -s ${PREFIX}/bin/${f} ${PREFIX}/bin/${PORTNAME}
  .endfor
  
  post-install:
 diff -urN pkgd/sent/darkplaces/pkg-plist darkplaces/pkg-plist
 --- pkgd/sent/darkplaces/pkg-plist	Wed Dec 31 21:00:00 1969
 +++ darkplaces/pkg-plist	Sat Aug 27 13:25:57 2005
 @@ -0,0 +1,5 @@
 +bin/darkplaces
 +%%CLIENT%%bin/darkplaces-glx
 +%%SDL_CLIENT%%bin/darkplaces-sdl
 +%%SERVER%%bin/darkplaces-dedicated
 +@unexec rmdir %D/%%DATADIR%% >/dev/null 2>&1 || echo "If you are permanently removing this port, you should remove the data files and mods left in %D/%%DATADIR%%." | fmt
 --- darkplaces.diff ends here ---
 
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508271650.j7RGoLqJ088792>