Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2013 11:37:03 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332606 - in head/lang/nqc: . files
Message-ID:  <201311031137.rA3Bb32U043731@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Nov  3 11:37:03 2013
New Revision: 332606
URL: http://svnweb.freebsd.org/changeset/ports/332606

Log:
  lang/npc: Add <unistd.h> to fix on modern compilers.
  
  While here:
   * remove indefinite article from COMMENT
   * make USE_DOS2UNIX unconditional (for all patches)
   * make use of OSVERSION for FreeBSD only
   * convert USE_GMAKE to USES format
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/lang/nqc/files/patch-compiler_lexer.cpp   (contents, props changed)
Modified:
  head/lang/nqc/Makefile

Modified: head/lang/nqc/Makefile
==============================================================================
--- head/lang/nqc/Makefile	Sun Nov  3 11:29:15 2013	(r332605)
+++ head/lang/nqc/Makefile	Sun Nov  3 11:37:03 2013	(r332606)
@@ -9,9 +9,10 @@ MASTER_SITES=	http://bricxcc.sourceforge
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	jhay@FreeBSD.org
-COMMENT=	A compiler for writing programs for the Lego RCX
+COMMENT=	Compiler for writing programs for the Lego RCX
 
-USE_GMAKE=	yes
+USES=		gmake
+USE_DOS2UNIX=	yes
 NO_WRKSUBDIR=	yes
 
 MAN1=		nqc.1
@@ -24,8 +25,7 @@ do-install:
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 800064
-USE_DOS2UNIX=	rcxlib/RCX_USBTowerPipe_fbsd.cpp
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 800064
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-rcxlib-RCX_USBTowerPipe_fbsd.cpp
 .endif
 

Added: head/lang/nqc/files/patch-compiler_lexer.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/nqc/files/patch-compiler_lexer.cpp	Sun Nov  3 11:37:03 2013	(r332606)
@@ -0,0 +1,10 @@
+--- compiler/lexer.cpp.orig	2013-11-03 11:24:46.670522000 +0000
++++ compiler/lexer.cpp
+@@ -11,6 +11,7 @@
+ #define YY_FLEX_MINOR_VERSION 5
+ 
+ #include <stdio.h>
++#include <unistd.h>
+ 
+ #if defined(__MWERKS__) && !__MACH__ && !YY_NEVER_INTERACTIVE
+ #include <unix.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311031137.rA3Bb32U043731>