summaryrefslogtreecommitdiff
path: root/comms/gammu
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-02-16 17:13:03 +0000
committerhans <hans@pkgsrc.org>2012-02-16 17:13:03 +0000
commit9ee4c3a2650f7ad9508adf5a3e7fd1fe9d2971d0 (patch)
treeedcdf31cb1cb57076aeac188e475d4f581205580 /comms/gammu
parent72a8db4870ec9d37f8cd846e39d3fdd2334b4e2d (diff)
downloadpkgsrc-9ee4c3a2650f7ad9508adf5a3e7fd1fe9d2971d0.tar.gz
Fix build on SunOS.
Diffstat (limited to 'comms/gammu')
-rw-r--r--comms/gammu/Makefile4
-rw-r--r--comms/gammu/distinfo3
-rw-r--r--comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c15
3 files changed, 20 insertions, 2 deletions
diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile
index 49a1a8cbc85..7c989caaa54 100644
--- a/comms/gammu/Makefile
+++ b/comms/gammu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/04/22 13:43:09 obache Exp $
+# $NetBSD: Makefile,v 1.7 2012/02/16 17:13:03 hans Exp $
#
.include "Makefile.common"
@@ -33,6 +33,8 @@ REPLACE_BASH= utils/gammu-config utils/jadmaker
# needed because of https://bugs.cihar.com/view.php?id=908
BUILDLINK_TRANSFORM+= rm:-Werror
+LDFLAGS.SunOS+= -lintl
+
.include "../../devel/libusb/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/comms/gammu/distinfo b/comms/gammu/distinfo
index 5b9002e4984..67771144b2a 100644
--- a/comms/gammu/distinfo
+++ b/comms/gammu/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2009/09/09 13:34:54 wiz Exp $
+$NetBSD: distinfo,v 1.7 2012/02/16 17:13:03 hans Exp $
SHA1 (gammu-1.26.1.tar.bz2) = 122886f29c566f72020e91da119e1e04f7bfbec6
RMD160 (gammu-1.26.1.tar.bz2) = a913ac6c999f81ab4fda7c1656232484033ac540
Size (gammu-1.26.1.tar.bz2) = 2113622 bytes
+SHA1 (patch-contrib_smscgi_sms__cgi.c) = c7f40671374294ce90f17541b15529ee4ee649aa
diff --git a/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c b/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c
new file mode 100644
index 00000000000..0af4693a8c6
--- /dev/null
+++ b/comms/gammu/patches/patch-contrib_smscgi_sms__cgi.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-contrib_smscgi_sms__cgi.c,v 1.1 2012/02/16 17:13:03 hans Exp $
+
+--- contrib/smscgi/sms_cgi.c.orig 2009-09-08 09:57:12.000000000 +0200
++++ contrib/smscgi/sms_cgi.c 2012-01-25 19:47:48.177845692 +0100
+@@ -26,6 +26,10 @@
+ #include <signal.h>
+ #include <sys/wait.h>
+
++#ifdef __sun
++#include <alloca.h>
++#endif
++
+ #include "sms_cgi.h"
+
+ /* Some systems let waitpid(2) tell callers about stopped children. */