svn commit: r560099 - in head/science/udunits: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Jan 3 20:05:29 UTC 2021
Author: sunpoet
Date: Sun Jan 3 20:05:21 2021
New Revision: 560099
URL: https://svnweb.freebsd.org/changeset/ports/560099
Log:
Update to 2.2.28
Changes: https://github.com/Unidata/UDUNITS-2/blob/master/CHANGE_LOG
Added:
head/science/udunits/files/
head/science/udunits/files/patch-lib-xml.c (contents, props changed)
Modified:
head/science/udunits/Makefile
head/science/udunits/distinfo
Modified: head/science/udunits/Makefile
==============================================================================
--- head/science/udunits/Makefile Sun Jan 3 20:05:17 2021 (r560098)
+++ head/science/udunits/Makefile Sun Jan 3 20:05:21 2021 (r560099)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= udunits
-PORTVERSION= 2.2.26
-PORTREVISION= 2
+PORTVERSION= 2.2.28
CATEGORIES= science math
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/udunits/ \
LOCAL/sunpoet
@@ -18,16 +17,18 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-se
LIB_DEPENDS= libexpat.so:textproc/expat2
-OPTIONS_DEFINE= DOCS
+USES= libtool localbase
+CFLAGS+= -D__BSD_VISIBLE
CONFIGURE_ENV= ac_cv_header_CUnit_CUnit_h=no
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
-USES= libtool localbase
INFO= udunits2 udunits2lib udunits2prog
+
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/install-data-hook$$/d' ${WRKSRC}/lib/Makefile.in
Modified: head/science/udunits/distinfo
==============================================================================
--- head/science/udunits/distinfo Sun Jan 3 20:05:17 2021 (r560098)
+++ head/science/udunits/distinfo Sun Jan 3 20:05:21 2021 (r560099)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1514030046
-SHA256 (udunits-2.2.26.tar.gz) = 368f4869c9c7d50d2920fa8c58654124e9ed0d8d2a8c714a9d7fdadc08c7356d
-SIZE (udunits-2.2.26.tar.gz) = 1227596
+TIMESTAMP = 1609598847
+SHA256 (udunits-2.2.28.tar.gz) = 590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e
+SIZE (udunits-2.2.28.tar.gz) = 1224503
Added: head/science/udunits/files/patch-lib-xml.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/science/udunits/files/patch-lib-xml.c Sun Jan 3 20:05:21 2021 (r560099)
@@ -0,0 +1,20 @@
+--- lib/xml.c.orig 2020-12-07 18:37:03 UTC
++++ lib/xml.c
+@@ -38,7 +38,7 @@
+ #endif
+ #include <sys/stat.h>
+ #include <sys/types.h>
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ #include <dlfcn.h>
+ #elif defined(__APPLE__)
+ #define _DARWIN_C_SOURCE
+@@ -2137,7 +2137,7 @@ default_udunits2_xml_path()
+ if (absXmlPathname[0] == 0) {
+ const char* prefix = NULL; // Installation directory
+
+-# if defined(__APPLE__) || defined(__linux__)
++# if defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__)
+ Dl_info info;
+ const char sep = '/'; // Pathname component separator
+ char buf[PATH_MAX];
More information about the svn-ports-all
mailing list