Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2018 15:14:09 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481227 - in head/news/nzbget: . files
Message-ID:  <201810041514.w94FE9Pa089636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Thu Oct  4 15:14:09 2018
New Revision: 481227
URL: https://svnweb.freebsd.org/changeset/ports/481227

Log:
  news/nzbget: Update to 20.0
  
  - Add patches to disable building with optimized CFLAGS by default
  
  PR:		228888
  Approved by:	maintainer (timeout)
  MFH:		2018Q4

Added:
  head/news/nzbget/files/extra-disable-optimized-flags.patch   (contents, props changed)
  head/news/nzbget/files/patch-configure.ac   (contents, props changed)
Modified:
  head/news/nzbget/Makefile
  head/news/nzbget/distinfo
  head/news/nzbget/pkg-plist

Modified: head/news/nzbget/Makefile
==============================================================================
--- head/news/nzbget/Makefile	Thu Oct  4 15:08:20 2018	(r481226)
+++ head/news/nzbget/Makefile	Thu Oct  4 15:14:09 2018	(r481227)
@@ -2,8 +2,8 @@
 # $FreeBSD$
 
 PORTNAME=	nzbget
-PORTVERSION=	19.1
-PORTREVISION=	2
+PORTVERSION=	20.0
+PORTREVISION=	0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	news
 
@@ -14,7 +14,7 @@ LICENSE=	GPLv2
 
 LIB_DEPENDS=	libxml2.so:textproc/libxml2
 
-USES=		compiler:c++14-lang ncurses pkgconfig shebangfix ssl
+USES=		autoreconf compiler:c++14-lang gmake localbase ncurses pkgconfig shebangfix ssl
 USE_RC_SUBR=	nzbget
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-libcurses-includes=${NCURSESINC} \
@@ -23,10 +23,6 @@ CONFIGURE_ARGS=	--with-libcurses-includes=${NCURSESINC
 		--with-openssl-includes=${OPENSSLINC} \
 		--with-openssl-libraries=${OPENSSLLIB}
 
-CONFIGURE_ENV=	LOCALBASE="${LOCALBASE}"
-MAKE_JOBS_UNSAFE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-lpthread
 BINMODE=	0755
 
 SHEBANG_FILES=	scripts/*.py
@@ -34,13 +30,16 @@ SUB_FILES=	pkg-message
 
 USE_GITHUB=	yes
 
-OPTIONS_DEFINE=	7Z PYTHON RAR DOCS
+OPTIONS_DEFINE=	7Z OPTIMIZED_FLAGS PYTHON RAR
 OPTIONS_DEFAULT=	PAR PYTHON RAR 7Z
 7Z_DESC=	Support extraction of 7z archives
+OPTIMIZED_FLAGS_DESC=	Enable optimized CPU instructions (SSE2/SSE3/NEON/etc)
 PYTHON_DESC=	Support for python post-processing scripts
 RAR_DESC=	Support extraction of rar archives
 
 7Z_RUN_DEPENDS=		7z:archivers/p7zip
+
+OPTIMIZED_FLAGS_EXTRA_PATCHES_OFF=	${FILESDIR}/extra-disable-optimized-flags.patch
 
 PYTHON_USES=		python:run
 

Modified: head/news/nzbget/distinfo
==============================================================================
--- head/news/nzbget/distinfo	Thu Oct  4 15:08:20 2018	(r481226)
+++ head/news/nzbget/distinfo	Thu Oct  4 15:14:09 2018	(r481227)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1502370865
-SHA256 (nzbget-nzbget-v19.1_GH0.tar.gz) = 392c5aab41438faa3ad37a8497b5ff75f60cca3c9ba20c1764c592f6ce1be178
-SIZE (nzbget-nzbget-v19.1_GH0.tar.gz) = 1834888
+TIMESTAMP = 1528390488
+SHA256 (nzbget-nzbget-v20.0_GH0.tar.gz) = c04c4fca1ea226b767d922de041b3604bd9a53226878ab532e96b1ef31562361
+SIZE (nzbget-nzbget-v20.0_GH0.tar.gz) = 1952219

Added: head/news/nzbget/files/extra-disable-optimized-flags.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/nzbget/files/extra-disable-optimized-flags.patch	Thu Oct  4 15:14:09 2018	(r481227)
@@ -0,0 +1,16 @@
+--- configure.ac.orig	2018-06-06 19:34:34 UTC
++++ configure.ac
+@@ -569,12 +569,8 @@ case $host_cpu in
+ 		USE_SIMD=yes
+ 		;;
+ esac
++USE_SIMD=no
+ AC_MSG_RESULT($USE_SIMD)
+-AC_SUBST([SSE2_CXXFLAGS])
+-AC_SUBST([SSSE3_CXXFLAGS])
+-AC_SUBST([PCLMUL_CXXFLAGS])
+-AC_SUBST([NEON_CXXFLAGS])
+-AC_SUBST([ACLECRC_CXXFLAGS])
+ 
+ 
+ dnl 

Added: head/news/nzbget/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/news/nzbget/files/patch-configure.ac	Thu Oct  4 15:14:09 2018	(r481227)
@@ -0,0 +1,20 @@
+--- configure.ac.orig	2018-06-06 19:34:34 UTC
++++ configure.ac
+@@ -37,7 +37,7 @@ dnl Check for programs.
+ dnl
+ AC_PROG_CXX
+ AC_PATH_PROG(TAR, tar, $FALSE)
+-AC_PATH_PROG(MAKE, make, $FALSE)
++AC_PATH_PROG(MAKE, gmake, $FALSE)
+ AC_PROG_INSTALL
+ 
+ 
+@@ -553,7 +553,7 @@ dnl
+ AC_MSG_CHECKING(whether to use SIMD-optimized routines)
+ USE_SIMD=no
+ case $host_cpu in
+-	i?86|x86_64)
++	i?86|x86_64|amd64)
+ 		SSE2_CXXFLAGS="-msse2"
+ 		SSSE3_CXXFLAGS="-mssse3"
+ 		PCLMUL_CXXFLAGS="-msse4.1 -mpclmul"

Modified: head/news/nzbget/pkg-plist
==============================================================================
--- head/news/nzbget/pkg-plist	Thu Oct  4 15:08:20 2018	(r481226)
+++ head/news/nzbget/pkg-plist	Thu Oct  4 15:14:09 2018	(r481227)
@@ -15,6 +15,8 @@ bin/nzbget
 %%DATADIR%%/webui/history.js
 %%DATADIR%%/webui/img/download-anim-green-2x.png
 %%DATADIR%%/webui/img/download-anim-orange-2x.png
+%%DATADIR%%/webui/img/favicon-256x256-opaque.png
+%%DATADIR%%/webui/img/favicon-256x256.png
 %%DATADIR%%/webui/img/favicon.ico
 %%DATADIR%%/webui/img/icons-2x.png
 %%DATADIR%%/webui/img/icons.png



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