diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2008-05-16 15:05:26 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2008-05-16 15:05:26 +0000 |
commit | 899c5f60959710b51d1ace67b5e4badffa1aefa1 (patch) | |
tree | f42d86140318eab9121038358c8213682f8ed654 /lang/nbc | |
parent | - Update to 0.1.6. (diff) |
New port: lang/nbc
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/
PR: 116274
Submitted by: Ivan "Rambius" Ivanov <rambiusparkisanius_ at __gmail.com>
Notes
Notes:
svn path=/head/; revision=213151
Diffstat (limited to 'lang/nbc')
-rw-r--r-- | lang/nbc/Makefile | 62 | ||||
-rw-r--r-- | lang/nbc/distinfo | 3 | ||||
-rw-r--r-- | lang/nbc/files/pkg-message.in | 6 | ||||
-rw-r--r-- | lang/nbc/pkg-descr | 7 |
4 files changed, 78 insertions, 0 deletions
diff --git a/lang/nbc/Makefile b/lang/nbc/Makefile new file mode 100644 index 000000000000..b04a6c81c429 --- /dev/null +++ b/lang/nbc/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: nbcx +# Date created: 4 April 2007 +# Whom: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com> +# Jason Bacon <jwbacon@tds.net> +# $FreeBSD$ +# + +PORTNAME= nbc +PORTVERSION= 1.0.1.b32 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= bricxcc +DISTNAME= ${PORTNAME}-${PORTVERSION}.src +EXTRACT_SUFX= .tgz + +MAINTAINER= rambiusparkisanius@gmail.com +COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product + +BUILD_DEPENDS= fpc:${PORTSDIR}/lang/fpc \ + ${UNITSDIR}/fcl-base/Package.fpc:${PORTSDIR}/devel/fpc-fcl-base +RUN_DEPENDS= legoctl:${PORTSDIR}/devel/legoctl + +USE_GMAKE= yes +USE_DOS2UNIX= yes + +MAKEFILE= nbcfreebsd.mak +SUB_FILES= pkg-message +WRKSRC= ${WRKDIR}/nxt + +BUILDNAME= ${ARCH}-freebsd +FPC_MINVER= 2.2.0 +UNITSDIR= ${LOCALBASE}/lib/fpc/${FPC_MINVER}/units/${BUILDNAME} + +PLIST_FILES= bin/nbc \ + share/nbc/history.txt \ + share/nbc/readme.txt \ + include/nbc/NXCDefs.h \ + include/nbc/NBCCommon.h \ + include/nbc/NXTDefs.h +PLIST_DIRS= share/nbc \ + include/nbc + +post-depends: +.if exists(${LOCALBASE}/bin/fpc) +FPC_VER!= ${LOCALBASE}/bin/fpc -iV +FPC_REQVER!= ${ECHO_CMD} $$(expr ${FPC_VER:C/^[^\.]*\.//} \>= ${FPC_MINVER:C/^[^\.]*\.//}) + +.if (${FPC_REQVER} != 1) +IGNORE= requires fpc ${FPC_MINVER} or above. Please upgrade +.endif +.endif + +do-install: + ${MKDIR} ${PREFIX}/include/nbc ${PREFIX}/share/nbc + ${INSTALL_PROGRAM} ${WRKSRC}/nbc ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/nbc + ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/nbc + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/lang/nbc/distinfo b/lang/nbc/distinfo new file mode 100644 index 000000000000..239d7371d551 --- /dev/null +++ b/lang/nbc/distinfo @@ -0,0 +1,3 @@ +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 diff --git a/lang/nbc/files/pkg-message.in b/lang/nbc/files/pkg-message.in new file mode 100644 index 000000000000..ccf54a13ad69 --- /dev/null +++ b/lang/nbc/files/pkg-message.in @@ -0,0 +1,6 @@ +############################################################################### + +1) Please visit http://bricxcc.sourceforge.net/nbc/ for documentation +2) Enjoy it ;) + +############################################################################### diff --git a/lang/nbc/pkg-descr b/lang/nbc/pkg-descr new file mode 100644 index 000000000000..382e8939a53d --- /dev/null +++ b/lang/nbc/pkg-descr @@ -0,0 +1,7 @@ +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/ |