1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00

news/nzbget: Update to 20.0

- Add patches to disable building with optimized CFLAGS by default

PR:		228888
Approved by:	maintainer (timeout)
MFH:		2018Q4
This commit is contained in:
Mark Felder 2018-10-04 15:14:09 +00:00
parent 3701c113a6
commit 730c9c1c29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=481227
5 changed files with 48 additions and 11 deletions

View File

@ -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,14 +30,17 @@ 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
RAR_RUN_DEPENDS= unrar:archivers/unrar

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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