View | Details | Raw Unified | Return to bug 247500 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/ports/lang/swi-pl/Makefile (-12 / +31 lines)
Lines 12-39 Link Here
12
12
13
LICENSE=	BSD2CLAUSE
13
LICENSE=	BSD2CLAUSE
14
14
15
BROKEN_i386=	fails to link: libswipl.so: undefined reference to __atomic_compare_exchange_8
15
# 20200702  BROKEN_i386=	fails to link: libswipl.so: undefined reference to __atomic_compare_exchange_8
16
BROKEN_mips=	fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
16
BROKEN_mips=	fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
17
BROKEN_mips64=	fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
17
BROKEN_mips64=	fails to link: libswipl.so: undefined reference to '__sync_sub_and_fetch_4'
18
18
19
LIB_DEPENDS=	libgmp.so:math/gmp \
19
LIB_DEPENDS=	libpcre.so:devel/pcre \
20
		libodbc.so:databases/unixODBC \
21
		libfontconfig.so:x11-fonts/fontconfig \
22
		libfreetype.so:print/freetype2 \
23
		libpcre.so:devel/pcre \
24
		libossp-uuid.so:misc/ossp-uuid \
20
		libossp-uuid.so:misc/ossp-uuid \
25
		libyaml.so:textproc/libyaml
21
		libyaml.so:textproc/libyaml
26
22
27
USES=		compiler:c11 libedit cmake jpeg libarchive pathfix pkgconfig \
23
#LIB_DEPENDS=	libgmp.so:math/gmp \
28
		readline shebangfix ssl xorg
24
#		libodbc.so:databases/unixODBC \
29
USE_XORG=	ice sm x11 xext xft xinerama xpm xt
25
#		libfontconfig.so:x11-fonts/fontconfig \
26
#		libfreetype.so:print/freetype2 \
27
#		libpcre.so:devel/pcre \
28
#		libossp-uuid.so:misc/ossp-uuid \
29
#		libyaml.so:textproc/libyaml
30
30
31
USES=		compiler:c11 libedit cmake pathfix pkgconfig \
32
		shebangfix ssl
33
#USES=		compiler:c11 libedit cmake jpeg libarchive pathfix pkgconfig \
34
#		readline shebangfix ssl xorg
35
#USE_XORG=	ice sm x11 xext xft xinerama xpm xt
36
31
SHEBANG_FILES=	library/dialect/sicstus/swipl-lfr.pl
37
SHEBANG_FILES=	library/dialect/sicstus/swipl-lfr.pl
32
SHEBANG_LANG=	swipl
38
SHEBANG_LANG=	swipl
33
39
34
CMAKE_ARGS=	-DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=ON
35
CMAKE_BUILD_TYPE=	Release
40
CMAKE_BUILD_TYPE=	Release
41
CMAKE_ARGS=	-DSWIPL_PACKAGES_JAVA=OFF -DSWIPL_PACKAGES_X=OFF \
42
	-DUSE_GMP=OFF -DMULTI_THREADED=OFF -DSWIPL_PACKAGES_ODBC=OFF
43
.if ${ARCH} == "i386"	# tex doesnt seem to work 
44
CMAKE_ARGS+=-DINSTALL_DOCUMENTATION=OFF -DBUILD_TESTING=OFF
45
.endif
36
46
47
# 201712 Not happy about configure WARNING messages, but these do the job as swi suggest
48
#CONFIGURE_ARGS= --with-world --disable-gmp --disable-libdirversion --without-gpl --without-lgpl --enable-shared
49
37
NOPRECIOUSMAKEVARS=	yes
50
NOPRECIOUSMAKEVARS=	yes
38
51
39
MAKE_JOBS_SAFE=		yes
52
MAKE_JOBS_SAFE=		yes
Lines 54-60 Link Here
54
	@${REINPLACE_CMD} -e 's|share/pkgconfig|libdata/pkgconfig|' \
67
	@${REINPLACE_CMD} -e 's|share/pkgconfig|libdata/pkgconfig|' \
55
		${WRKSRC}/CMakeLists.txt
68
		${WRKSRC}/CMakeLists.txt
56
69
57
post-install:
70
# 20200702 no xpce required
58
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/swipl/lib/${ARCH}-${OPSYS:tl}/pl2xpce.so
71
#post-install:
72
#	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/swipl/lib/${ARCH}-${OPSYS:tl}/pl2xpce.so
59
73
74
# 201712 To get a running /usr/local/bin/swipl, either 
75
# "ldconfig -m /usr/local/lib/swipl/lib/x86_64-freebsd/" or add
76
# ln -s /usr/local/lib/swipl/lib/x86_64-freebsd/libswipl.so.7.6.4 /usr/local/lib/libswipl.so.7.6
77
# Aside: Runs fine with CFLAGS+= -O3
78
60
.include <bsd.port.post.mk>
79
.include <bsd.port.post.mk>

Return to bug 247500