summaryrefslogtreecommitdiff
path: root/graphics/evas
diff options
context:
space:
mode:
authorjoerg <joerg>2014-01-06 22:12:57 +0000
committerjoerg <joerg>2014-01-06 22:12:57 +0000
commit5ca65bf60025edaf1657d3abb8fa8e361c808888 (patch)
treecf73997297c9475567705d05279c8b760675b5a6 /graphics/evas
parent629fe6dfe8ebfe6bc458780e36e35caffa01168d (diff)
downloadpkgsrc-5ca65bf60025edaf1657d3abb8fa8e361c808888.tar.gz
cserve is installed iff the system has shm_open, so adapt.
Diffstat (limited to 'graphics/evas')
-rw-r--r--graphics/evas/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/evas/Makefile b/graphics/evas/Makefile
index f2ed5d9f66b..037087977a5 100644
--- a/graphics/evas/Makefile
+++ b/graphics/evas/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2013/06/16 18:56:05 sno Exp $
+# $NetBSD: Makefile,v 1.15 2014/01/06 22:12:57 joerg Exp $
COMMENT= Enlightened Canvas Library
@@ -15,7 +15,15 @@ INSTALLATION_DIRS= lib/evas/modules/loaders lib/evas/modules/savers \
.include "../../mk/bsd.prefs.mk"
PLIST_SRC+= PLIST
-.if ${OPSYS} != "NetBSD" && ${OPSYS} != "OpenBSD" && ${OPSYS} != "MirBSD"
+.if ${OPSYS} == "NetBSD"
+. if exists(/var/shm)
+# /var/shm was added together with shm_open, so use this as test.
+PLIST_SRC+= PLIST.cserve
+. endif
+.elif ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
+# No shm_open on OpenBSD/MirBSD
+.else
+# Assume shm_open exists as sane default.
PLIST_SRC+= PLIST.cserve
.endif