From 4f22622186697549a6d322c2d76ba43582e66b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 29 Sep 2020 21:01:28 +0000 Subject: Fix build with -fno-common --- math/spar/Makefile | 7 +++++-- math/spar/files/patch-lib_sl__version.h | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 math/spar/files/patch-lib_sl__version.h (limited to 'math') diff --git a/math/spar/Makefile b/math/spar/Makefile index a20b9c3fc6a2..c84a85d70f57 100644 --- a/math/spar/Makefile +++ b/math/spar/Makefile @@ -3,18 +3,21 @@ PORTNAME= spar PORTVERSION= 0.5.10 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= math devel MASTER_SITES= SF/${PORTNAME}/Spar/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Modular math parser +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= dos2unix libtool ncurses readline DOS2UNIX_FILES= lib/randist/rand.c -GNU_CONFIGURE= yes USE_CSTD= gnu89 USE_LDCONFIG= yes +GNU_CONFIGURE= yes post-patch: @${REINPLACE_CMD} -e "s,-ldl,,g" \ diff --git a/math/spar/files/patch-lib_sl__version.h b/math/spar/files/patch-lib_sl__version.h new file mode 100644 index 000000000000..6676f4d12c2b --- /dev/null +++ b/math/spar/files/patch-lib_sl__version.h @@ -0,0 +1,15 @@ +--- lib/sl_version.h.orig 2001-06-26 13:22:43 UTC ++++ lib/sl_version.h +@@ -39,9 +39,9 @@ void sl_info (void); + + void sl_warranty (void); + +-int sl_major_version; +-int sl_minor_version; +-int sl_patch_level; ++extern int sl_major_version; ++extern int sl_minor_version; ++extern int sl_patch_level; + + __END_DECLS + #endif /* _sl_version_h */ -- cgit v1.2.3