summaryrefslogtreecommitdiff
path: root/graphics/evas
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-01-06 22:12:57 +0000
committerjoerg <joerg@pkgsrc.org>2014-01-06 22:12:57 +0000
commit4897e43ad60c5255c208e00fd425242150554855 (patch)
treecf73997297c9475567705d05279c8b760675b5a6 /graphics/evas
parent61310093a5d8513aaf2d406ba31cb162c2f6dec4 (diff)
downloadpkgsrc-4897e43ad60c5255c208e00fd425242150554855.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