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

67 lines
1.6 KiB
Makefile
Raw Normal View History

# 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
PORTVERSION= 1.2.1.r3
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= rambiusparkisanius@gmail.com
COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product
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
SUB_FILES= pkg-message
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
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>