aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astro/libnova/Makefile11
-rw-r--r--astro/libnova/distinfo6
-rw-r--r--astro/libnova/files/patch-src_Makefile.am20
-rw-r--r--astro/libnova/files/patch-src_elp_Makefile.am10
4 files changed, 38 insertions, 9 deletions
diff --git a/astro/libnova/Makefile b/astro/libnova/Makefile
index 9176768b73c3..5b2d0273ce5f 100644
--- a/astro/libnova/Makefile
+++ b/astro/libnova/Makefile
@@ -1,17 +1,18 @@
PORTNAME= libnova
DISTVERSION= 0.16.0
+PORTREVISION= 1
CATEGORIES= astro
-MASTER_SITES= https://sourceforge.net/code-snapshots/git/l/li/${PORTNAME}/${PORTNAME}.git/
-DISTNAME= ${PORTNAME}-${PORTNAME}-${GIT_HASH}
+# Pull from Gentoo repo because upstream stopped tarball releases after v0.15
+MASTER_SITES= https://dev.gentoo.org/~asturm/distfiles/
MAINTAINER= alven@FreeBSD.org
COMMENT= Astronomical Calculation Library
WWW= https://libnova.sourceforge.net/
-LICENSE= GPLv2
+LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= autoreconf libtool zip
+USES= autoreconf libtool tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@@ -20,8 +21,6 @@ INSTALL_TARGET= install-strip
PLIST_SUB= SOVERSION=${DISTVERSION:R}
-GIT_HASH= edbf65abe27ef1a2520eb9e839daaf58f15a6941
-
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure.ac
diff --git a/astro/libnova/distinfo b/astro/libnova/distinfo
index 64762b91bb13..a1523ee86788 100644
--- a/astro/libnova/distinfo
+++ b/astro/libnova/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1744455361
-SHA256 (libnova-libnova-edbf65abe27ef1a2520eb9e839daaf58f15a6941.zip) = 2703497573f949146895dedb6fdf74c8d1f15dbdb831074bbaabc5052bdedc07
-SIZE (libnova-libnova-edbf65abe27ef1a2520eb9e839daaf58f15a6941.zip) = 1373439
+TIMESTAMP = 1768205936
+SHA256 (libnova-0.16.0.tar.xz) = 699a6ffe0b70a2b4f594ca4231eedfc772161460a9de7ff90dd1d92fd3ba7d39
+SIZE (libnova-0.16.0.tar.xz) = 909212
diff --git a/astro/libnova/files/patch-src_Makefile.am b/astro/libnova/files/patch-src_Makefile.am
new file mode 100644
index 000000000000..58e69949fc53
--- /dev/null
+++ b/astro/libnova/files/patch-src_Makefile.am
@@ -0,0 +1,20 @@
+--- src/Makefile.am.orig 2019-11-20 19:29:37 UTC
++++ src/Makefile.am
+@@ -1,6 +1,6 @@
+ ## Process this file with automake to produce Makefile.in
+
+-AM_CFLAGS = -Wall -O3 $(AVX_CFLAGS)
++AM_CFLAGS = $(AVX_CFLAGS)
+
+ SUBDIRS = libnova elp
+
+@@ -46,8 +46,7 @@ libnova_la_LIBADD = \
+ lunar-priv.h
+
+ libnova_la_LIBADD = \
+- -Lelp/ \
+- -lelp
++ elp/libelp.la
+
+ libnova_la_LDFLAGS = \
+ -version-info $(LT_VERSION) \
diff --git a/astro/libnova/files/patch-src_elp_Makefile.am b/astro/libnova/files/patch-src_elp_Makefile.am
new file mode 100644
index 000000000000..184d54690125
--- /dev/null
+++ b/astro/libnova/files/patch-src_elp_Makefile.am
@@ -0,0 +1,10 @@
+--- src/elp/Makefile.am.orig 2019-11-20 19:29:37 UTC
++++ src/elp/Makefile.am
+@@ -1,6 +1,6 @@ noinst_LTLIBRARIES = libelp.la
+ noinst_LTLIBRARIES = libelp.la
+
+-AM_CFLAGS = -I ../ -Wall -O3 $(AVX_CFLAGS)
++AM_CFLAGS = -I ../ $(AVX_CFLAGS)
+
+ libelp_la_SOURCES = \
+ elp1.c \