1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/lang/nbc/Makefile

67 lines
1.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nbc
# Date created: 4 April 2007
# Whom: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
# Jason Bacon <jwbacon@tds.net>
# $FreeBSD$
#
PORTNAME= nbc
PORTVERSION= 1.2.1.r4
PORTREVISION= 3
CATEGORIES= lang
MASTER_SITES= SF
MASTER_SITE_SUBDIR= bricxcc/NBC_NXC/NBC%20release%20${PORTVERSION:S/.r/%20r/}
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
EXTRACT_SUFX= .tgz
MAINTAINER= rene@FreeBSD.org
COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product
2010-10-26 14:33:12 +00:00
MAKE_JOBS_UNSAFE= yes
MAKEFILE= nbcunix.mak
2010-10-26 14:33:12 +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
.endif
.if ${OSVERSION} < 800069
LIB_DEPENDS= usb:${PORTSDIR}/devel/libusb
.endif
USE_GMAKE= yes
USE_DOS2UNIX= yes
USE_FPC= fcl-base fcl-image
WRKSRC= ${WRKDIR}/NXT
PLIST_FILES= bin/nbc \
include/nbc/NXCDefs.h \
include/nbc/NBCCommon.h \
include/nbc/NXTDefs.h
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}
do-install:
${MKDIR} ${PREFIX}/include/nbc
${INSTALL_PROGRAM} ${WRKSRC}/nbc ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/nbc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/doc/Readme ${DOCSDIR}
.endif
.include <bsd.port.post.mk>