mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
lang/swi-pl: update to 8.2.0 and update MAINTAINER
ChangeLog: https://www.swi-prolog.org/ChangeLog?branch=stable While here, mark BROKEN on i386 but keep the dependency condition for when this builds again. (Possible duplicate of PR #242229) Submitter takes maintainership PR: 247500 Submitted by: mailinglist@diamondbox.dk
This commit is contained in:
parent
2866e1393a
commit
7b7abae1cc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540903
@ -2,87 +2,59 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= swi-pl
|
||||
PORTVERSION= 7.6.4
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 8.2.0
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= http://www.swi-prolog.org/download/stable/src/
|
||||
DISTNAME= swipl-${PORTVERSION}
|
||||
DISTNAME= swipl-${DISTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= mailinglist@diamondbox.dk
|
||||
COMMENT= Edinburgh-style Prolog compiler
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
BROKEN_mips= fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
|
||||
BROKEN_mips64= fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
|
||||
BROKEN_i386= fails to link: libswipl.so: undefined reference to __atomic_compare_exchange_8
|
||||
BROKEN_mips= fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
|
||||
BROKEN_mips64= fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
|
||||
|
||||
LIB_DEPENDS= libgmp.so:math/gmp \
|
||||
libodbc.so:databases/unixODBC \
|
||||
libfontconfig.so:x11-fonts/fontconfig \
|
||||
libfreetype.so:print/freetype2 \
|
||||
libpcre.so:devel/pcre
|
||||
libpcre.so:devel/pcre \
|
||||
libossp-uuid.so:misc/ossp-uuid \
|
||||
libyaml.so:textproc/libyaml
|
||||
|
||||
SWIPLDIR= ${PORTNAME:C/-//}-${PORTVERSION}
|
||||
|
||||
NOPRECIOUSMAKEVARS= yes
|
||||
|
||||
USES= compiler:c11 libedit gmake jpeg libarchive pathfix pkgconfig \
|
||||
USES= compiler:c11 libedit cmake jpeg libarchive pathfix pkgconfig \
|
||||
readline shebangfix ssl xorg
|
||||
USE_XORG= ice sm x11 xext xft xinerama xpm xt
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= ARCH=${ARCH}-${OPSYS:tl}
|
||||
CONFIGURE_TARGET= ${ARCH}-${OPSYS:tl}
|
||||
CONFIGURE_ARGS= --with-world --without-jpl --enable-shared
|
||||
MAKE_ARGS= DISABLE_PKGS=jpl \
|
||||
ac_cv_lib_ossp_uuid_uuid_create=no \
|
||||
ac_cv_lib_uuid_uuid_create=no
|
||||
|
||||
SHEBANG_FILES= library/dialect/sicstus/swipl-lfr.pl
|
||||
SHEBANG_LANG= swipl
|
||||
SHEBANG_FILES= library/dialect/sicstus/swipl-lfr.pl \
|
||||
packages/http/examples/demo_inetd
|
||||
|
||||
PLIST_SUB= DISTNAME=${SWIPLDIR} ARCH=${ARCH} OS=${OPSYS:tl} \
|
||||
VER=${PORTVERSION}
|
||||
CMAKE_ARGS= -DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=ON
|
||||
CMAKE_BUILD_TYPE= Release
|
||||
|
||||
NOPRECIOUSMAKEVARS= yes
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH:M*64*}
|
||||
PLIST_SUB+= BITS=64
|
||||
.else
|
||||
PLIST_SUB+= BITS=32
|
||||
.endif
|
||||
USE_LDCONFIG= ${PREFIX}/lib/swipl/lib/${ARCH}-${OPSYS:tl}
|
||||
|
||||
.if (${ARCH} == amd64)
|
||||
ARCH= x86_64
|
||||
.endif
|
||||
PLIST_SUB= ARCH=${ARCH} OS=${OPSYS:tl}
|
||||
|
||||
.if (${ARCH} == aarch64)
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-skip-gnu-qsort
|
||||
.if ${ARCH} == "i386" || ${ARCH} == "amd64"
|
||||
LIB_DEPENDS+= libunwind.so:devel/libunwind
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
.if ${ARCH} != i386
|
||||
@${REINPLACE_CMD} -e '/^CMFLAGS=/s/$$/ -fPIC/' \
|
||||
${WRKSRC}/packages/Dialect.defs
|
||||
.endif
|
||||
@{ ${ECHO} "#define HAVE_DLOPEN 1"; ${ECHO} "#define HAVE_DLADDR 1"; }\
|
||||
>> ${WRKSRC}/src/config.h
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's!^mandir=@mandir@!mandir=${MANPREFIX}/man!' \
|
||||
-e '/-o $$@ $$(PLOBJ)/s/$$/ $$(LIBS)/' \
|
||||
${WRKSRC}/src/Makefile.in \
|
||||
${WRKSRC}/packages/xpce/src/Makefile.in
|
||||
@${REINPLACE_CMD} -e '/EXAMPLEEXE/s/INSTALL_PROGRAM/INSTALL_SCRIPT/' \
|
||||
${WRKSRC}/packages/http/Makefile.in \
|
||||
${WRKSRC}/packages/pldoc/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's/malloc\.h/stdlib.h/' \
|
||||
${WRKSRC}/packages/cpp/SWI-cpp.h
|
||||
@${REINPLACE_CMD} -e 's|share/pkgconfig|libdata/pkgconfig|' \
|
||||
${WRKSRC}/CMakeLists.txt
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xpce-client \
|
||||
${STAGEDIR}${PREFIX}/lib/${SWIPLDIR}/lib/${ARCH}-${OPSYS:tl}/pl2xpce.so
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/swipl/lib/${ARCH}-${OPSYS:tl}/pl2xpce.so
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1517836115
|
||||
SHA256 (swipl-7.6.4.tar.gz) = 2d3d7aabd6d99a02dcc2da5d7604e3500329e541c6f857edc5aa06a3b1267891
|
||||
SIZE (swipl-7.6.4.tar.gz) = 16777875
|
||||
TIMESTAMP = 1587312848
|
||||
SHA256 (swipl-8.2.0.tar.gz) = d8c9f3adb9cd997a5fed7b5f5dbfe971d2defda969b9066ada158e4202c09c3c
|
||||
SIZE (swipl-8.2.0.tar.gz) = 10955744
|
||||
|
@ -1,55 +0,0 @@
|
||||
--- src/configure.orig 2018-11-06 17:02:55 UTC
|
||||
+++ src/configure
|
||||
@@ -8796,52 +8796,6 @@ if test "x$ac_cv_func_qsort_r" = xyes; then
|
||||
$as_echo "$as_me: checking \"GNU style qsort_r()\"..." >&6;}
|
||||
qsort_r_gnu=no
|
||||
|
||||
- if test "$cross_compiling" = yes; then :
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error $? "cannot run test program while cross compiling
|
||||
-See \`config.log' for more details" "$LINENO" 5; }
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
-
|
||||
-#define _GNU_SOURCE
|
||||
-#include <stdlib.h>
|
||||
-
|
||||
-static int
|
||||
-mycompare(const void *p1, const void *p2, void *c)
|
||||
-{ const int *s1 = p1;
|
||||
- const int *s2 = p2;
|
||||
- int *ip = c;
|
||||
-
|
||||
- if ( *ip != 1 )
|
||||
- exit(1);
|
||||
-
|
||||
- return *s1 - *s2;
|
||||
-}
|
||||
-
|
||||
-int
|
||||
-main(int argc, char**argv)
|
||||
-{ int data[] = {0,1,2,3,4,5,6,7,8,9};
|
||||
- int ctx = 1;
|
||||
-
|
||||
- qsort_r(data, 10, sizeof(int), mycompare, (void*)&ctx);
|
||||
- return 0;
|
||||
-}
|
||||
-
|
||||
-_ACEOF
|
||||
-if ac_fn_c_try_run "$LINENO"; then :
|
||||
-
|
||||
-$as_echo "#define QSORT_R_GNU 1" >>confdefs.h
|
||||
-
|
||||
-qsort_r_gnu=yes
|
||||
-else
|
||||
- true
|
||||
-fi
|
||||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
-fi
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $qsort_r_gnu" >&5
|
||||
$as_echo "$qsort_r_gnu" >&6; }
|
||||
fi
|
@ -0,0 +1,14 @@
|
||||
--- packages/clib/cmake/FindLibUUID.cmake.orig 2020-06-28 13:21:56 UTC
|
||||
+++ packages/clib/cmake/FindLibUUID.cmake
|
||||
@@ -25,9 +25,8 @@ if(UUID_CONFIG)
|
||||
|
||||
string(REPLACE "-l" "" LIBUUID_LIB ${LIBUUID_LIBFLAG})
|
||||
find_library(UUID_LIBRARY
|
||||
- NAMES ${LIBUUID_LIB}
|
||||
- PATHS ${LIBUUID_LIBRARY_DIR}
|
||||
- NO_DEFAULT_PATH)
|
||||
+ NAMES ossp-uuid
|
||||
+ PATHS ${LIBUUID_LIBRARY_DIR})
|
||||
if(NOT UUID_LIBRARY AND LIBUUID_LIB MATCHES "ossp")
|
||||
find_library(UUID_LIBRARY
|
||||
NAMES ${LIBUUID_LIB}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user