diff options
author | joerg <joerg@pkgsrc.org> | 2015-03-19 19:17:18 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2015-03-19 19:17:18 +0000 |
commit | 539d9ce62f3a9d2ecf965d406d5f5435ff948266 (patch) | |
tree | de63e2ec6586833da8d4cfafa9f48af661845bfd /time | |
parent | 02f1f19b5c2b45a5f9cdb7ac83cd81a04a1f9eaf (diff) | |
download | pkgsrc-539d9ce62f3a9d2ecf965d406d5f5435ff948266.tar.gz |
Create portable binary packages. Bump revision.
Diffstat (limited to 'time')
-rw-r--r-- | time/dateutils/Makefile | 3 | ||||
-rw-r--r-- | time/dateutils/distinfo | 4 | ||||
-rw-r--r-- | time/dateutils/patches/patch-configure | 338 | ||||
-rw-r--r-- | time/dateutils/patches/patch-m4_sxe-compiler.m4 | 15 |
4 files changed, 358 insertions, 2 deletions
diff --git a/time/dateutils/Makefile b/time/dateutils/Makefile index 56af7e8fba8..36f0b573a40 100644 --- a/time/dateutils/Makefile +++ b/time/dateutils/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2014/12/16 02:22:44 mef Exp $ +# $NetBSD: Makefile,v 1.6 2015/03/19 19:17:18 joerg Exp $ DISTNAME= dateutils-0.3.1 +PKGREVISION= 1 CATEGORIES= time MASTER_SITES= https://github.com/hroptatyr/dateutils/releases/download/v0.3.1/ MASTER_SITES+= https://bitbucket.org/hroptatyr/dateutils/downloads/ diff --git a/time/dateutils/distinfo b/time/dateutils/distinfo index 292113d78e1..88fd9baddf2 100644 --- a/time/dateutils/distinfo +++ b/time/dateutils/distinfo @@ -1,7 +1,9 @@ -$NetBSD: distinfo,v 1.4 2014/12/16 01:51:35 mef Exp $ +$NetBSD: distinfo,v 1.5 2015/03/19 19:17:18 joerg Exp $ SHA1 (dateutils-0.3.1.tar.xz) = 07884be555998aa649733401e65f073ada89ac08 RMD160 (dateutils-0.3.1.tar.xz) = a45ed9fb1c5d5107883fb3cfdf3f43d238e0497c Size (dateutils-0.3.1.tar.xz) = 586848 bytes SHA1 (patch-Makefile.am) = 936ad7f986ff5cb8bec5f85c96a17657fca2774f SHA1 (patch-Makefile.in) = ff5aaffb2046f17189b9074090c68295df5fb57a +SHA1 (patch-configure) = 191c8d1d2a81ecbea8a699a6da1a161c06688db4 +SHA1 (patch-m4_sxe-compiler.m4) = 0ac9b1337c7a1de66f644aaf1a048f404d521e7b diff --git a/time/dateutils/patches/patch-configure b/time/dateutils/patches/patch-configure new file mode 100644 index 00000000000..3a906113f04 --- /dev/null +++ b/time/dateutils/patches/patch-configure @@ -0,0 +1,338 @@ +$NetBSD: patch-configure,v 1.1 2015/03/19 19:17:18 joerg Exp $ + +Don't create broken or non-portable binaries. This code isn't even +performance critical. + +--- configure.orig 2015-03-19 00:03:08.000000000 +0000 ++++ configure +@@ -7779,330 +7779,6 @@ $as_echo_n "checking for preferred warni + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warnflags}" >&5 + $as_echo "${warnflags}" >&6; } + +- +- +- case " ${CFLAGS} ${EXTRA_CFLAGS}" in +- (*" -O"0-9) +- ;; +- (*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -O3" >&5 +-$as_echo_n "checking whether C compiler accepts -O3... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if ${sxe_cv_c_flag__O3+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-O3" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval sxe_cv_c_flag__O3="yes" +-else +- eval sxe_cv_c_flag__O3="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$sxe_cv_c_flag__O3 +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -O3" +- else +- : +- +- fi +- +- ;; +- esac +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ipo256" >&5 +-$as_echo_n "checking whether C compiler accepts -ipo256... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if ${sxe_cv_c_flag__ipo256+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-ipo256" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval sxe_cv_c_flag__ipo256="yes" +-else +- eval sxe_cv_c_flag__ipo256="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$sxe_cv_c_flag__ipo256 +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -ipo256" +- else +- : +- +- fi +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ipo-jobs256" >&5 +-$as_echo_n "checking whether C compiler accepts -ipo-jobs256... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if ${sxe_cv_c_flag__ipo_jobs256+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-ipo-jobs256" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval sxe_cv_c_flag__ipo_jobs256="yes" +-else +- eval sxe_cv_c_flag__ipo_jobs256="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$sxe_cv_c_flag__ipo_jobs256 +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -ipo-jobs256" +- else +- : +- +- fi +- +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-prec-div" >&5 +-$as_echo_n "checking whether C compiler accepts -no-prec-div... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if ${sxe_cv_c_flag__no_prec_div+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-no-prec-div" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval sxe_cv_c_flag__no_prec_div="yes" +-else +- eval sxe_cv_c_flag__no_prec_div="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$sxe_cv_c_flag__no_prec_div +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -no-prec-div" +- else +- : +- +- fi +- +- +- ## -fast implies -static which is a dream but +- ## packager prefer dynamic binaries +- +- ## auto-vectorisation +- +- case " ${CFLAGS} ${EXTRA_CFLAGS}" in +- (*" -mtune"*) +- ## don't tune +- ;; +- (*" -march"*) +- ## don't set march +- ;; +- (*" -m32 "*) +- ## don't bother +- ;; +- (*" -m64 "*) +- ## don't bother +- ;; +- (*) +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xHost" >&5 +-$as_echo_n "checking whether C compiler accepts -xHost... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if ${sxe_cv_c_flag__xHost+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-xHost" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval sxe_cv_c_flag__xHost="yes" +-else +- eval sxe_cv_c_flag__xHost="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$sxe_cv_c_flag__xHost +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -xHost" +- else +- : +- +- ## non-icc +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native -march=native" >&5 +-$as_echo_n "checking whether C compiler accepts -mtune=native -march=native... " >&6; } +- +- ## store werror status, then turn -Werror on +- save_ac_c_werror_flag="${ac_c_werror_flag}" +- +-ac_c_werror_flag=yes +- +- if { as_var=`$as_echo "sxe_cv_c_flag_-mtune=native -march=native" | $as_tr_sh`; eval \${$as_var+:} false; }; then : +- $as_echo_n "(cached) " >&6 +-else +- sxe_save_FLAGS="${CFLAGS}" +- CFLAGS="-mtune=native -march=native" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- eval `$as_echo "sxe_cv_c_flag_-mtune=native -march=native" | $as_tr_sh`="yes" +-else +- eval `$as_echo "sxe_cv_c_flag_-mtune=native -march=native" | $as_tr_sh`="no" +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS="${sxe_save_FLAGS}" +- +-fi +- +- eval sxe_check_flag=$`$as_echo "sxe_cv_c_flag_-mtune=native -march=native" | $as_tr_sh` +- ac_c_werror_flag="${save_ac_c_werror_flag}" +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sxe_check_flag}" >&5 +-$as_echo "${sxe_check_flag}" >&6; } +- if test "${sxe_check_flag}" = "yes"; then +- : +- +- optiflags="${optiflags} -mtune=native -march=native" +- else +- : +- +- fi +- +- +- fi +- +- ;; +- esac +- + SXE_CFLAGS="${SXE_CFLAGS} ${debugflags} ${optiflags} ${warnflags}" + + ## default flags for needed features diff --git a/time/dateutils/patches/patch-m4_sxe-compiler.m4 b/time/dateutils/patches/patch-m4_sxe-compiler.m4 new file mode 100644 index 00000000000..ae1e619d8ad --- /dev/null +++ b/time/dateutils/patches/patch-m4_sxe-compiler.m4 @@ -0,0 +1,15 @@ +$NetBSD: patch-m4_sxe-compiler.m4,v 1.1 2015/03/19 19:17:18 joerg Exp $ + +Don't create broken or non-portable binaries. This code isn't even +performance critical. + +--- m4/sxe-compiler.m4.orig 2015-03-19 00:06:56.000000000 +0000 ++++ m4/sxe-compiler.m4 +@@ -453,7 +453,6 @@ AC_DEFUN([SXE_CHECK_CFLAGS], [dnl + ## Use either command line flag, environment var, or autodetection + SXE_DEBUGFLAGS + SXE_WARNFLAGS +- SXE_OPTIFLAGS + SXE_CFLAGS="${SXE_CFLAGS} ${debugflags} ${optiflags} ${warnflags}" + + SXE_FEATFLAGS |