diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2008-01-29 04:10:56 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2008-01-29 04:10:56 +0000 |
commit | 12dfc40beed1c14972667e1ac3751b1ddb386cc1 (patch) | |
tree | d79b8a9c695d3cb03a98c951dd346aef8c2a6bf6 /games/worldofpadman | |
parent | 60068b4aec7ed157c11a95f93e6187167ba5c318 (diff) | |
download | ports-12dfc40beed1c14972667e1ac3751b1ddb386cc1.tar.gz ports-12dfc40beed1c14972667e1ac3751b1ddb386cc1.zip |
Notes
Diffstat (limited to 'games/worldofpadman')
-rw-r--r-- | games/worldofpadman/Makefile | 9 | ||||
-rw-r--r-- | games/worldofpadman/files/patch-Makefile | 52 |
2 files changed, 45 insertions, 16 deletions
diff --git a/games/worldofpadman/Makefile b/games/worldofpadman/Makefile index e18cd74f9cc3..99ff2060b94d 100644 --- a/games/worldofpadman/Makefile +++ b/games/worldofpadman/Makefile @@ -7,7 +7,7 @@ PORTNAME= worldofpadman PORTVERSION= 1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://thilo.kickchat.com/download/:full \ http://btc3x6.che.uni-bayreuth.de/~tl/wop_final/:full \ @@ -158,6 +158,13 @@ post-extract: .endfor @cd ${WRKDIR} && ${TAR} xf readme.tar +.if defined(WITH_CURL_DLOPEN) +post-patch: +# Fix wrong library version (use general case as only one is installed). + @${REINPLACE_CMD} -e 's|libcurl\.so\.[[:digit:]]|libcurl.so|' \ + ${WRKSRC}/code/client/cl_curl.h +.endif + .if defined(WITH_GAMELIBS) || !defined(HAVE_VM_COMPILED) post-build: @cd ${WRKSRC}/build/release && ${MV} baseq3 wop diff --git a/games/worldofpadman/files/patch-Makefile b/games/worldofpadman/files/patch-Makefile index e8390d6b35de..13759574ae15 100644 --- a/games/worldofpadman/files/patch-Makefile +++ b/games/worldofpadman/files/patch-Makefile @@ -1,5 +1,5 @@ --- Makefile.orig Tue Apr 17 17:17:01 2007 -+++ Makefile Fri Jan 11 16:55:57 2008 ++++ Makefile Tue Jan 29 02:00:59 2008 @@ -27,11 +27,20 @@ endif endif @@ -138,7 +138,23 @@ ifeq ($(USE_OPENAL),1) BASE_CFLAGS += -DUSE_OPENAL=1 -@@ -553,47 +520,61 @@ +@@ -545,6 +512,15 @@ + endif + endif + ++ ifeq ($(USE_CURL),1) ++ BASE_CFLAGS += -DUSE_CURL=1 ++ ifneq ($(USE_CURL_DLOPEN),1) ++ CLIENT_LDFLAGS += -lcurl ++ else ++ BASE_CFLAGS += -DUSE_CURL_DLOPEN=1 ++ endif ++ endif ++ + ifeq ($(USE_CODEC_VORBIS),1) + BASE_CFLAGS += -DUSE_CODEC_VORBIS=1 + endif +@@ -553,47 +529,67 @@ BASE_CFLAGS += -DUSE_CODEC_MP3=1 endif @@ -173,7 +189,7 @@ + + ifeq ($(USE_SDL_VIDEO),1) + BASE_CFLAGS += -DUSE_SDL_VIDEO=1 - endif ++ endif + + ifeq ($(USE_OPTIMIZED_CFLAGS),1) + RELEASE_CFLAGS+=-O3 -ffast-math -funroll-loops -fomit-frame-pointer \ @@ -182,7 +198,7 @@ + RELEASE_CFLAGS+=-falign-loops=2 -falign-jumps=2 -falign-functions=2 \ + -fstrength-reduce + endif -+ endif + endif + + ifneq ($(HAVE_VM_COMPILED),true) + BASE_CFLAGS += -DNO_VM_COMPILED @@ -220,10 +236,16 @@ ifneq ($(USE_OPENAL_DLOPEN),1) - CLIENT_LDFLAGS += $(THREAD_LDFLAGS) -lopenal + CLIENT_LDFLAGS += -lopenal ++ endif ++ endif ++ ++ ifeq ($(USE_CURL),1) ++ ifneq ($(USE_CURL_DLOPEN),1) ++ CLIENT_LDFLAGS += -lcurl endif endif -@@ -759,24 +740,25 @@ +@@ -759,24 +755,25 @@ TARGETS = ifneq ($(BUILD_SERVER),0) @@ -260,7 +282,7 @@ endif ifneq ($(BUILD_GAME_QVM),0) -@@ -838,11 +820,11 @@ +@@ -838,11 +835,11 @@ $(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEBUG_CFLAGS) $(DEPEND_CFLAGS)" build_release: B=$(BR) @@ -274,7 +296,7 @@ targets: $(TARGETS) -@@ -1056,13 +1038,10 @@ +@@ -1056,13 +1053,10 @@ ifeq ($(ARCH),i386) Q3OBJ += $(B)/client/vm_x86.o endif @@ -290,7 +312,7 @@ Q3OBJ += $(B)/client/$(VM_PPC).o endif endif -@@ -1109,10 +1088,10 @@ +@@ -1109,10 +1103,10 @@ $(B)/client/sdl_glimp_smp.o endif @@ -303,7 +325,7 @@ $(CC) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) $(CLIENT_LDFLAGS) \ $(THREAD_LDFLAGS) $(LDFLAGS) $(LIBSDLMAIN) -@@ -1415,15 +1394,21 @@ +@@ -1415,15 +1409,21 @@ ifeq ($(ARCH),x86) Q3DOBJ += $(B)/ded/vm_x86.o endif @@ -326,7 +348,7 @@ $(CC) -o $@ $(Q3DOBJ) $(LDFLAGS) $(B)/ded/sv_bot.o : $(SDIR)/sv_bot.c; $(DO_DED_CC) -@@ -1540,7 +1525,7 @@ +@@ -1540,7 +1540,7 @@ Q3CGOBJ = $(Q3CGOBJ_) $(B)/baseq3/cgame/cg_syscalls.o Q3CGVMOBJ = $(Q3CGOBJ_:%.o=%.asm) $(B)/baseq3/game/bg_lib.asm @@ -335,7 +357,7 @@ $(CC) $(SHLIBLDFLAGS) -o $@ $(Q3CGOBJ) $(B)/baseq3/vm/cgame.qvm: $(Q3CGVMOBJ) $(CGDIR)/cg_syscalls.asm -@@ -1581,7 +1566,7 @@ +@@ -1581,7 +1581,7 @@ MPCGOBJ = $(MPCGOBJ_) $(B)/missionpack/cgame/cg_syscalls.o MPCGVMOBJ = $(MPCGOBJ_:%.o=%.asm) $(B)/missionpack/game/bg_lib.asm @@ -344,7 +366,7 @@ $(CC) $(SHLIBLDFLAGS) -o $@ $(MPCGOBJ) $(B)/missionpack/vm/cgame.qvm: $(MPCGVMOBJ) $(CGDIR)/cg_syscalls.asm -@@ -1631,7 +1616,7 @@ +@@ -1631,7 +1631,7 @@ Q3GOBJ = $(Q3GOBJ_) $(B)/baseq3/game/g_syscalls.o Q3GVMOBJ = $(Q3GOBJ_:%.o=%.asm) $(B)/baseq3/game/bg_lib.asm @@ -353,7 +375,7 @@ $(CC) $(SHLIBLDFLAGS) -o $@ $(Q3GOBJ) $(B)/baseq3/vm/qagame.qvm: $(Q3GVMOBJ) $(GDIR)/g_syscalls.asm -@@ -1679,7 +1664,7 @@ +@@ -1679,7 +1679,7 @@ MPGOBJ = $(MPGOBJ_) $(B)/missionpack/game/g_syscalls.o MPGVMOBJ = $(MPGOBJ_:%.o=%.asm) $(B)/missionpack/game/bg_lib.asm @@ -362,7 +384,7 @@ $(CC) $(SHLIBLDFLAGS) -o $@ $(MPGOBJ) $(B)/missionpack/vm/qagame.qvm: $(MPGVMOBJ) $(GDIR)/g_syscalls.asm -@@ -1739,7 +1724,7 @@ +@@ -1739,7 +1739,7 @@ Q3UIOBJ = $(Q3UIOBJ_) $(B)/missionpack/ui/ui_syscalls.o Q3UIVMOBJ = $(Q3UIOBJ_:%.o=%.asm) $(B)/baseq3/game/bg_lib.asm @@ -371,7 +393,7 @@ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3UIOBJ) $(B)/baseq3/vm/ui.qvm: $(Q3UIVMOBJ) $(UIDIR)/ui_syscalls.asm -@@ -1764,7 +1749,7 @@ +@@ -1764,7 +1764,7 @@ MPUIOBJ = $(MPUIOBJ_) $(B)/missionpack/ui/ui_syscalls.o MPUIVMOBJ = $(MPUIOBJ_:%.o=%.asm) $(B)/baseq3/game/bg_lib.asm |