summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/mvdsv/Makefile5
-rw-r--r--games/mvdsv/files/patch-Makefile.BSD13
2 files changed, 17 insertions, 1 deletions
diff --git a/games/mvdsv/Makefile b/games/mvdsv/Makefile
index 31989c80881c..56ee6ad49e78 100644
--- a/games/mvdsv/Makefile
+++ b/games/mvdsv/Makefile
@@ -17,9 +17,9 @@ USE_ZIP= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= ${OPSYS} ${ARCH:C/.*(64)/\1/}
+MAKE_ARGS= CC="${CC}"
ALL_TARGET= ${PORTNAME}
WRKSRC= ${WRKDIR}/mvdsv
-MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/${PORTNAME}
@@ -45,6 +45,9 @@ MAKE_ARGS+= -DNOKQUEUE
MAKE_ARGS+= -DWITHOUT_X86_ASM
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's,^inline ,,' ${WRKSRC}/source/sv_sys_unix.c
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
diff --git a/games/mvdsv/files/patch-Makefile.BSD b/games/mvdsv/files/patch-Makefile.BSD
index 79e0ae17189f..78a3039b17ff 100644
--- a/games/mvdsv/files/patch-Makefile.BSD
+++ b/games/mvdsv/files/patch-Makefile.BSD
@@ -18,3 +18,16 @@
QWDTOOLS_ASM_OBJS = \
${SV_DIR}/bothtoolsa.o
.endif
+@@ -129,10 +129,10 @@
+ #############################################################################
+
+ .c.o:
+- ${CC} ${DO_CFLAGS} -c $< -o $*.o
++ ${CC} ${DO_CFLAGS} -c $< -o $@
+
+ .s.o:
+- ${CC} ${DO_CFLAGS} -DELF -x assembler-with-cpp -c $< -o $*.o
++ ${CC} ${DO_CFLAGS} -DELF -x assembler-with-cpp -c $< -o $@
+
+ all: mvdsv qwdtools
+ ${STRIP} ${STRIP_FLAGS} mvdsv qwdtools