head	1.11;
access;
symbols
	RELEASE_5_4_0:1.10
	RELEASE_4_11_0:1.10
	RELEASE_5_3_0:1.10
	RELEASE_4_10_0:1.10
	RELEASE_5_2_1:1.10
	RELEASE_5_2_0:1.10
	RELEASE_4_9_0:1.7
	RELEASE_5_1_0:1.7
	RELEASE_4_8_0:1.7
	RELEASE_5_0_0:1.6
	RELEASE_4_7_0:1.5
	RELEASE_4_6_2:1.4
	RELEASE_4_6_1:1.4
	RELEASE_4_6_0:1.4
	RELEASE_5_0_DP1:1.4
	RELEASE_4_5_0:1.4
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.1.1.1
	RELEASE_3_4_0:1.1.1.1
	RELEASE_3_3_0:1.1.1.1
	v_1_3:1.1.1.1
	KBYANC:1.1.1;
locks; strict;
comment	@# @;


1.11
date	2005.07.28.18.11.28;	author jhay;	state dead;
branches;
next	1.10;

1.10
date	2003.11.25.18.02.41;	author jhay;	state Exp;
branches;
next	1.9;

1.9
date	2003.11.24.19.00.54;	author jhay;	state Exp;
branches;
next	1.8;

1.8
date	2003.11.24.18.16.30;	author jhay;	state Exp;
branches;
next	1.7;

1.7
date	2003.02.28.20.02.53;	author jhay;	state Exp;
branches;
next	1.6;

1.6
date	2002.11.19.12.43.02;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2002.06.07.18.23.52;	author kbyanc;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.04.05.57.04;	author kbyanc;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.09.09.57.08;	author kbyanc;	state Exp;
branches;
next	1.2;

1.2
date	2000.04.29.23.49.03;	author steve;	state Exp;
branches;
next	1.1;

1.1
date	99.08.14.22.08.35;	author cpiazza;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.08.14.22.08.35;	author cpiazza;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Update to nqc-3.1.r2.
@
text
@--- Makefile.orig	Sun Nov  9 06:14:20 2003
+++ Makefile	Tue Nov 25 19:51:54 2003
@@@@ -28,20 +28,20 @@@@
 #
 # Pick your C++ compiler. 
 #
-CC=g++
+CXX?=${CXX}
 # CC=gcc
 
 #
 # Pick your YACC processor
 #
-YACC = bison -y
-# YACC = yacc
+# YACC = bison -y
+YACC ?= yacc
 
 #
 # Define the FLEX processor
 #    note - lex will not work
 #
-FLEX = flex
+FLEX ?= flex
 
 # Link in any necessary C++ libraries
 #
@@@@ -50,19 +50,20 @@@@
 
 
 # installation information
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/man/man1
+PREFIX?=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/man/man1
 MANEXT=1
 
 
 # other commands
-CP=cp -f
-MKDIR=mkdir
-MV=mv -f
-RM=rm -f
+CP?=cp -f
+MKDIR?=mkdir
+MV?=mv -f
+RM?=rm -f
 
 # CFLAGS
-CFLAGS = -pipe -Iplatform -Ircxlib -Inqc -Icompiler -Wall -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -Iplatform -Ircxlib -Inqc -Icompiler
 
 USBOBJ = rcxlib/RCX_USBTowerPipe_none.o
 
@@@@ -87,18 +88,23 @@@@
   # Solaris
   CFLAGS += -DSOLARIS
 else
+ifneq (,$(strip $(findstring $(OSTYPE), FreeBSD)))
+  # FreeBSD
+  USBOBJ = rcxlib/RCX_USBTowerPipe_fbsd.o
+else
   # default Unix build without USB support
   CFLAGS += -O6
 endif
 endif
 endif
+endif
 
 
 # this must happen after the platform tweaks just in case the platform
 # wants to redefine the default serial name
 #
 ifndef DEFAULT_SERIAL_NAME
-  DEFAULT_SERIAL_NAME = "/dev/ttyS0"
+  DEFAULT_SERIAL_NAME = "/dev/cuaa0"
 endif
 CFLAGS += -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
 
@@@@ -150,10 +156,10 @@@@
 	$(MKDIR) bin
 
 bin/nqc : compiler/parse.cpp $(OBJ)
-	$(CC) -o $@@ $(OBJ) $(LIBS)
+	$(CXX) -o $@@ $(OBJ) $(LIBS)
 
 bin/mkdata : mkdata/mkdata.cpp nqc/SRecord.cpp
-	$(CC) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
+	$(CXX) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
 
 #
 # clean up stuff
@@@@ -213,7 +219,7 @@@@
 # general rule for compiling
 #
 .cpp.o:
-	$(CC) -c $(CFLAGS) $< -o $*.o 
+	$(CXX) -c $(CFLAGS) $< -o $*.o 
 
 
 #
@


1.10
log
@Upgrade to nqc 2.5 r3. The old distfile has gone away.

Approved by: portmgr (marcus)
@
text
@@


1.9
log
@Backout my upgrade to nqc 2.5 r3. We are in a code freeze.
@
text
@d1 2
a2 2
--- Makefile.orig	Tue Jan 28 06:24:21 2003
+++ Makefile	Thu Jan 30 20:19:25 2003
d28 1
a28 1
@@@@ -50,21 +50,22 @@@@
d54 1
a54 2
-USBOBJ = rcxlib/RCX_USBTowerPipe_none.o
+USBOBJ = rcxlib/RCX_USBTowerPipe_fbsd.o
d56 1
a56 4
 #
 # Platform specific tweaks
@@@@ -78,9 +79,6 @@@@
 ifeq ($TARGET),solaris)
d59 8
a66 3
-else
-  # default - works for Linux
-  CFLAGS += -O6
d69 2
d72 1
a72 1
@@@@ -88,7 +86,7 @@@@
d81 1
a81 1
@@@@ -140,10 +138,10 @@@@
d94 1
a94 1
@@@@ -203,7 +201,7 @@@@
@


1.8
log
@Update to nqc 2.5 r3.
@
text
@d1 2
a2 2
--- Makefile.orig	Sun Nov  9 06:14:20 2003
+++ Makefile	Mon Nov 24 19:57:31 2003
a56 1
 	
d58 3
a60 1
@@@@ -87,18 +88,23 @@@@
d63 3
a65 7
 else
+ifneq (,$(strip $(findstring $(OSTYPE), FreeBSD)))
+  # FreeBSD
+  # Don't need to set anything
+else
   # default Unix build without USB support
   CFLAGS += -O6
a67 3
 endif
+endif
 
d69 1
a69 1
 # this must happen after the platform tweaks just in case the platform
d78 1
a78 1
@@@@ -150,10 +156,10 @@@@
d91 1
a91 1
@@@@ -213,7 +219,7 @@@@
@


1.7
log
@After nudging from the current maintainer, take over maintainership.
De pkg-comment.
Update to ver. 2.5.a5.
Add FreeBSD support for the USB IR Lego Tower.
@
text
@d1 2
a2 2
--- Makefile.orig	Tue Jan 28 06:24:21 2003
+++ Makefile	Thu Jan 30 20:19:25 2003
d57 1
d59 1
a59 3
 # Platform specific tweaks
@@@@ -78,9 +79,6 @@@@
 ifeq ($TARGET),solaris)
d62 7
a68 3
-else
-  # default - works for Linux
-  CFLAGS += -O6
d71 3
d75 1
a75 1
@@@@ -88,7 +86,7 @@@@
d84 1
a84 1
@@@@ -140,10 +138,10 @@@@
d97 1
a97 1
@@@@ -203,7 +201,7 @@@@
@


1.6
log
@(at least it compiles again, but it's still full of the gcc 3.2.1 warnings).
Noticed on: bento
@
text
@d1 2
a2 2
--- Makefile.orig	Sun Mar 24 23:34:39 2002
+++ Makefile	Tue Nov 19 13:35:48 2002
d28 1
a28 1
@@@@ -50,19 +50,20 @@@@
d54 2
a55 1
 USBOBJ = rcxlib/RCX_USBTowerPipe_none.o
d57 2
d69 1
a69 1
@@@@ -89,7 +87,7 @@@@
d78 1
a78 1
@@@@ -139,10 +137,10 @@@@
d81 1
a81 1
 bin/nqc : compiler/parse.cpp $(OBJ) bin
d85 1
a85 1
 bin/mkdata : mkdata/mkdata.cpp nqc/SRecord.cpp bin
d91 1
a91 1
@@@@ -202,7 +200,7 @@@@
@


1.5
log
@Upgrade nqc to version 2.4.r3.
@
text
@d1 2
a2 2
--- Makefile.orig	Sun Mar 24 14:34:39 2002
+++ Makefile	Fri Jun  7 11:11:05 2002
d8 1
a8 1
+CC?=g++
d75 22
@


1.4
log
@Update nqc port to version 2.3r1.

PR:		26923 (with slight modifications)
Submitted by:	"Stephen J. Roznowski" <sjr@@home.com>
@
text
@d1 3
a3 3
--- Makefile.orig	Sun Apr 15 17:56:31 2001
+++ Makefile	Thu May  3 22:43:42 2001
@@@@ -28,14 +28,14 @@@@
d9 1
a9 1
 #CC=gcc
d16 2
a17 2
+#YACC = bison -y
+YACC = yacc
d21 4
a24 1
@@@@ -45,30 +45,30 @@@@
d28 1
a28 2
-# LIBS = -lstdc++
+LIBS = -lstdc++
a29 6
 #
 # Use this to define the default device driver name
 # for serial port connections.
 #
-DEFAULT_SERIAL_NAME = "/dev/ttyS0"
+DEFAULT_SERIAL_NAME = "/dev/cuaa0"
a40 1
-LD=$(CC)
d50 24
a73 6
 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)'
 
 OBJ = $(NQCOBJ) $(COBJ) $(RCXOBJ) $(POBJ)
a74 13
@@@@ -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
 
 #
 # clean up stuff
@


1.3
log
@Update NQC port to version 2.2.r2

PR:		22638
Submitted by:	Stephen J. Roznowski <sjr@@home.net>
@
text
@d1 2
a2 2
--- Makefile.orig	Sun Oct 22 11:26:06 2000
+++ Makefile	Thu Nov  9 01:29:29 2000
d21 8
a28 1
@@@@ -47,24 +47,25 @@@@
a49 1
+LD?=$(LD)
d62 1
a62 1
@@@@ -106,10 +107,10 @@@@
d66 2
a67 2
-	$(LD) -o $@@ $(OBJ)
+	$(CC) -o $@@ $(OBJ) -lstdc++
d69 1
a69 1
-bin/mkdata : mkdata/mkdata.cpp nqc/SRecord.cpp
d71 1
a71 2
+bin/mkdata : mkdata/mkdata.o nqc/SRecord.o
+	$(CC) -o bin/mkdata mkdata/mkdata.o nqc/SRecord.o -lstdc++
@


1.2
log
@Update to version 2.1.r2.

PR:		18294
Submitted by:	Stephen J. Roznowski <sjr@@home.com>
@
text
@d1 3
a3 3
--- Makefile.orig	Sat Mar 25 17:16:58 2000
+++ Makefile	Sat Apr 29 13:06:05 2000
@@@@ -27,14 +27,14 @@@@
d8 1
a8 1
+#CC=g++
d21 1
a21 1
@@@@ -46,7 +46,7 @@@@
d28 8
d38 10
a47 1
@@@@ -58,7 +58,7 @@@@
d56 14
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
--- Makefile.orig	Wed Apr 28 09:27:59 1999
+++ Makefile	Sat Aug 14 14:56:31 1999
d32 1
a32 1
 IFLAGS=-Iplatform -Ircxlib -Inqc
d37 1
a37 1
 OBJ = $(NQCOBJ) $(RCXOBJ) $(POBJ)
@


1.1.1.1
log
@Import of nqc,
A compiler for a simple language for programming the LEGO RCX or CyberMaster
controllers. The language itself is "Not Quite C" and includes preprocessor
and control structures very similar to the C language, but with restrictions
imposed by the limitations of the RCX hardware/firmware itself.

Besides compiling, nqc also provides functions for downloading the RCX
firmware as well as uploading programs to and downloading from the RCX.

PR:		13081
Submitted by:	Kelly Yancey <kbyanc@@posi.net>
@
text
@@
