[Midnightbsd-cvs] mports [22102] trunk/astro/boinc-setiathome-v7/Makefile: try to use ports m4

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Nov 12 16:47:33 EST 2016


Revision: 22102
          http://svnweb.midnightbsd.org/mports/?rev=22102
Author:   laffer1
Date:     2016-11-12 16:47:33 -0500 (Sat, 12 Nov 2016)
Log Message:
-----------
try to use ports m4

Modified Paths:
--------------
    trunk/astro/boinc-setiathome-v7/Makefile

Modified: trunk/astro/boinc-setiathome-v7/Makefile
===================================================================
--- trunk/astro/boinc-setiathome-v7/Makefile	2016-11-12 21:39:44 UTC (rev 22101)
+++ trunk/astro/boinc-setiathome-v7/Makefile	2016-11-12 21:47:33 UTC (rev 22102)
@@ -12,7 +12,8 @@
 LICENSE=	gpl2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
+BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 \
+		gm4:${PORTSDIR}/devel/m4
 RUN_DEPENDS=	boinc_client:${PORTSDIR}/net/boinc-client
 LIB_DEPENDS=	libfftw3f.so:${PORTSDIR}/math/fftw3-float
 
@@ -49,15 +50,9 @@
 BUILD_DEPENDS+=	${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
 .endif
 
-.if ${ARCH} == i386 || ${ARCH} == amd64
 # comment out if world is built with clang and port with gcc
 CFLAGS+=	-mtune=native
-.endif
 
-.if !empty(MACHINE_CPU:Maltivec)
-CONFIGURE_ARGS+=	--enable-altivec
-.endif
-
 CONFIGURE_ENV+=	BOINCDIR="${NONEXISTENT}"
 
 CONFIGURE_ARGS+=	--disable-static-client --disable-server \
@@ -82,7 +77,7 @@
 		BOINC_CLIENT_GROUP=${BOINC_CLIENT_GROUP}
 
 # str_replace.h is included in newer versions of net/boinc-client,
-# but it is not needed on FreeBSD
+# but it is not needed on BSD
 post-patch:
 	${REINPLACE_CMD} -E -e "s|#include \"str_replace.h\"||" \
 		${WRKSRC}/client/main.cpp \
@@ -92,6 +87,7 @@
 		${WRKSRC}/db/xml_util.cpp
 
 pre-configure:
+	${REINPLACE_CMD} -e 's/m4/gm4/g' ${WRKSRC}/_autosetup
 	(cd ${WRKSRC} ; ./_autosetup)
 
 do-install:



More information about the Midnightbsd-cvs mailing list