1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/lang/nbc/Makefile

63 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
# $FreeBSD$
# Also created by: Jason Bacon <jwbacon@tds.net>
PORTNAME= nbc
PORTVERSION= 1.2.1.r4
PORTREVISION= 5
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_DEFINE= DOCS ROBOCTL
ROBOCTL_DESC= Include roboctl to communicate with the NXT
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MROBOCTL}
2008-07-26 10:02:22 +00:00
RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl
.endif
USES= gmake
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 ${PORT_OPTIONS:MDOCS}
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:
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
.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}
.endif
.include <bsd.port.mk>