summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjperkin <jperkin>2014-08-21 14:02:49 +0000
committerjperkin <jperkin>2014-08-21 14:02:49 +0000
commit7782bc2eed95cbf257616712d7c34d9ffcb7c2f6 (patch)
treea5b86864e40e06d382f0a1cad1dc4fc74d8117a8 /mail
parenta50671ac25983325aa76dbba134dcb07cb8362a8 (diff)
downloadpkgsrc-7782bc2eed95cbf257616712d7c34d9ffcb7c2f6.tar.gz
Fix build on SunOS (needs explicit -lsocket -lnsl and support LDFLAGS).
Diffstat (limited to 'mail')
-rw-r--r--mail/netbiff/Makefile4
-rw-r--r--mail/netbiff/distinfo3
-rw-r--r--mail/netbiff/patches/patch-Makefile24
3 files changed, 29 insertions, 2 deletions
diff --git a/mail/netbiff/Makefile b/mail/netbiff/Makefile
index 5a4b23725bd..740eefa08ff 100644
--- a/mail/netbiff/Makefile
+++ b/mail/netbiff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2014/05/05 00:48:06 ryoon Exp $
+# $NetBSD: Makefile,v 1.30 2014/08/21 14:02:49 jperkin Exp $
#
DISTNAME= netbiff-0.9.18
@@ -12,6 +12,8 @@ COMMENT= Xbiff-like mail notification, handles multiple mailboxes
USE_TOOLS+= pkg-config
+LDFLAGS.SunOS+= -lsocket -lnsl
+
SUBST_CLASSES+= fix-path
SUBST_FILES.fix-path+= conf-home
SUBST_STAGE.fix-path= pre-configure
diff --git a/mail/netbiff/distinfo b/mail/netbiff/distinfo
index cc804b4ecd3..2a2016293d9 100644
--- a/mail/netbiff/distinfo
+++ b/mail/netbiff/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/11/03 16:47:50 rillig Exp $
+$NetBSD: distinfo,v 1.2 2014/08/21 14:02:49 jperkin Exp $
SHA1 (netbiff-0.9.18.tar.gz) = 5163fdc8887d9435d3780ec3d854f0da728db05f
RMD160 (netbiff-0.9.18.tar.gz) = d59c0e8a764ba00cb72868322955ca9b8838df89
Size (netbiff-0.9.18.tar.gz) = 27319 bytes
+SHA1 (patch-Makefile) = 51dd6e2885e584988c2f4919a7be746d5cd85de9
diff --git a/mail/netbiff/patches/patch-Makefile b/mail/netbiff/patches/patch-Makefile
new file mode 100644
index 00000000000..4f91677d329
--- /dev/null
+++ b/mail/netbiff/patches/patch-Makefile
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2014/08/21 14:02:49 jperkin Exp $
+
+Support LDFLAGS.
+
+--- Makefile.orig 2005-02-07 08:51:08.000000000 +0000
++++ Makefile
+@@ -112,7 +112,7 @@ defaults.h gui.h home.h proto.h xlib.h
+
+ netbiffd-file: \
+ load netbiffd-file.o nbproto.o util.o
+- ./load netbiffd-file nbproto.o util.o
++ ./load netbiffd-file nbproto.o util.o ${LDFLAGS}
+
+ netbiffd-file.o: \
+ compile netbiffd-file.c nbproto.h
+@@ -120,7 +120,7 @@ compile netbiffd-file.c nbproto.h
+
+ netbiffd-imap: \
+ load netbiffd-imap.o nbproto.o imap.o util.o ssl.lib
+- ./load netbiffd-imap nbproto.o imap.o util.o `cat ssl.lib`
++ ./load netbiffd-imap nbproto.o imap.o util.o `cat ssl.lib` ${LDFLAGS}
+
+ netbiffd-imap.o: \
+ compile netbiffd-imap.c imap.h nbproto.h