summaryrefslogtreecommitdiff
path: root/lang/nqc
diff options
context:
space:
mode:
authorKelly Yancey <kbyanc@FreeBSD.org>2002-06-07 18:23:52 +0000
committerKelly Yancey <kbyanc@FreeBSD.org>2002-06-07 18:23:52 +0000
commitf33020c58b24aef9af28595acc4fb1925f58c6dd (patch)
treed86905dc2f40ca6a457e5b77c9c2e402824c576a /lang/nqc
parent- Update to gtoolkit-0.9.5 (diff)
Upgrade nqc to version 2.4.r3.
Notes
Notes: svn path=/head/; revision=60789
Diffstat (limited to 'lang/nqc')
-rw-r--r--lang/nqc/Makefile5
-rw-r--r--lang/nqc/distinfo2
-rw-r--r--lang/nqc/files/patch-aa64
3 files changed, 37 insertions, 34 deletions
diff --git a/lang/nqc/Makefile b/lang/nqc/Makefile
index 41fcd7508d4b..8e2a7f2ab088 100644
--- a/lang/nqc/Makefile
+++ b/lang/nqc/Makefile
@@ -6,12 +6,15 @@
#
PORTNAME= nqc
-PORTVERSION= 2.3.r1
+PORTVERSION= 2.4.r3
CATEGORIES= lang
MASTER_SITES= http://www.enteract.com/~dbaum/nqc/release/
+EXTRACT_SUFX= .tgz
MAINTAINER= kbyanc@FreeBSD.org
+USE_GMAKE= yes
+
MAN1= nqc.1
do-install:
diff --git a/lang/nqc/distinfo b/lang/nqc/distinfo
index eb4941b390ab..62c03a49f299 100644
--- a/lang/nqc/distinfo
+++ b/lang/nqc/distinfo
@@ -1 +1 @@
-MD5 (nqc-2.3.r1.tar.gz) = cba9619516329732933ab8bdc753dc93
+MD5 (nqc-2.4.r3.tgz) = 5fc032b990dc065d523285d9ccab91b4
diff --git a/lang/nqc/files/patch-aa b/lang/nqc/files/patch-aa
index 0c0e5d26d923..7abd91e34a20 100644
--- a/lang/nqc/files/patch-aa
+++ b/lang/nqc/files/patch-aa
@@ -1,36 +1,32 @@
---- Makefile.orig Sun Apr 15 17:56:31 2001
-+++ Makefile Thu May 3 22:43:42 2001
-@@ -28,14 +28,14 @@
+--- Makefile.orig Sun Mar 24 14:34:39 2002
++++ Makefile Fri Jun 7 11:11:05 2002
+@@ -28,20 +28,20 @@
#
# Pick your C++ compiler.
#
-CC=g++
+CC?=g++
- #CC=gcc
+ # CC=gcc
#
# Pick your YACC processor
#
-YACC = bison -y
-# YACC = yacc
-+#YACC = bison -y
-+YACC = yacc
++# YACC = bison -y
++YACC ?= yacc
#
# Define the FLEX processor
-@@ -45,30 +45,30 @@
+ # note - lex will not work
+ #
+-FLEX = flex
++FLEX ?= flex
# Link in any necessary C++ libraries
#
--# LIBS = -lstdc++
-+LIBS = -lstdc++
+@@ -50,19 +50,20 @@
- #
- # Use this to define the default device driver name
- # for serial port connections.
- #
--DEFAULT_SERIAL_NAME = "/dev/ttyS0"
-+DEFAULT_SERIAL_NAME = "/dev/cuaa0"
# installation information
-BINDIR=/usr/local/bin
@@ -42,7 +38,6 @@
# other commands
--LD=$(CC)
-CP=cp -f
-MKDIR=mkdir
-MV=mv -f
@@ -52,23 +47,28 @@
+MV?=mv -f
+RM?=rm -f
- IFLAGS=-Iplatform -Ircxlib -Inqc -Icompiler
- WFLAGS=-Wall -Wstrict-prototypes -Wmissing-prototypes
--CFLAGS = -O6 -pipe $(IFLAGS) $(WFLAGS) -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
-+CFLAGS += $(IFLAGS) $(WFLAGS) -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
+ # CFLAGS
+-CFLAGS = -pipe -Iplatform -Ircxlib -Inqc -Icompiler -Wall -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Iplatform -Ircxlib -Inqc -Icompiler
- OBJ = $(NQCOBJ) $(COBJ) $(RCXOBJ) $(POBJ)
+ USBOBJ = rcxlib/RCX_USBTowerPipe_none.o
-@@ -111,10 +111,10 @@
- $(MKDIR) bin
-
- bin/nqc : compiler/parse.cpp $(OBJ)
-- $(LD) -o $@ $(OBJ) $(LIBS)
-+ $(CC) -o $@ $(OBJ) $(LIBS)
-
- bin/mkdata : mkdata/mkdata.cpp nqc/SRecord.cpp
-- $(LD) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
-+ $(CC) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
+@@ -78,9 +79,6 @@
+ ifeq ($TARGET),solaris)
+ # Solaris
+ CFLAGS += -DSOLARIS
+-else
+- # default - works for Linux
+- CFLAGS += -O6
+ endif
+ endif
+@@ -89,7 +87,7 @@
+ # wants to redefine the default serial name
#
- # clean up stuff
+ ifndef DEFAULT_SERIAL_NAME
+- DEFAULT_SERIAL_NAME = "/dev/ttyS0"
++ DEFAULT_SERIAL_NAME = "/dev/cuaa0"
+ endif
+ CFLAGS += -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
+