2008-05-16 15:05:26 +00:00
|
|
|
# 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
|
2010-07-12 11:36:10 +00:00
|
|
|
PORTVERSION= 1.2.1.r3
|
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
|
|
|
|
|
|
|
|
MAINTAINER= rambiusparkisanius@gmail.com
|
|
|
|
COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product
|
|
|
|
|
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
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
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:
|
|
|
|
@${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
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2010-04-26 18:59:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|