2011-03-16 09:06:12 +00:00
|
|
|
# New ports collection makefile for: nbc
|
2008-05-16 15:05:26 +00:00
|
|
|
# Date created: 4 April 2007
|
|
|
|
# Whom: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
|
|
|
|
# Jason Bacon <jwbacon@tds.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nbc
|
2011-03-15 20:20:10 +00:00
|
|
|
PORTVERSION= 1.2.1.r4
|
2012-04-19 06:51:44 +00:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2010-04-26 18:59:34 +00:00
|
|
|
OPTIONS= ROBOCTL "Include roboctl to communicate with the NXT" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ROBOCTL)
|
2008-07-26 10:02:22 +00:00
|
|
|
RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl
|
2010-04-26 18:59:34 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800069
|
|
|
|
LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb
|
|
|
|
.endif
|
2008-05-16 15:05:26 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
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
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
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:
|
2010-04-26 18:59:34 +00:00
|
|
|
${MKDIR} ${PREFIX}/include/nbc
|
2008-05-16 15:05:26 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nbc ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/nbc
|
2010-04-26 18:59:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/doc/Readme ${DOCSDIR}
|
|
|
|
.endif
|
2008-05-16 15:05:26 +00:00
|
|
|
|
2010-04-26 18:59:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|