1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

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)
This commit is contained in:
John Marino 2014-07-27 07:59:57 +00:00
parent f482a3d3e8
commit 04e4ffa550
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363018
3 changed files with 19 additions and 25 deletions

View File

@ -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>

View File

@ -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

View File

@ -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