summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-03-24 17:44:47 +0000
committerjperkin <jperkin@pkgsrc.org>2014-03-24 17:44:47 +0000
commita2e7a30f96d6ca3914b4f242a855597aefddedda (patch)
tree0cdc1d3c3698d3b2022896dc4c17bdeea054bc5b /chat
parent87b1e5f8c28af90831c54c334a7346a1f534fb0d (diff)
downloadpkgsrc-a2e7a30f96d6ca3914b4f242a855597aefddedda.tar.gz
Fix build on SunOS. Based on a patch by MAINTAINER.
Diffstat (limited to 'chat')
-rw-r--r--chat/irssi-xmpp/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/chat/irssi-xmpp/Makefile b/chat/irssi-xmpp/Makefile
index b8df1e0e790..46681d9d581 100644
--- a/chat/irssi-xmpp/Makefile
+++ b/chat/irssi-xmpp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2012/10/03 00:02:38 asau Exp $
+# $NetBSD: Makefile,v 1.4 2014/03/24 17:44:47 jperkin Exp $
#
DISTNAME= irssi-xmpp-0.52
@@ -29,6 +29,15 @@ SUBST_MESSAGE.makefile= Fixing doc-install Makefile target.
SUBST_FILES.makefile= Makefile
SUBST_SED.makefile+= -e '/docs/s/install/install -m 644/'
+SUBST_CLASSES+= configmk
+SUBST_STAGE.configmk= pre-build
+SUBST_MESSAGE.configmk= Fixing CFLAGS and LDFLAGS to be user-settable.
+SUBST_FILES.configmk= config.mk
+SUBST_SED.configmk+= -e 's/^CFLAGS =/CFLAGS +=/'
+SUBST_SED.configmk+= -e 's/^LDFLAGS =/LDFLAGS +=/'
+
+CFLAGS.SunOS+= -D__BEGIN_DECLS= -D__END_DECLS=
+
post-extract:
${MV} ${WRKDIR}/${DISTNAME} ${WRKDIR}/${IRSSI_DISTNAME}
${CP} ${IRSSI_CONFIG_H} ${WRKSRC}/src/config.h