2013-03-06 23:31:58 +00:00
|
|
|
# Created by: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
|
2008-05-16 15:05:26 +00:00
|
|
|
|
|
|
|
PORTNAME= nbc
|
2011-03-15 20:20:10 +00:00
|
|
|
PORTVERSION= 1.2.1.r4
|
2021-08-01 02:03:46 +00:00
|
|
|
PORTREVISION= 19
|
2008-05-16 15:05:26 +00:00
|
|
|
CATEGORIES= lang
|
2015-05-11 18:34:57 +00:00
|
|
|
MASTER_SITES= SF/bricxcc/NBC_NXC/NBC%20release%20${PORTVERSION:S/.r/%20r/}
|
2010-07-12 11:36:10 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2010-08-01 16:47:06 +00:00
|
|
|
MAINTAINER= rene@FreeBSD.org
|
2013-11-19 00:28:02 +00:00
|
|
|
COMMENT= Programming language for the LEGO MINDSTORMS NXT
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2018-06-17 16:15:32 +00:00
|
|
|
LICENSE= MPL11
|
|
|
|
|
2010-10-26 14:33:12 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2011-03-15 20:20:10 +00:00
|
|
|
MAKEFILE= nbcunix.mak
|
2013-11-19 00:28:02 +00:00
|
|
|
WRKSRC= ${WRKDIR}/NXT
|
2010-10-26 14:33:12 +00:00
|
|
|
|
2013-11-19 00:28:02 +00:00
|
|
|
OPTIONS_DEFINE= DOCS ROBOCTL
|
|
|
|
ROBOCTL_DESC= Include roboctl to communicate with the NXT
|
2012-06-05 18:21:30 +00:00
|
|
|
|
2016-04-01 14:08:37 +00:00
|
|
|
ROBOCTL_RUN_DEPENDS= legoctl:devel/roboctl
|
2010-04-26 18:59:34 +00:00
|
|
|
|
2018-04-05 04:52:36 +00:00
|
|
|
USES= dos2unix fpc gmake tar:tgz
|
2015-12-21 11:17:46 +00:00
|
|
|
USE_FPC= fcl-base fcl-image pasjpeg rtl-objpas
|
2008-05-16 15:05:26 +00:00
|
|
|
|
|
|
|
PLIST_FILES= bin/nbc \
|
|
|
|
include/nbc/NXCDefs.h \
|
|
|
|
include/nbc/NBCCommon.h \
|
|
|
|
include/nbc/NXTDefs.h
|
2010-04-26 18:59:34 +00:00
|
|
|
|
|
|
|
PORTDOCS= Changelog \
|
|
|
|
Readme
|
|
|
|
|
|
|
|
post-patch:
|
2011-03-15 20:20:10 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/${MAKEFILE}
|
2008-05-16 15:05:26 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-09-24 13:50:42 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/nbc
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nbc ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/nbc
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-11-22 10:45:06 +00:00
|
|
|
.for f in ${PORTDOCS}
|
2013-11-19 00:28:02 +00:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/${f} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2012-06-05 18:21:30 +00:00
|
|
|
.include <bsd.port.mk>
|