|
Lines 1-173
Link Here
|
| 1 |
'END-of-/usr/ports/lang/nbc/files/fpc.options' |
|
|
| 2 |
# This file is auto-generated by 'make config'. |
1 |
# This file is auto-generated by 'make config'. |
| 3 |
# No user-servicable parts inside! |
2 |
# No user-servicable parts inside! |
| 4 |
# Options for fpc-ibase-2.0.4_1 |
3 |
# Options for fpc-ibase-2.0.4_1 |
| 5 |
_OPTIONS_READ=fpc-ibase-2.0.4_1 |
4 |
_OPTIONS_READ=fpc-ibase-2.0.4_1 |
| 6 |
WITHOUT_IBASE=true |
5 |
WITHOUT_IBASE=true |
| 7 |
END-of-/usr/ports/lang/nbc/files/fpc.options |
|
|
| 8 |
echo x - /usr/ports/lang/nbc/files/nbc.1 |
| 9 |
sed 's/^X//' >/usr/ports/lang/nbc/files/nbc.1 <<EOF |
| 10 |
'END-of-/usr/ports/lang/nbc/files/nbc.1' |
| 11 |
.TH NBC 1 |
| 12 |
.SH NAME \" Section header |
| 13 |
.PP |
| 14 |
|
| 15 |
NBC - NXT Byte Codes and Not eXactly C |
| 16 |
|
| 17 |
\" Convention: |
| 18 |
\" Underline anything that is typed verbatim - commands, etc. |
| 19 |
.SH SYNOPSIS |
| 20 |
.PP |
| 21 |
.nf |
| 22 |
.na |
| 23 |
nbc [flags] source-file.nbc |
| 24 |
nbc -help |
| 25 |
|
| 26 |
nxc [flags] source-file.nxc |
| 27 |
nxc -help |
| 28 |
.ad |
| 29 |
.fi |
| 30 |
|
| 31 |
\" Optional sections |
| 32 |
.SH "DESCRIPTION" |
| 33 |
|
| 34 |
NBC (NXT Byte Codes) is an assembly language for the Lego NXT robotic |
| 35 |
system. NXC (Not eXactly C) is a high-level programming language similar |
| 36 |
to the C language, for |
| 37 |
the NXT system. NXC is built on top of NBC. These languages offer |
| 38 |
an alternative to the drag-and-drop programming interfaces of the Lego |
| 39 |
Mindstorms and Robolab software. The drag-and-drop systems are probably |
| 40 |
easier for non-programmers to learn, but NBC and NXC provide more |
| 41 |
programming flexibility, and full access to the functionality of the NXT |
| 42 |
computer. |
| 43 |
|
| 44 |
NXC is similar to NQC (Not Quite C), a popular programming language for |
| 45 |
the Original Lego Mindstorms RCX computer. |
| 46 |
|
| 47 |
For full documentation on these languages, please visit the WEB site: |
| 48 |
http://bricxcc.sourceforge.net/nbc/. |
| 49 |
|
| 50 |
.SH OPTIONS |
| 51 |
.TP |
| 52 |
.B -x |
| 53 |
decompiles a program |
| 54 |
.TP |
| 55 |
.B -Z[1|2] |
| 56 |
turns on compiler optimizations |
| 57 |
.TP |
| 58 |
.B -O=<outfile> |
| 59 |
specify output file |
| 60 |
.TP |
| 61 |
.B -E=<filename> |
| 62 |
write compiler errors to <filename> |
| 63 |
.TP |
| 64 |
.B -I=<path> |
| 65 |
search <path> for include files |
| 66 |
.TP |
| 67 |
.B -nbc=<filename> |
| 68 |
save NXC intermediate NBC code to <filename> |
| 69 |
.TP |
| 70 |
.B -L=<filename> |
| 71 |
generate code listing to <filename> |
| 72 |
.TP |
| 73 |
.B -Y=<filename> |
| 74 |
generate symbol table to <filename> |
| 75 |
.TP |
| 76 |
.B -w[-|+] |
| 77 |
warnings off or on [default is off] |
| 78 |
|
| 79 |
.SH "SEE ALSO" |
| 80 |
nqc(1), legochat(1), linxt(1) |
| 81 |
|
| 82 |
.SH AUTHOR |
| 83 |
.nf |
| 84 |
.na |
| 85 |
John Hansen |
| 86 |
|
| 87 |
END-of-/usr/ports/lang/nbc/files/nbc.1 |
| 88 |
echo x - /usr/ports/lang/nbc/distinfo |
| 89 |
sed 's/^X//' >/usr/ports/lang/nbc/distinfo <<EOF |
| 90 |
'END-of-/usr/ports/lang/nbc/distinfo' |
| 91 |
MD5 (nbc-1.0.1.b32.src.tgz) = d82928f6935367a3d648fbd3f9dc049f |
| 92 |
SHA256 (nbc-1.0.1.b32.src.tgz) = 80e0f69e5b103b5c2da8f748b194017e3a7ab11d0e6c5fc8ead9c2b23bd035f8 |
| 93 |
SIZE (nbc-1.0.1.b32.src.tgz) = 348768 |
| 94 |
END-of-/usr/ports/lang/nbc/distinfo |
| 95 |
echo x - /usr/ports/lang/nbc/pkg-message |
| 96 |
sed 's/^X//' >/usr/ports/lang/nbc/pkg-message <<EOF |
| 97 |
'END-of-/usr/ports/lang/nbc/pkg-message' |
| 98 |
|
| 99 |
Please visit http://bricxcc.sourceforge.net/nbc/ for documentation on NBC. |
| 100 |
END-of-/usr/ports/lang/nbc/pkg-message |
| 101 |
echo x - /usr/ports/lang/nbc/pkg-descr |
| 102 |
sed 's/^X//' >/usr/ports/lang/nbc/pkg-descr <<EOF |
| 103 |
'END-of-/usr/ports/lang/nbc/pkg-descr' |
| 104 |
NBC (Next Byte Codes) is a programming language for the LEGO |
| 105 |
MINDSTORMS NXT product. NBC's syntax is based on assembler programming |
| 106 |
langauges, so experienced assembler programmers (or just about any |
| 107 |
programmers) should find it very easy to get started with. Even if you |
| 108 |
aren't an experienced programmer, NBC is relatively easy to learn. |
| 109 |
|
| 110 |
WWW: http://bricxcc.sourceforge.net/nbc/ |
| 111 |
END-of-/usr/ports/lang/nbc/pkg-descr |
| 112 |
echo x - /usr/ports/lang/nbc/Makefile |
| 113 |
sed 's/^X//' >/usr/ports/lang/nbc/Makefile <<EOF |
| 114 |
'END-of-/usr/ports/lang/nbc/Makefile' |
| 115 |
# New ports collection makefile for: nbcx |
| 116 |
# Date created: 4 April 2007 |
| 117 |
# Whom: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>, Jason Bacon <jwbacon@tds.net> |
| 118 |
# |
| 119 |
# $ |
| 120 |
# |
| 121 |
|
| 122 |
PORTNAME= nbc |
| 123 |
PORTVERSION= 1.0.1.b32 |
| 124 |
CATEGORIES= lang |
| 125 |
MASTER_SITES= |
| 126 |
MASTER_SITE_SUBDIR= bricxcc |
| 127 |
DISTNAME= -.src |
| 128 |
EXTRACT_SUFX= .tgz |
| 129 |
|
| 130 |
MAINTAINER= rambiusparkisanius@gmail.com |
| 131 |
COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product |
| 132 |
|
| 133 |
BUILD_DEPENDS= fpc:/lang/fpc X /lib/fpc/2.0.4/units/i386-freebsd/fcl:/devel/fpc-fcl |
| 134 |
RUN_DEPENDS= legoctl:/devel/legoctl |
| 135 |
|
| 136 |
WRKSRC= /nxt |
| 137 |
|
| 138 |
USE_GMAKE= yes |
| 139 |
|
| 140 |
USE_DOS2UNIX= yes |
| 141 |
|
| 142 |
MAN1= nbc.1 nxc.1 |
| 143 |
|
| 144 |
PKG_MESSAGE= pkg-message |
| 145 |
|
| 146 |
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 |
| 147 |
|
| 148 |
post-patch: |
| 149 |
-sf /nbcfreebsd.mak /Makefile |
| 150 |
# fpc-ibase is a dependency, but it won't build with default OPTIONS. |
| 151 |
# Force-disable Firebird client as an fpc-ibase OPTION to allow the |
| 152 |
# dependency builds to complete. |
| 153 |
.if exists(/fpc/options) |
| 154 |
"s|WITH_IBASE=true|WITHOUT_IBASE=true|g" X /fpc/options |
| 155 |
.else |
| 156 |
/fpc |
| 157 |
/fpc.options /fpc/options |
| 158 |
.endif |
| 159 |
|
| 160 |
do-install: |
| 161 |
/include/nbc /man/man1 /share/nbc |
| 162 |
/nbc /bin |
| 163 |
/*.h /include/nbc |
| 164 |
/*.txt /share/nbc |
| 165 |
/nbc.1 /man/man1 |
| 166 |
/nbc.1 /man/man1/nxc.1 |
| 167 |
|
| 168 |
post-install: |
| 169 |
@; ; |
| 170 |
|
| 171 |
.include <bsd.port.mk> |
| 172 |
END-of-/usr/ports/lang/nbc/Makefile |
| 173 |
exit |