ports/141891: [patch] games/ioquake3: OPENAL and CURL knobs

Dominic Fandrey kamikaze at bsdforen.de
Mon Jan 4 20:10:03 UTC 2010


The following reply was made to PR ports/141891; it has been noted by GNATS.

From: Dominic Fandrey <kamikaze at bsdforen.de>
To: bug-followup at FreeBSD.org, swell.k at gmail.com
Cc:  
Subject: Re: ports/141891: [patch] games/ioquake3: OPENAL and CURL knobs
Date: Mon, 04 Jan 2010 21:04:28 +0100

 Please use the following patch.
 
 Additionally to the OP there's mumble support and the -devel slave port
 is updated as well.
 
 Regards
 
 
 diff -Nur ports/games/ioquake3.orig/Makefile ports/games/ioquake3/Makefile
 --- ports/games/ioquake3.orig/Makefile	2010-01-04 20:17:47.000000000 +0100
 +++ ports/games/ioquake3/Makefile	2010-01-04 20:58:56.000000000 +0100
 @@ -20,16 +20,20 @@
  .endif
  USE_GMAKE=	yes
  
 -OPTIONS=	CLIENT "Build client" on \
 +OPTIONS+=	CLIENT "Build client" on \
  		GAMELIBS "Build game libraries (when not mandatory)" off \
  		DEDICATED "Build dedicated server" on \
 +		CURL "Enable cURL for http/ftp download" on \
 +		OPENAL "Enable OpenAL audio output" on \
 +		MUMBLE "Enable Mumble support (no dependencies)" on \
  		VORBIS "Enable Ogg Vorbis support" on
  
  MAKE_ARGS+=	DEFAULT_BASEDIR="${Q3DIR}" \
  		DEFAULT_LIBDIR="${LIBDIR}" \
  		HOMEPATH="/.${PORTNAME}" \
 +		VERSION="${DISTVERSION}" \
  		ARCH="${ARCH}"
 -PLIST_SUB=	LIBDIR="${LIBDIR:S/${PREFIX}\///}" \
 +PLIST_SUB+=	LIBDIR="${LIBDIR:S/${PREFIX}\///}" \
  		ARCH="${ARCH}" \
  		BINSUFFIX="${BINSUFFIX}"
  ALL_TARGET=	release
 @@ -45,7 +49,7 @@
  MACHINE_ARCH=	${ARCH}
  .include <bsd.cpu.mk>
  
 -.include <bsd.port.pre.mk>
 +.include <bsd.port.options.mk>
  
  .if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && \
      defined(WITHOUT_SMP)
 @@ -53,8 +57,19 @@
  .endif
  
  .if defined(WITH_CLIENT) || defined(WITH_SMP)
 +# cURL
 +.if defined(WITH_CURL)
 +LIB_DEPENDS+=	curl.5:${PORTSDIR}/ftp/curl
 +#MAKE_ARGS+=	USE_CURL_DLOPEN=0
 +.else
 +MAKE_ARGS+=	USE_CURL=0
 +.endif
  # OpenAL
 +.if defined(WITH_OPENAL)
  LIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
 +.else
 +MAKE_ARGS+=	USE_OPENAL=0
 +.endif
  # SDL
  USE_SDL=	sdl
  # Vorbis
 @@ -62,6 +77,12 @@
  LIB_DEPENDS+=	vorbis.4:${PORTSDIR}/audio/libvorbis
  MAKE_ARGS+=	USE_CODEC_VORBIS=1
  .endif
 +# Mumble
 +.if defined(WITH_MUMBLE)
 +MAKE_ARGS+=	USE_MUMBLE=1
 +.else
 +MAKE_ARGS+=	USE_MUMBLE=0
 +.endif
  .endif
  
  # SMP is only built with CLIENT.
 @@ -119,4 +140,4 @@
  	@${ECHO_CMD}
  
  .include "${.CURDIR}/../quake3-data/Makefile.include"
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 diff -Nur ports/games/ioquake3.orig/files/patch-Makefile ports/games/ioquake3/files/patch-Makefile
 --- ports/games/ioquake3.orig/files/patch-Makefile	2010-01-04 20:17:47.000000000 +0100
 +++ ports/games/ioquake3/files/patch-Makefile	2010-01-04 20:48:42.000000000 +0100
 @@ -1,6 +1,6 @@
  --- Makefile.orig	2009-04-22 20:54:48.000000000 +0200
 -+++ Makefile	2009-12-08 11:38:10.000000000 +0100
 -@@ -521,15 +521,22 @@
 ++++ Makefile	2010-01-04 20:48:02.000000000 +0100
 +@@ -521,15 +521,29 @@
   
   ifeq ($(PLATFORM),freebsd)
   
 @@ -29,10 +29,17 @@
  +   CLIENT_CFLAGS = $(SDL_CFLAGS)
  +   SERVER_CFLAGS = 
  +   HAVE_VM_COMPILED = true
 ++
 ++  ifeq ($(USE_CURL),1)
 ++    BASE_CFLAGS += -DUSE_CURL
 ++    ifeq ($(USE_CURL_DLOPEN),1)
 ++      BASE_CFLAGS += -DUSE_CURL_DLOPEN
 ++    endif
 ++  endif
   
     ifeq ($(USE_OPENAL),1)
       BASE_CFLAGS += -DUSE_OPENAL
 -@@ -542,24 +549,6 @@
 +@@ -542,24 +556,6 @@
       BASE_CFLAGS += -DUSE_CODEC_VORBIS
     endif
   
 @@ -57,10 +64,20 @@
     SHLIBEXT=so
     SHLIBCFLAGS=-fPIC
     SHLIBLDFLAGS=-shared $(LDFLAGS)
 -@@ -582,6 +571,27 @@
 +@@ -582,6 +578,37 @@
       CLIENT_LIBS += -lvorbisfile -lvorbis -logg
     endif
   
 ++  ifeq ($(USE_CURL),1)
 ++    ifneq ($(USE_CURL_DLOPEN),1)
 ++      CLIENT_LIBS += -lcurl
 ++    endif
 ++  endif
 ++
 ++  ifeq ($(USE_MUMBLE),1)
 ++    CLIENT_LIBS += -lrt
 ++  endif
 ++
  +  ifeq ($(ARCH),i386)
  +    ifeq ($(CROSS_COMPILING),1)
  +      BASE_CFLAGS += -m32
 @@ -85,7 +102,7 @@
   else # ifeq freebsd
   
   #############################################################################
 -@@ -1442,6 +1452,9 @@
 +@@ -1442,6 +1469,9 @@
     ifeq ($(ARCH),x86_64)
       Q3OBJ += $(B)/client/vm_x86_64.o $(B)/client/vm_x86_64_assembler.o
     endif
 @@ -95,7 +112,7 @@
     ifeq ($(ARCH),ppc)
       Q3OBJ += $(B)/client/vm_powerpc.o $(B)/client/vm_powerpc_asm.o
     endif
 -@@ -1591,6 +1604,9 @@
 +@@ -1591,6 +1621,9 @@
     ifeq ($(ARCH),x86_64)
       Q3DOBJ += $(B)/ded/vm_x86_64.o $(B)/ded/vm_x86_64_assembler.o
     endif
 diff -Nur ports/games/ioquake3-devel.orig/Makefile ports/games/ioquake3-devel/Makefile
 --- ports/games/ioquake3-devel.orig/Makefile	2010-01-04 20:17:56.000000000 +0100
 +++ ports/games/ioquake3-devel/Makefile	2010-01-04 20:50:40.000000000 +0100
 @@ -18,7 +18,7 @@
  PLIST=		${.CURDIR}/../ioquake3/pkg-plist
  PATCHDIR=	${WRKDIR}/freebsd-patchset/
  
 -SVNREVISION=	1754
 +SVNREVISION=	1765
  BINSUFFIX=	-devel
  
  .include "${.CURDIR}/../ioquake3/Makefile"
 diff -Nur ports/games/ioquake3-devel.orig/distinfo ports/games/ioquake3-devel/distinfo
 --- ports/games/ioquake3-devel.orig/distinfo	2010-01-04 20:17:56.000000000 +0100
 +++ ports/games/ioquake3-devel/distinfo	2010-01-04 20:51:36.000000000 +0100
 @@ -1,3 +1,3 @@
 -MD5 (ioquake3-devel-1.36_SVN1754.zip) = 163fe62d8540244a9eda8af66ae62fb2
 -SHA256 (ioquake3-devel-1.36_SVN1754.zip) = f743e4454bb445fd58188107ee0c36eb4ee3be0f9dce9667bec7516bec59136f
 -SIZE (ioquake3-devel-1.36_SVN1754.zip) = 5017181
 +MD5 (ioquake3-devel-1.36_SVN1765.zip) = 65de2dbbf10fe429af51cf49e4d4fb9b
 +SHA256 (ioquake3-devel-1.36_SVN1765.zip) = 91baec8f7729f2689ab4481b33813f8cb8cdd1ee578ef146d5cb4138ec09f4f1
 +SIZE (ioquake3-devel-1.36_SVN1765.zip) = 4928145
 



More information about the freebsd-ports-bugs mailing list