summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-05-24 02:06:14 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-05-24 02:06:14 +0000
commit3396dea5850cd66ff4d790bd9fbb8906ceafcb0c (patch)
treec45804d96708b59cadc452535ece13a72f426c77 /fonts
parentfe4473a5958b02de5920da6f476b8e4c24e6e9e7 (diff)
downloadpkgsrc-3396dea5850cd66ff4d790bd9fbb8906ceafcb0c.tar.gz
Get this to build on solaris-2.9/sparc. Verified that it didn't break
NetBSD.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/ttmkfdir2/distinfo3
-rw-r--r--fonts/ttmkfdir2/patches/patch-ag23
2 files changed, 25 insertions, 1 deletions
diff --git a/fonts/ttmkfdir2/distinfo b/fonts/ttmkfdir2/distinfo
index 32f22e3e5f0..30a909b0583 100644
--- a/fonts/ttmkfdir2/distinfo
+++ b/fonts/ttmkfdir2/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2005/02/23 19:18:29 agc Exp $
+$NetBSD: distinfo,v 1.8 2007/05/24 02:06:14 dmcmahill Exp $
SHA1 (ttmkfdir2.20021109.tar.bz2) = bee1944ce3e5b6c4503a14e6429737cc558a24c0
RMD160 (ttmkfdir2.20021109.tar.bz2) = 878fb57f80e7223ebb3f4214ed58621a9087e404
@@ -9,3 +9,4 @@ SHA1 (patch-ac) = c29cd845647d67102a89476d931e5ee6bae63078
SHA1 (patch-ad) = 0c328908ffae3397293ff6b00094444e23164788
SHA1 (patch-ae) = 8544a176af1c079405371789955391b400f0154e
SHA1 (patch-af) = 9153a8c65960ce70a176418da2c507370a06d98b
+SHA1 (patch-ag) = 20abaf5147d6770907473e298f3177f6c8e4c131
diff --git a/fonts/ttmkfdir2/patches/patch-ag b/fonts/ttmkfdir2/patches/patch-ag
new file mode 100644
index 00000000000..853c84873d2
--- /dev/null
+++ b/fonts/ttmkfdir2/patches/patch-ag
@@ -0,0 +1,23 @@
+$NetBSD: patch-ag,v 1.1 2007/05/24 02:06:17 dmcmahill Exp $
+
+--- commandline.cpp.orig 2000-01-12 03:31:50.000000000 -0500
++++ commandline.cpp
+@@ -1,6 +1,18 @@
+ #include <cstdlib>
+
+ #define _GNU_SOURCE
++
++// If either _POSIX_SOURCE or _XOPEN_SOURCE are defined
++// then the libgetopt getopt.h will skip defining
++// struct option (for getopt_long)
++#ifdef _POSIX_SOURCE
++#undef _POSIX_SOURCE
++#endif
++
++#ifdef _XOPEN_SOURCE
++#undef _XOPEN_SOURCE
++#endif
++
+ #include <getopt.h>
+
+ #include "commandline.h"