diff options
author | Rene Ladan <rene@FreeBSD.org> | 2010-04-26 18:59:34 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2010-04-26 18:59:34 +0000 |
commit | e9816e98d3eada911beecacff95806f90f11a0cb (patch) | |
tree | 126670a6dfc42612f3825a43bd56ca69ba464be7 /lang/nbc | |
parent | e1ef49a8bff34f0d7969e3935c3cc0bac88d4ca7 (diff) | |
download | ports-e9816e98d3eada911beecacff95806f90f11a0cb.tar.gz ports-e9816e98d3eada911beecacff95806f90f11a0cb.zip |
Notes
Diffstat (limited to 'lang/nbc')
-rw-r--r-- | lang/nbc/Makefile | 53 | ||||
-rw-r--r-- | lang/nbc/distinfo | 6 |
2 files changed, 42 insertions, 17 deletions
diff --git a/lang/nbc/Makefile b/lang/nbc/Makefile index e00fdb8e7bb8..5c4b540737ab 100644 --- a/lang/nbc/Makefile +++ b/lang/nbc/Makefile @@ -6,42 +6,67 @@ # PORTNAME= nbc -PORTVERSION= 1.0.1.b34 -PORTREVISION= 1 +PORTVERSION= 1.0.1.b36 CATEGORIES= lang -MASTER_SITES= SF/bricxcc/NBC_NXC/NBC%20beta%2034 -DISTNAME= ${PORTNAME}-${PORTVERSION}.src +MASTER_SITES= http://bricxcc.sourceforge.net/nbc/beta/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.unix-src EXTRACT_SUFX= .tgz MAINTAINER= rambiusparkisanius@gmail.com COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product +OPTIONS= ROBOCTL "Include roboctl to communicate with the NXT" off + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_ROBOCTL) RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl +.endif + +.if ${OSVERSION} < 800069 +LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb +.endif USE_GMAKE= yes USE_DOS2UNIX= yes -USE_FPC= fcl-base +USE_FPC= fcl-base fcl-image -MAKEFILE= nbcfreebsd.mak SUB_FILES= pkg-message -WRKSRC= ${WRKDIR}/nxt +WRKSRC= ${WRKDIR}/NXT 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 +PLIST_DIRS= include/nbc + +.if !defined(NOPORTDOCS) +PORTDOCS= Changelog \ + Readme +.endif + +.if !defined(NO_INSTALL_MANPAGES) +MAN1= nbc.1 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/Makefile do-install: - ${MKDIR} ${PREFIX}/include/nbc ${PREFIX}/share/nbc + ${MKDIR} ${PREFIX}/include/nbc ${INSTALL_PROGRAM} ${WRKSRC}/nbc ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/nbc - ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/nbc +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/doc/Readme ${DOCSDIR} +.endif +.if !defined(NO_INSTALL_MANPAGES) + ${INSTALL_MAN} ${WRKDIR}/doc/nbc.1 ${MANPREFIX}/man/man1 +.endif post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/lang/nbc/distinfo b/lang/nbc/distinfo index 3cd6ee8ce2a8..cc224b6fe93e 100644 --- a/lang/nbc/distinfo +++ b/lang/nbc/distinfo @@ -1,3 +1,3 @@ -MD5 (nbc-1.0.1.b34.src.tgz) = 0886e4f420fe1e6b23e4ec5a92dc9a9f -SHA256 (nbc-1.0.1.b34.src.tgz) = 072e43b6ec064ecc2dee79ddcd867368e84a3c76a13f5bff6119499b971d2062 -SIZE (nbc-1.0.1.b34.src.tgz) = 363302 +MD5 (nbc-1.0.1.b36.unix-src.tgz) = 16c63352b6d05aec4ab619b88649b978 +SHA256 (nbc-1.0.1.b36.unix-src.tgz) = ea3f47de9be7fdb317a2363250e2f5a63d1a58ca67e06f13766ef808324e4e34 +SIZE (nbc-1.0.1.b36.unix-src.tgz) = 361112 |