summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-07-27 07:59:57 +0000
committermarino <marino@FreeBSD.org>2014-07-27 07:59:57 +0000
commit59014cf4f0243409d98e84dfa21f0362c92b8a79 (patch)
treedaeb186b7b7eb795f72a20dfe3024b2cd22d268f
parent7bb85b7ffad1a5dd84ec267085e99f8cf201efd6 (diff)
downloadFreeBSD-ports-59014cf4f0243409d98e84dfa21f0362c92b8a79.zip
FreeBSD-ports-59014cf4f0243409d98e84dfa21f0362c92b8a79.tar.gz
lang/polyml: Upgrade version 5.5 => 5.5.2
Also: * add support for system libffi * Use sed instead of patch to fix configure * Adopt modern port conventions PR: 191914 Submitted by: maintainer (Timothy Beyer)
-rw-r--r--lang/polyml/Makefile29
-rw-r--r--lang/polyml/distinfo4
-rw-r--r--lang/polyml/files/patch-elfexport.h11
3 files changed, 19 insertions, 25 deletions
diff --git a/lang/polyml/Makefile b/lang/polyml/Makefile
index f3a556c..2495a77 100644
--- a/lang/polyml/Makefile
+++ b/lang/polyml/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= polyml
-PORTVERSION= 5.5
-PORTREVISION= 1
+PORTVERSION= 5.5.2
CATEGORIES= lang
MASTER_SITES= SF
DISTNAME= ${PORTNAME}.${PORTVERSION}
@@ -15,20 +14,26 @@ COMMENT= Fast open-source implementation of Standard ML
LICENSE= LGPL21
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-x
+CONFIGURE_ARGS= --without-x --with-system-libffi
USE_GCC= yes
USE_LDCONFIG= yes
ONLY_FOR_ARCHS= i386 amd64
-PLIST_FILES= bin/poly \
- bin/polyimport \
- lib/libpolymain.a \
- lib/libpolymain.la \
- lib/libpolyml.a \
- lib/libpolyml.la \
- lib/libpolyml.so \
- lib/libpolyml.so.4 \
- man/man1/poly.1.gz \
+USES= libtool:keepla pkgconfig pathfix
+
+pre-build:
+ @${REINPLACE_CMD} "s|ELFXX_R_INFO(_y, _z) ELF64_R_INFO(_y, _z)|ELFXX_R_INFO(_y, _z) ELF64_R_INFO((Elf64_Xword)(_y), _z)|g" ${WRKSRC}/libpolyml/elfexport.h
+
+PLIST_FILES= bin/poly \
+ bin/polyc \
+ bin/polyimport \
+ lib/libpolymain.a \
+ lib/libpolymain.la \
+ lib/libpolyml.a \
+ lib/libpolyml.la \
+ libdata/pkgconfig/polyml.pc \
+ man/man1/poly.1.gz \
+ man/man1/polyc.1.gz \
man/man1/polyimport.1.gz
.include <bsd.port.mk>
diff --git a/lang/polyml/distinfo b/lang/polyml/distinfo
index 062b3e8..367d0ff 100644
--- a/lang/polyml/distinfo
+++ b/lang/polyml/distinfo
@@ -1,2 +1,2 @@
-SHA256 (polyml/polyml.5.5.tar.gz) = 2b20e597e6fe43df1b0ed01e78e410c6b51d0ac7911833e91d94fcc9eb05d831
-SIZE (polyml/polyml.5.5.tar.gz) = 5504389
+SHA256 (polyml/polyml.5.5.2.tar.gz) = 73fd2be89f7e3ff0567e27ef525ef788775d9f963d6db54069cb34d53040a682
+SIZE (polyml/polyml.5.5.2.tar.gz) = 5599140
diff --git a/lang/polyml/files/patch-elfexport.h b/lang/polyml/files/patch-elfexport.h
deleted file mode 100644
index e111f2f..0000000
--- a/lang/polyml/files/patch-elfexport.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- libpolyml/elfexport.h.orgi 2013-02-08 16:01:09.000000000 +0800
-+++ libpolyml/elfexport.h 2013-02-08 16:01:43.000000000 +0800
-@@ -37,7 +37,7 @@
- #define ElfXX_Sym Elf64_Sym
- #define ElfXX_Ehdr Elf64_Ehdr
- #define ElfXX_Shdr Elf64_Shdr
--#define ELFXX_R_INFO(_y, _z) ELF64_R_INFO(_y, _z)
-+#define ELFXX_R_INFO(_y, _z) ELF64_R_INFO((Elf64_Xword)(_y), _z)
- #define ELFXX_ST_INFO(_y, _z) ELF64_ST_INFO(_y, _z)
- #define ELFCLASSXX ELFCLASS64
- #else
OpenPOWER on IntegriCloud