devel/arduino16, devel/arduino-core: Do not rewrite system variable ARCH:
rename ARCH -> ARDUINO_ARCH. PR: 214776 Submitted by: Melvyn Sopacua <m.r.sopacua@gmail.com> Patched by: Kyle Evans <bsdports@kyle-evans.net> (maintainer)
This commit is contained in:
parent
8e8ac9ad53
commit
cec3c42fef
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428319
2 changed files with 4 additions and 6 deletions
|
@ -28,11 +28,13 @@ SAMD_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-hardware_arduino_samd_platform.txt
|
|||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
ARCH= x86_64
|
||||
ARDUINO_ARCH= x86_64
|
||||
.else
|
||||
ARDUINO_ARCH= ${ARCH}
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%ARCH%%|${ARCH}|g' -e 's|%%OSREL%%|${OSREL:R}|g' ${WRKSRC}/hardware/package_index_bundled.json
|
||||
@${REINPLACE_CMD} -e 's|%%ARCH%%|${ARDUINO_ARCH}|g' -e 's|%%OSREL%%|${OSREL:R}|g' ${WRKSRC}/hardware/package_index_bundled.json
|
||||
|
||||
do-install:
|
||||
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR})
|
||||
|
|
|
@ -68,10 +68,6 @@ DOCS_DISTFILES= reference-1.6.6-3.zip:ref \
|
|||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
ARCH= x86_64
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
INSLIST+= reference
|
||||
.endif
|
||||
|
|
Loading…
Reference in a new issue