summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordholland <dholland>2015-11-08 19:27:40 +0000
committerdholland <dholland>2015-11-08 19:27:40 +0000
commitcef4eaf0b7fae6532491e4609ca7b0faed654c84 (patch)
tree02ddff441562df952e558513060b0b37c131caf2 /lang
parent03bf7309f3ff9a7220f8a0e28b3ca99c4327298e (diff)
downloadpkgsrc-cef4eaf0b7fae6532491e4609ca7b0faed654c84.tar.gz
Introduce a PLIST_VAR to deal with it not building a particular module
depending on available C++ dialects. This is an approximation until we get a good way to assess dialect support in pkgsrc makefiles, but it should improve the chances of getting a build. (using GCC_REQD seems like overkill)
Diffstat (limited to 'lang')
-rw-r--r--lang/yap/Makefile17
-rw-r--r--lang/yap/PLIST6
2 files changed, 19 insertions, 4 deletions
diff --git a/lang/yap/Makefile b/lang/yap/Makefile
index 1258c4bc2c3..95a0ed7253b 100644
--- a/lang/yap/Makefile
+++ b/lang/yap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2015/08/18 07:31:11 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2015/11/08 19:27:40 dholland Exp $
DISTNAME= yap-6.3.3
PKGREVISION= 3
@@ -21,6 +21,21 @@ CONFIGURE_ENV+= INDENT=${TRUE:Q}
# debug option:
#CONFIGURE_ARGS+= --enable-debug-yap
+.include "../../mk/bsd.prefs.mk"
+
+# If it doesn't probe a c++0x compiler, it doesn't build "horus",
+# which is apparently a belief propagation engine. There isn't any
+# good way to detect in pkgsrc if the current compiler supports any
+# particular dialect (at least as of this writing) and forcing a
+# non-default compiler seems like overkill, so for now at least we'll
+# approximate by OS.
+PLIST_VARS+= horus
+.if ${OPSYS} == "OpenBSD"
+PLIST.horus= no
+.else
+PLIST.horus= yes
+.endif
+
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
diff --git a/lang/yap/PLIST b/lang/yap/PLIST
index a7f366c8e72..f465a30026a 100644
--- a/lang/yap/PLIST
+++ b/lang/yap/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.11 2013/06/12 20:28:41 asau Exp $
-bin/hcli
+@comment $NetBSD: PLIST,v 1.12 2015/11/08 19:27:40 dholland Exp $
+${PLIST.horus}bin/hcli
bin/yap
include/Yap/SWI-Prolog.h
include/Yap/SWI-Stream.h
@@ -112,7 +112,7 @@ include/Yap/yap_structs.h
lib/Yap/archive4pl.so
lib/Yap/cgi.so
lib/Yap/files.so
-lib/Yap/horus.so
+${PLIST.horus}lib/Yap/horus.so
lib/Yap/http_stream.so
lib/Yap/itries.so
lib/Yap/json.so