FreeBSD Bugzilla – Attachment 81177 Details for
Bug 116274
New port: lang/nbc NBC is a programming language for the LEGO MINDSTORMS NXT product
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nbc.diff
nbc.diff (text/x-diff; charset="us-ascii"), 6.67 KB, created by
iivanov
on 2008-01-23 06:47:07 UTC
(
hide
)
Description:
nbc.diff
Filename:
MIME Type:
Creator:
iivanov
Created:
2008-01-23 06:47:07 UTC
Size:
6.67 KB
patch
obsolete
>diff -ruN nbc.bak/Makefile nbc/Makefile >--- nbc.bak/Makefile 2008-01-22 20:14:20.000000000 +0200 >+++ nbc/Makefile 2008-01-22 20:23:32.000000000 +0200 >@@ -16,8 +16,21 @@ > MAINTAINER= rambiusparkisanius@gmail.com > COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product > >-BUILD_DEPENDS= fpc:${PORTSDIR}/lang/fpc \ >- ${LOCALBASE}/lib/fpc/2.0.4/units/i386-freebsd/fcl:${PORTSDIR}/devel/fpc-fcl >+.include <bsd.port.pre.mk> >+ >+BUILD_DEPENDS= fpc:${PORTSDIR}/lang/fpc >+.if exists(${PORTSDIR}/devel/fpc-fcl-fpcunit) >+# Is there a way to avoid hard-coding FPCVERSION? Can it be extracted from >+# ${PORTSDIR}/lang/fpc/Makefile on-the-fly? We don't really care which >+# fpc port is used, but the dependency for fpc-fcl has an unavoidably >+# version-specific path. ( Everything in fpc-fcl-base/pkg-plist has the >+# port version and cpu architecture in it. ) >+FPCVERSION= 2.2.0 >+BUILD_DEPENDS+= ${LOCALBASE}/lib/fpc/${FPCVERSION}/units/i386-freebsd/fcl-base:${PORTSDIR}/devel/fpc-fcl-base >+.else >+BUILD_DEPENDS+= mkxmlrpc:${PORTSDIR}/devel/fpc-fcl >+.endif >+ > RUN_DEPENDS= legoctl:${PORTSDIR}/devel/legoctl > > WRKSRC= ${WRKDIR}/nxt >@@ -61,4 +74,4 @@ > post-install: > @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff -ruN nbc.bak/files/fpc.options nbc/files/fpc.options >--- nbc.bak/files/fpc.options 2008-01-22 20:14:20.000000000 +0200 >+++ nbc/files/fpc.options 2007-05-23 22:57:20.000000000 +0300 >@@ -1,173 +1,5 @@ >- 'END-of-/usr/ports/lang/nbc/files/fpc.options' > # This file is auto-generated by 'make config'. > # No user-servicable parts inside! > # Options for fpc-ibase-2.0.4_1 > _OPTIONS_READ=fpc-ibase-2.0.4_1 > WITHOUT_IBASE=true >-END-of-/usr/ports/lang/nbc/files/fpc.options >-echo x - /usr/ports/lang/nbc/files/nbc.1 >-sed 's/^X//' >/usr/ports/lang/nbc/files/nbc.1 <<EOF >- 'END-of-/usr/ports/lang/nbc/files/nbc.1' >-.TH NBC 1 >-.SH NAME \" Section header >-.PP >- >-NBC - NXT Byte Codes and Not eXactly C >- >-\" Convention: >-\" Underline anything that is typed verbatim - commands, etc. >-.SH SYNOPSIS >-.PP >-.nf >-.na >-nbc [flags] source-file.nbc >-nbc -help >- >-nxc [flags] source-file.nxc >-nxc -help >-.ad >-.fi >- >-\" Optional sections >-.SH "DESCRIPTION" >- >-NBC (NXT Byte Codes) is an assembly language for the Lego NXT robotic >-system. NXC (Not eXactly C) is a high-level programming language similar >-to the C language, for >-the NXT system. NXC is built on top of NBC. These languages offer >-an alternative to the drag-and-drop programming interfaces of the Lego >-Mindstorms and Robolab software. The drag-and-drop systems are probably >-easier for non-programmers to learn, but NBC and NXC provide more >-programming flexibility, and full access to the functionality of the NXT >-computer. >- >-NXC is similar to NQC (Not Quite C), a popular programming language for >-the Original Lego Mindstorms RCX computer. >- >-For full documentation on these languages, please visit the WEB site: >-http://bricxcc.sourceforge.net/nbc/. >- >-.SH OPTIONS >-.TP >-.B -x >-decompiles a program >-.TP >-.B -Z[1|2] >-turns on compiler optimizations >-.TP >-.B -O=<outfile> >-specify output file >-.TP >-.B -E=<filename> >-write compiler errors to <filename> >-.TP >-.B -I=<path> >-search <path> for include files >-.TP >-.B -nbc=<filename> >-save NXC intermediate NBC code to <filename> >-.TP >-.B -L=<filename> >-generate code listing to <filename> >-.TP >-.B -Y=<filename> >-generate symbol table to <filename> >-.TP >-.B -w[-|+] >-warnings off or on [default is off] >- >-.SH "SEE ALSO" >-nqc(1), legochat(1), linxt(1) >- >-.SH AUTHOR >-.nf >-.na >-John Hansen >- >-END-of-/usr/ports/lang/nbc/files/nbc.1 >-echo x - /usr/ports/lang/nbc/distinfo >-sed 's/^X//' >/usr/ports/lang/nbc/distinfo <<EOF >- 'END-of-/usr/ports/lang/nbc/distinfo' >-MD5 (nbc-1.0.1.b32.src.tgz) = d82928f6935367a3d648fbd3f9dc049f >-SHA256 (nbc-1.0.1.b32.src.tgz) = 80e0f69e5b103b5c2da8f748b194017e3a7ab11d0e6c5fc8ead9c2b23bd035f8 >-SIZE (nbc-1.0.1.b32.src.tgz) = 348768 >-END-of-/usr/ports/lang/nbc/distinfo >-echo x - /usr/ports/lang/nbc/pkg-message >-sed 's/^X//' >/usr/ports/lang/nbc/pkg-message <<EOF >- 'END-of-/usr/ports/lang/nbc/pkg-message' >- >-Please visit http://bricxcc.sourceforge.net/nbc/ for documentation on NBC. >-END-of-/usr/ports/lang/nbc/pkg-message >-echo x - /usr/ports/lang/nbc/pkg-descr >-sed 's/^X//' >/usr/ports/lang/nbc/pkg-descr <<EOF >- 'END-of-/usr/ports/lang/nbc/pkg-descr' >-NBC (Next Byte Codes) is a programming language for the LEGO >-MINDSTORMS NXT product. NBC's syntax is based on assembler programming >-langauges, so experienced assembler programmers (or just about any >-programmers) should find it very easy to get started with. Even if you >-aren't an experienced programmer, NBC is relatively easy to learn. >- >-WWW: http://bricxcc.sourceforge.net/nbc/ >-END-of-/usr/ports/lang/nbc/pkg-descr >-echo x - /usr/ports/lang/nbc/Makefile >-sed 's/^X//' >/usr/ports/lang/nbc/Makefile <<EOF >- 'END-of-/usr/ports/lang/nbc/Makefile' >-# New ports collection makefile for: nbcx >-# Date created: 4 April 2007 >-# Whom: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>, Jason Bacon <jwbacon@tds.net> >-# >-# $ >-# >- >-PORTNAME= nbc >-PORTVERSION= 1.0.1.b32 >-CATEGORIES= lang >-MASTER_SITES= >-MASTER_SITE_SUBDIR= bricxcc >-DISTNAME= -.src >-EXTRACT_SUFX= .tgz >- >-MAINTAINER= rambiusparkisanius@gmail.com >-COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product >- >-BUILD_DEPENDS= fpc:/lang/fpc X /lib/fpc/2.0.4/units/i386-freebsd/fcl:/devel/fpc-fcl >-RUN_DEPENDS= legoctl:/devel/legoctl >- >-WRKSRC= /nxt >- >-USE_GMAKE= yes >- >-USE_DOS2UNIX= yes >- >-MAN1= nbc.1 nxc.1 >- >-PKG_MESSAGE= pkg-message >- >-PLIST_FILES= bin/nbc X share/nbc/history.txt X share/nbc/readme.txt X include/nbc/NXCDefs.h X include/nbc/NBCCommon.h X include/nbc/NXTDefs.h >- >-post-patch: >- -sf /nbcfreebsd.mak /Makefile >-# fpc-ibase is a dependency, but it won't build with default OPTIONS. >-# Force-disable Firebird client as an fpc-ibase OPTION to allow the >-# dependency builds to complete. >-.if exists(/fpc/options) >- "s|WITH_IBASE=true|WITHOUT_IBASE=true|g" X /fpc/options >-.else >- /fpc >- /fpc.options /fpc/options >-.endif >- >-do-install: >- /include/nbc /man/man1 /share/nbc >- /nbc /bin >- /*.h /include/nbc >- /*.txt /share/nbc >- /nbc.1 /man/man1 >- /nbc.1 /man/man1/nxc.1 >- >-post-install: >- @; ; >- >-.include <bsd.port.mk> >-END-of-/usr/ports/lang/nbc/Makefile >-exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116274
:
81176
| 81177