summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1999-11-10 10:48:29 +0000
committeragc <agc@pkgsrc.org>1999-11-10 10:48:29 +0000
commit9297f8d65ec81f08cb5f6c141bd723d395b9273e (patch)
tree95c0c91f359667e791624fe2f5dfd0e578581235
parent53fe9f03a726efa6abc5644b616cf39a122aec63 (diff)
downloadpkgsrc-9297f8d65ec81f08cb5f6c141bd723d395b9273e.tar.gz
Make this package work on Solaris.
-rw-r--r--devel/cdk/Makefile11
-rw-r--r--devel/cdk/files/patch-sum4
-rw-r--r--devel/cdk/patches/patch-ac26
3 files changed, 32 insertions, 9 deletions
diff --git a/devel/cdk/Makefile b/devel/cdk/Makefile
index fe64f5d7516..974d99b503c 100644
--- a/devel/cdk/Makefile
+++ b/devel/cdk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 1999/08/29 15:29:40 jlam Exp $
+# $NetBSD: Makefile,v 1.5 1999/11/10 10:48:29 agc Exp $
#
DISTNAME= latestCDK
@@ -12,7 +12,6 @@ MAINTAINER= root@garbled.net
HOMEPAGE= http://www.vexus.ca/CDK.html
BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf
-DEPENDS+= ncurses-4.2:../../devel/ncurses
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
@@ -21,6 +20,14 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
ALL_TARGET= default
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+DEPENDS+= ncurses-4.2:../../devel/ncurses
+.elif ${OPSYS} == "SunOS"
+MAKE_ENV+= CPPFLAGS=
+.endif
+
pre-configure:
cd ${WRKSRC}; ${LOCALBASE}/bin/autoconf
diff --git a/devel/cdk/files/patch-sum b/devel/cdk/files/patch-sum
index 93b0341a6ff..816803ed3ec 100644
--- a/devel/cdk/files/patch-sum
+++ b/devel/cdk/files/patch-sum
@@ -1,7 +1,7 @@
-$NetBSD: patch-sum,v 1.2 1999/08/29 15:29:41 jlam Exp $
+$NetBSD: patch-sum,v 1.3 1999/11/10 10:48:30 agc Exp $
MD5 (patch-aa) = e7f5bdff9f83ce835ff9830d0d55dc68
-MD5 (patch-ac) = 4a4f448a1b6a9eb38b6ef63b6a4ad9a2
+MD5 (patch-ac) = 0827f855bfdcc19081d1e93b0d98c316
MD5 (patch-ad) = 0c54b362e9639c0abeefad0ab72eedec
MD5 (patch-ae) = fefdf4bb5773fe95464e82e239fa76c1
MD5 (patch-af) = 39cae69392eeb076420bc17062f3aaf9
diff --git a/devel/cdk/patches/patch-ac b/devel/cdk/patches/patch-ac
index b67284f1df0..d03a7f80357 100644
--- a/devel/cdk/patches/patch-ac
+++ b/devel/cdk/patches/patch-ac
@@ -1,13 +1,29 @@
-$NetBSD: patch-ac,v 1.3 1999/07/06 07:57:22 jlam Exp $
+$NetBSD: patch-ac,v 1.4 1999/11/10 10:48:30 agc Exp $
---- include/cdk.h.orig Wed Dec 9 12:13:17 1998
-+++ include/cdk.h Tue Jul 6 00:56:37 1999
-@@ -38,7 +38,7 @@
+--- include/cdk.h.orig Wed Dec 9 17:13:17 1998
++++ include/cdk.h Wed Nov 10 10:26:45 1999
+@@ -38,7 +38,15 @@
#undef instr
#endif
--#include <curses.h>
++#include <sys/types.h>
++#include <sys/param.h>
++#include <sys/stat.h>
++
++#if (defined(BSD) && BSD >= 199306)
+#include <ncurses.h>
++#else
+ #include <curses.h>
++#endif
#include <stdlib.h>
#include <string.h>
+@@ -49,8 +57,6 @@
+ #include <errno.h>
+ #include <pwd.h>
+ #include <grp.h>
+-#include <sys/stat.h>
+-#include <sys/types.h>
+ #include <math.h>
+
+ /*