1b436cc6e9
- Remove unnecessary whitespace from pkg-descr PR: ports/163322 Submitted by: Warren Block <wblock@FreeBSD.org> (maintainer)
97 lines
2.5 KiB
Makefile
97 lines
2.5 KiB
Makefile
# New ports collection makefile for: arduino
|
|
# Date created: 10 Feb 2010
|
|
# Whom: Warren Block <wblock@wonkity.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= arduino
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel java lang
|
|
MASTER_SITES= GOOGLE_CODE
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= wblock@freebsd.org
|
|
COMMENT= Open-source electronics prototyping platform
|
|
|
|
RUN_DEPENDS= ${JAVA_HOME}/jre/lib/ext/RXTXcomm.jar:${PORTSDIR}/comms/rxtx \
|
|
${LOCALBASE}/bin/avrdude:${PORTSDIR}/devel/avrdude \
|
|
${LOCALBASE}/avr/include/avr/io.h:${PORTSDIR}/devel/avr-libc
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_JAVA= 1.6+
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= arduino pkg-message
|
|
SUB_LIST= PORTNAME=${PORTNAME}
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
DESKTOP_ENTRIES= "Arduino" "Arduino IDE" \
|
|
${PREFIX}/${PORTNAME}/reference/img/logo.png \
|
|
"arduino" "Development;IDE;" "false"
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
OPTIONS+= REFDOCS "Install the reference documents" on
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
OPTIONS+= EXAMPLES "Install the example code" on
|
|
.endif
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITHOUT_REFDOCS) || defined(NOPORTDOCS)
|
|
WITHOUT_REFDOCS= true
|
|
.undef WITH_REFDOCS
|
|
PLIST_SUB+= REFDOCS="@comment "
|
|
.else
|
|
PLIST_SUB+= REFDOCS=""
|
|
.endif
|
|
|
|
.if defined(WITHOUT_EXAMPLES) || defined(NOPORTEXAMPLES)
|
|
WITHOUT_EXAMPLES= true
|
|
.undef WITH_EXAMPLES
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
.else
|
|
PLIST_SUB+= EXAMPLES=""
|
|
.endif
|
|
|
|
post-extract:
|
|
@${RM} ${WRKSRC}/hardware/tools/avrdude
|
|
@${RM} ${WRKSRC}/hardware/tools/avrdude64
|
|
@${RM} ${WRKSRC}/hardware/tools/avrdude.conf
|
|
@${RM} ${WRKSRC}/lib/librxtxSerial64.so
|
|
@${MKDIR} ${WRKSRC}/hardware/tools/avr
|
|
@${LN} -s ${PREFIX}/bin ${WRKSRC}/hardware/tools/avr/bin
|
|
@${LN} -s ${PREFIX}/etc ${WRKSRC}/hardware/tools/avr/etc
|
|
|
|
@${RM} ${WRKSRC}/lib/RXTXcomm.jar
|
|
@${LN} -s ${JAVA_HOME}/lib/ext/RXTXcomm.jar ${WRKSRC}/lib/RXTXcomm.jar
|
|
|
|
@${RM} ${WRKSRC}/lib/librxtxSerial.so
|
|
@${LN} -s ${JAVA_HOME}/lib/${ARCH}/librxtxSerial.so ${WRKSRC}/lib/
|
|
|
|
@${REINPLACE_CMD} -e 's|readlink -f|realpath|g' ${WRKSRC}/arduino
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/hardware/arduino/bootloaders/atmega8/*.orig
|
|
|
|
.if defined(WITHOUT_REFDOCS)
|
|
@${RM} -rf ${WRKSRC}/reference
|
|
.endif
|
|
.if defined(WITHOUT_EXAMPLES)
|
|
@${RM} -rf ${WRKSRC}/examples
|
|
@${RM} -rf ${WRKSRC}/libraries/*/examples
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/${PORTNAME}
|
|
@${CP} -Rp ${WRKSRC}/* ${PREFIX}/${PORTNAME}
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/arduino ${PREFIX}/bin/
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|