2013-03-06 23:31:58 +00:00
|
|
|
# Created by: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
|
2008-05-16 15:05:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2013-03-06 23:31:58 +00:00
|
|
|
# Also created by: Jason Bacon <jwbacon@tds.net>
|
|
|
|
|
2008-05-16 15:05:26 +00:00
|
|
|
PORTNAME= nbc
|
2011-03-15 20:20:10 +00:00
|
|
|
PORTVERSION= 1.2.1.r4
|
2013-03-23 05:51:53 +00:00
|
|
|
PORTREVISION= 5
|
2008-05-16 15:05:26 +00:00
|
|
|
CATEGORIES= lang
|
2010-07-12 11:36:10 +00:00
|
|
|
MASTER_SITES= SF
|
|
|
|
MASTER_SITE_SUBDIR= bricxcc/NBC_NXC/NBC%20release%20${PORTVERSION:S/.r/%20r/}
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
|
2008-05-16 15:05:26 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-08-01 16:47:06 +00:00
|
|
|
MAINTAINER= rene@FreeBSD.org
|
2008-05-16 15:05:26 +00:00
|
|
|
COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product
|
|
|
|
|
2010-10-26 14:33:12 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2011-03-15 20:20:10 +00:00
|
|
|
MAKEFILE= nbcunix.mak
|
2010-10-26 14:33:12 +00:00
|
|
|
|
2012-06-26 19:25:12 +00:00
|
|
|
OPTIONS_DEFINE= DOCS ROBOCTL
|
2010-04-26 18:59:34 +00:00
|
|
|
|
2012-06-05 18:21:30 +00:00
|
|
|
ROBOCTL_DESC= Include roboctl to communicate with the NXT
|
2010-04-26 18:59:34 +00:00
|
|
|
|
2012-06-05 18:21:30 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MROBOCTL}
|
2008-07-26 10:02:22 +00:00
|
|
|
RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl
|
2010-04-26 18:59:34 +00:00
|
|
|
.endif
|
|
|
|
|
2013-07-05 15:17:15 +00:00
|
|
|
USES= gmake
|
2008-05-16 15:05:26 +00:00
|
|
|
USE_DOS2UNIX= yes
|
2010-04-26 18:59:34 +00:00
|
|
|
USE_FPC= fcl-base fcl-image
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2010-04-26 18:59:34 +00:00
|
|
|
WRKSRC= ${WRKDIR}/NXT
|
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
|
|
|
PLIST_DIRS= include/nbc
|
|
|
|
|
2012-06-05 18:21:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2010-04-26 18:59:34 +00:00
|
|
|
PORTDOCS= Changelog \
|
|
|
|
Readme
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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
|
2012-06-05 18:21:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-09-24 13:50:42 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/Readme ${STAGEDIR}${DOCSDIR}
|
2010-04-26 18:59:34 +00:00
|
|
|
.endif
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2012-06-05 18:21:30 +00:00
|
|
|
.include <bsd.port.mk>
|