Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jan 2016 10:05:35 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406840 - in head/games: mvdsv mvdsv/files qwdtools
Message-ID:  <201601211005.u0LA5ZKb063428@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Thu Jan 21 10:05:35 2016
New Revision: 406840
URL: https://svnweb.freebsd.org/changeset/ports/406840

Log:
  - Update `games/mvdsv' port to version 0.30
  - Do not set DISTNAME, let the framework pick it for us
  - Stop "configuring" the build, the most substantial part of which was to
    determine system endianness (by compiling and running simple program);
    this is not just bogus, but does not work with anticipated cross-builds
  - Unbreak the build of `games/qwdtools' slave port

Added:
  head/games/mvdsv/files/patch-build_make_Makefile.BSD
     - copied, changed from r406839, head/games/mvdsv/files/patch-Makefile.BSD
  head/games/mvdsv/files/patch-src_bothdefs.h   (contents, props changed)
  head/games/mvdsv/files/patch-tools_qwdtools_source_Makefile.BSD   (contents, props changed)
Deleted:
  head/games/mvdsv/files/patch-Makefile.BSD
Modified:
  head/games/mvdsv/Makefile
  head/games/mvdsv/distinfo
  head/games/qwdtools/Makefile

Modified: head/games/mvdsv/Makefile
==============================================================================
--- head/games/mvdsv/Makefile	Thu Jan 21 09:32:22 2016	(r406839)
+++ head/games/mvdsv/Makefile	Thu Jan 21 10:05:35 2016	(r406840)
@@ -2,11 +2,10 @@
 # $FreeBSD$
 
 PORTNAME?=	mvdsv
-PORTVERSION=	0.29
+PORTVERSION=	0.30
 DISTVERSIONPREFIX=	v
 PORTEPOCH=	2
 CATEGORIES?=	games
-DISTNAME=	mvdsv_${PORTVERSION}-sources
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT?=	Enhanced QuakeWorld server with multi-view demos capability
@@ -16,9 +15,9 @@ LICENSE=	GPLv2
 USE_GITHUB=	yes
 GH_ACCOUNT=	deurk
 
-HAS_CONFIGURE=	yes
-CONFIGURE_ARGS=	${OPSYS} ${ARCH:C/.*(64)/\1/}
-ALL_TARGET=	${PORTNAME}
+BUILD_WRKSRC?=	${WRKSRC}/build/make
+MAKEFILE=	Makefile.BSD
+MAKE_ARGS=	UNAME=${OPSYS}
 
 PLIST_FILES=	bin/${PORTNAME}
 
@@ -38,10 +37,11 @@ KQUEUE_MAKE_ARGS_OFF=	-DNOKQUEUE
 ASM_MAKE_ARGS_OFF=	-DWITHOUT_X86_ASM
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,gcc,${CC},' ${WRKSRC}/configure
-	@${REINPLACE_CMD} -e 's,^inline ,,' ${WRKSRC}/source/sv_sys_unix.c
+	@${REINPLACE_CMD} -e 's,^inline ,,' ${WRKSRC}/src/sv_sys_unix.c
+	@${REINPLACE_CMD} -e '/#include/s,/source,/src,' \
+		${WRKSRC}/tools/qwdtools/source/defs.h
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>

Modified: head/games/mvdsv/distinfo
==============================================================================
--- head/games/mvdsv/distinfo	Thu Jan 21 09:32:22 2016	(r406839)
+++ head/games/mvdsv/distinfo	Thu Jan 21 10:05:35 2016	(r406840)
@@ -1,2 +1,2 @@
-SHA256 (mvdsv_0.29-sources_GH0.tar.gz) = 7d7d73da029315b0ab3761b9dcbf97eefb7640d0e3868fbe4763fc20550b5f12
-SIZE (mvdsv_0.29-sources_GH0.tar.gz) = 696126
+SHA256 (deurk-mvdsv-v0.30_GH0.tar.gz) = 6ebcca9b9807f72eda090ee618587e4b7b6d0f51447f59aec86eae4d4e218486
+SIZE (deurk-mvdsv-v0.30_GH0.tar.gz) = 664943

Copied and modified: head/games/mvdsv/files/patch-build_make_Makefile.BSD (from r406839, head/games/mvdsv/files/patch-Makefile.BSD)
==============================================================================
--- head/games/mvdsv/files/patch-Makefile.BSD	Thu Jan 21 09:32:22 2016	(r406839, copy source)
+++ head/games/mvdsv/files/patch-build_make_Makefile.BSD	Thu Jan 21 10:05:35 2016	(r406840)
@@ -1,6 +1,15 @@
---- ./Makefile.BSD.orig	2009-09-24 22:16:17.000000000 +0200
-+++ ./Makefile.BSD	2013-05-05 23:13:58.797891197 +0200
-@@ -97,7 +97,7 @@
+--- build/make/Makefile.BSD.orig	2011-10-06 07:24:17 UTC
++++ build/make/Makefile.BSD
+@@ -17,7 +17,7 @@ SV_DIR = ../../src
+ # for gcc its like: make mvdsv FORCE32BITFLAGS=-m32
+ # configure script add FORCE32BITFLAGS=-m32
+ 
+-DO_CFLAGS		=	${CFLAGS} -Wall -pipe -pthread -funsigned-char -DUSE_PR2 -D${BYTE_ORDER}Q__ ${FORCE32BITFLAGS}
++DO_CFLAGS		=	${CFLAGS} -Wall -pipe -pthread -funsigned-char -DUSE_PR2 ${FORCE32BITFLAGS}
+ 
+ .if !defined(NOKQUEUE) && (${UNAME} == "FreeBSD" || ${UNAME} == "DragonFly")
+ DO_CFLAGS		+=	-DKQUEUE
+@@ -94,7 +94,7 @@ SV_OBJS = \
  		${SV_DIR}/pcre/get.o \
  		${SV_DIR}/pcre/pcre.o
  
@@ -9,16 +18,7 @@
  SV_ASM_OBJS = \
  		${SV_DIR}/bothtoolsa.o \
  		${SV_DIR}/math.o
-@@ -119,7 +119,7 @@
- 		${QWDTOOLS_DIR}/sync.o \
- 		${QWDTOOLS_DIR}/tools.o
- 
--.if ${USE_ASM} == ${ASM}
-+.if defined(ASM) && ${USE_ASM} == ${ASM}
- QWDTOOLS_ASM_OBJS = \
- 		${SV_DIR}/bothtoolsa.o
- .endif
-@@ -129,10 +129,10 @@
+@@ -105,10 +105,10 @@ SV_ASM_OBJS = \
  #############################################################################
  
  .c.o:
@@ -29,5 +29,5 @@
 -		${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
+ all:	mvdsv
+ 		${STRIP} ${STRIP_FLAGS} mvdsv

Added: head/games/mvdsv/files/patch-src_bothdefs.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mvdsv/files/patch-src_bothdefs.h	Thu Jan 21 10:05:35 2016	(r406840)
@@ -0,0 +1,27 @@
+--- src/bothdefs.h.orig	2011-10-06 07:24:17 UTC
++++ src/bothdefs.h
+@@ -174,21 +174,21 @@ float	FloatSwap (float f);
+ }  /* extern "C" */
+ #endif
+ 
+-#ifdef __BIG_ENDIAN__Q__
++#if _BYTE_ORDER == _BIG_ENDIAN
+ #define BigShort(x)		(x)
+ #define BigLong(x)		(x)
+ #define BigFloat(x)		(x)
+ #define LittleShort(x)	ShortSwap(x)
+ #define LittleLong(x)	LongSwap(x)
+ #define LittleFloat(x)	FloatSwap(x)
+-#elif defined(__LITTLE_ENDIAN__Q__)
++#elif _BYTE_ORDER == _LITTLE_ENDIAN
+ #define BigShort(x)		ShortSwap(x)
+ #define BigLong(x)		LongSwap(x)
+ #define BigFloat(x)		FloatSwap(x)
+ #define LittleShort(x)	(x)
+ #define LittleLong(x)	(x)
+ #define LittleFloat(x)	(x)
+-#elif defined(__PDP_ENDIAN__Q__)
++#elif _BYTE_ORDER == _PDP_ENDIAN
+ int		LongSwapPDP2Big (int l);
+ int		LongSwapPDP2Lit (int l);
+ float	FloatSwapPDP2Big (float f);

Added: head/games/mvdsv/files/patch-tools_qwdtools_source_Makefile.BSD
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/mvdsv/files/patch-tools_qwdtools_source_Makefile.BSD	Thu Jan 21 10:05:35 2016	(r406840)
@@ -0,0 +1,45 @@
+--- tools/qwdtools/source/Makefile.BSD.orig	2011-10-06 07:24:17 UTC
++++ tools/qwdtools/source/Makefile.BSD
+@@ -12,18 +12,14 @@
+ #
+ 
+ MAINDIR = ../../..
+-SV_DIR = $(MAINDIR)/source
++SV_DIR = $(MAINDIR)/src
+ QWDTOOLS_DIR = $(MAINDIR)/tools/qwdtools/source
+ 
+ # To compile qwdtools as 32bit on 64bit target platform use next:
+ # for gcc its like: make qwdtools FORCE32BITFLAGS=-m32
+ # configure script add FORCE32BITFLAGS=-m32
+ 
+-DO_CFLAGS		=	${CFLAGS} -Wall -pipe -pthread -funsigned-char -DUSE_PR2 -D${BYTE_ORDER}Q__ ${FORCE32BITFLAGS}
+-
+-.if !defined(NOKQUEUE) && (${UNAME} == "FreeBSD" || ${UNAME} == "DragonFly")
+-DO_CFLAGS		+=	-DKQUEUE
+-.endif
++DO_CFLAGS		=	${CFLAGS} -Wall -pipe -pthread -funsigned-char -DUSE_PR2 ${FORCE32BITFLAGS}
+ 
+ WITH_OPTIMIZED_CFLAGS = YES
+ 
+@@ -60,7 +56,7 @@ QWDTOOLS_OBJS = \
+ 		${QWDTOOLS_DIR}/sync.o \
+ 		${QWDTOOLS_DIR}/tools.o
+ 
+-.if ${USE_ASM} == ${ASM}
++.if defined(ASM) && ${USE_ASM} == ${ASM}
+ QWDTOOLS_ASM_OBJS = \
+ 		${SV_DIR}/bothtoolsa.o
+ .endif
+@@ -70,10 +66,10 @@ QWDTOOLS_ASM_OBJS = \
+ #############################################################################
+ 
+ .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:	qwdtools
+ 		${STRIP} ${STRIP_FLAGS} qwdtools

Modified: head/games/qwdtools/Makefile
==============================================================================
--- head/games/qwdtools/Makefile	Thu Jan 21 09:32:22 2016	(r406839)
+++ head/games/qwdtools/Makefile	Thu Jan 21 10:05:35 2016	(r406840)
@@ -7,8 +7,9 @@ COMMENT=	Convert QuakeWorld demos from Q
 DESCR=		${.CURDIR}/pkg-descr
 PKGMESSAGE=	/nonexistent
 
-MASTERDIR=	${.CURDIR}/../mvdsv
+BUILD_WRKSRC=	${WRKSRC}/tools/qwdtools/source
+GH_PROJECT=	mvdsv
 
-BROKEN=		fails to patch
+MASTERDIR=	${.CURDIR}/../mvdsv
 
 .include "${MASTERDIR}/Makefile"



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