summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-08-21 08:25:42 +0000
committerjperkin <jperkin>2014-08-21 08:25:42 +0000
commit7c0b57c12b73dc9168ee3b394bcab68d0d6c8b93 (patch)
treeb8f3743c9a03c02735155c599d02981bbac3c4a6 /mail
parentfa7a78d52ba5b43d9d7762d453a966dfca5fcedc (diff)
downloadpkgsrc-7c0b57c12b73dc9168ee3b394bcab68d0d6c8b93.tar.gz
Fix build on SunOS.
Diffstat (limited to 'mail')
-rw-r--r--mail/notmuch/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/notmuch/Makefile b/mail/notmuch/Makefile
index fb81fde6dcb..e52b65b6bdc 100644
--- a/mail/notmuch/Makefile
+++ b/mail/notmuch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2014/08/17 10:45:05 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2014/08/21 08:25:42 jperkin Exp $
DISTNAME= notmuch-0.18.1
PKGREVISION= 1
@@ -22,6 +22,15 @@ MAKE_FLAGS+= PYTHONBIN=${PYTHONBIN}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
+.if ${OPSYS} == "SunOS"
+SUBST_CLASSES+= gnuld
+SUBST_STAGE.gnuld= pre-configure
+SUBST_FILES.gnuld= lib/Makefile.local
+SUBST_SED.gnuld= -e 's/-Wl,--[^ ]*//g'
+.endif
+
+LDFLAGS.SunOS+= -lnsl
+
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # as of 0.18
.include "../../lang/python/application.mk"
.include "../../mail/gmime24/buildlink3.mk"