summaryrefslogtreecommitdiff
path: root/devel/nqc
diff options
context:
space:
mode:
authorjoerg <joerg>2009-02-17 19:13:46 +0000
committerjoerg <joerg>2009-02-17 19:13:46 +0000
commitd7820f830fce3ac0c95584d91804c313af0721c8 (patch)
tree0d2e54e820a857c8dcdeffe539490c0ed7157c7f /devel/nqc
parentc5136df2847fa391f847ac1ea7dce2415f169a86 (diff)
downloadpkgsrc-d7820f830fce3ac0c95584d91804c313af0721c8.tar.gz
Fix LP64 build. Add DESTDIR support
Diffstat (limited to 'devel/nqc')
-rw-r--r--devel/nqc/Makefile7
-rw-r--r--devel/nqc/distinfo4
-rw-r--r--devel/nqc/patches/patch-ab22
-rw-r--r--devel/nqc/patches/patch-ac13
4 files changed, 44 insertions, 2 deletions
diff --git a/devel/nqc/Makefile b/devel/nqc/Makefile
index 4505f063902..b03338aaa21 100644
--- a/devel/nqc/Makefile
+++ b/devel/nqc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/10/04 21:35:59 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2009/02/17 19:13:46 joerg Exp $
#
DISTNAME= nqc-2.3.r1
@@ -10,7 +10,12 @@ MAINTAINER= nathanw@NetBSD.org
HOMEPAGE= http://bricxcc.sourceforge.net/nqc/
COMMENT= Development system for the Lego Mindstorms RCX embedded computer
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_LANGUAGES= c++
USE_TOOLS+= flex yacc
+INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
+ MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/nqc/distinfo b/devel/nqc/distinfo
index 4dfe8d0aa37..58ad62315f3 100644
--- a/devel/nqc/distinfo
+++ b/devel/nqc/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 22:24:22 agc Exp $
+$NetBSD: distinfo,v 1.5 2009/02/17 19:13:46 joerg Exp $
SHA1 (nqc-2.3.r1.tar.gz) = 40adcd87c12fc23c600899a6a704620ef2208488
RMD160 (nqc-2.3.r1.tar.gz) = 2f7a435a99cb207814a8f357b701b1cc1fee2964
Size (nqc-2.3.r1.tar.gz) = 193028 bytes
SHA1 (patch-aa) = 0682d30f8c98e6b152e7227d5526a79bff91707b
+SHA1 (patch-ab) = 6fbe6b629ac170475cfeffb8848ba8337d4a13cd
+SHA1 (patch-ac) = d189cbbae24c2aba43aab100c4bb19c2ee24b89f
diff --git a/devel/nqc/patches/patch-ab b/devel/nqc/patches/patch-ab
new file mode 100644
index 00000000000..f0119dc608e
--- /dev/null
+++ b/devel/nqc/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2009/02/17 19:13:46 joerg Exp $
+
+--- compiler/Error.h.orig 2009-02-17 20:01:36.000000000 +0100
++++ compiler/Error.h
+@@ -89,7 +89,7 @@ public:
+ };
+
+ Error(ErrorCode code, int data=0) : fCode(code), fData(data) {}
+- Error(ErrorCode code, const char *s) : fCode(code), fData((int)s) {}
++ Error(ErrorCode code, const char *s) : fCode(code), fData((size_t)s) {}
+
+ // raising errors
+ void Raise(const LexLocation *loc) const; // raise error at specified location
+@@ -104,7 +104,7 @@ public:
+
+ private:
+ ErrorCode fCode;
+- int fData;
++ size_t fData;
+ };
+
+
diff --git a/devel/nqc/patches/patch-ac b/devel/nqc/patches/patch-ac
new file mode 100644
index 00000000000..5d968cbb8d5
--- /dev/null
+++ b/devel/nqc/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2009/02/17 19:13:46 joerg Exp $
+
+--- compiler/Error.cpp.orig 2001-04-16 02:56:29.000000000 +0200
++++ compiler/Error.cpp
+@@ -129,7 +129,7 @@ bool Error::IsDeprecated() const
+ void Error::SPrint(char *str) const
+ {
+ if (fCode < 0 || fCode >= (ErrorCode)(sizeof(sErrorText) / sizeof(const char *)))
+- sprintf(str, "internal error #%d", fCode);
++ sprintf(str, "internal error #%d", (int)fCode);
+ else
+ sprintf(str, sErrorText[fCode], fData);
+ }