summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-03-24 17:44:47 +0000
committerjperkin <jperkin>2014-03-24 17:44:47 +0000
commit2b14bd6d17d442277b3c2d6c4e74702dd7d7d679 (patch)
tree0cdc1d3c3698d3b2022896dc4c17bdeea054bc5b
parent30f60612a91eeb43170e119852ca1d5fa214a34a (diff)
downloadpkgsrc-2b14bd6d17d442277b3c2d6c4e74702dd7d7d679.tar.gz
Fix build on SunOS. Based on a patch by MAINTAINER.
-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