diff options
author | rene <rene@FreeBSD.org> | 2013-11-19 08:28:02 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2013-11-19 08:28:02 +0800 |
commit | 4ba7f2e96bda9dd40e369f0ac1015ba92d2cd082 (patch) | |
tree | 7d334c1ada1491852a47cacfbfd6175039cbbb86 /lang/nbc | |
parent | a465fbea29ccdefe016a16261687802af3735aa8 (diff) | |
download | freebsd-ports-gnome-4ba7f2e96bda9dd40e369f0ac1015ba92d2cd082.tar.gz freebsd-ports-gnome-4ba7f2e96bda9dd40e369f0ac1015ba92d2cd082.tar.zst freebsd-ports-gnome-4ba7f2e96bda9dd40e369f0ac1015ba92d2cd082.zip |
Assorted cleanups:
- Convert to USES=dos2unix
- Tighten COMMENT
- Use option helpers
- Remove unnecessary checks for DOCS option (because port is staged)
- Align assignments
Diffstat (limited to 'lang/nbc')
-rw-r--r-- | lang/nbc/Makefile | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/lang/nbc/Makefile b/lang/nbc/Makefile index 2e1f0106cfb3..4df2d5ed5d7a 100644 --- a/lang/nbc/Makefile +++ b/lang/nbc/Makefile @@ -13,37 +13,28 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}.src EXTRACT_SUFX= .tgz MAINTAINER= rene@FreeBSD.org -COMMENT= NBC is a programming language for the LEGO MINDSTORMS NXT product +COMMENT= Programming language for the LEGO MINDSTORMS NXT MAKE_JOBS_UNSAFE= yes MAKEFILE= nbcunix.mak +WRKSRC= ${WRKDIR}/NXT -OPTIONS_DEFINE= DOCS ROBOCTL - -ROBOCTL_DESC= Include roboctl to communicate with the NXT - -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS ROBOCTL +ROBOCTL_DESC= Include roboctl to communicate with the NXT -.if ${PORT_OPTIONS:MROBOCTL} -RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl -.endif +ROBOCTL_RUN_DEPENDS= legoctl:${PORTSDIR}/devel/roboctl -USES= gmake -USE_DOS2UNIX= yes +USES= dos2unix gmake 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} @@ -53,10 +44,9 @@ do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/include/nbc ${INSTALL_PROGRAM} ${WRKSRC}/nbc ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/nbc -.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/doc/Changelog ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKDIR}/doc/Readme ${STAGEDIR}${DOCSDIR} -.endif +.for f in ${PORDOCS} + ${INSTALL_DATA} ${WRKDIR}/doc/${f} ${STAGEDIR}${DOCSDIR} +.endfor .include <bsd.port.mk> |