freebsd-ports/lang/nbc/Makefile
Rene Ladan 934ed1ab16 lang/nbc: fix build with lld by setting LLD_UNSAFE [1]
While here, set the license (MPL11) and bump PORTREVISION

PR:		228613 [1]
Submitted by:	emaste [1]
2018-06-17 16:15:32 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Ivan "Rambius" Ivanov <rambiusparkisanius@gmail.com>
# $FreeBSD$
PORTNAME= nbc
PORTVERSION= 1.2.1.r4
PORTREVISION= 12
CATEGORIES= lang
MASTER_SITES= SF/bricxcc/NBC_NXC/NBC%20release%20${PORTVERSION:S/.r/%20r/}
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= rene@FreeBSD.org
COMMENT= Programming language for the LEGO MINDSTORMS NXT
LICENSE= MPL11
MAKE_JOBS_UNSAFE= yes
MAKEFILE= nbcunix.mak
WRKSRC= ${WRKDIR}/NXT
OPTIONS_DEFINE= DOCS ROBOCTL
ROBOCTL_DESC= Include roboctl to communicate with the NXT
ROBOCTL_RUN_DEPENDS= legoctl:devel/roboctl
USES= dos2unix fpc gmake tar:tgz
USE_FPC= fcl-base fcl-image pasjpeg rtl-objpas
PLIST_FILES= bin/nbc \
include/nbc/NXCDefs.h \
include/nbc/NBCCommon.h \
include/nbc/NXTDefs.h
PORTDOCS= Changelog \
Readme
LLD_UNSAFE= yes # PR 228613, needs FPC changes?
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|/usr/bin|${LOCALBASE}/bin|' ${WRKSRC}/${MAKEFILE}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/nbc
${INSTALL_PROGRAM} ${WRKSRC}/nbc ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/nbc
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKDIR}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>