Changeset View
Changeset View
Standalone View
Standalone View
lang/swift510/Makefile
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
| SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
| SUB_LIST= SWIFT_INSTALL_PREFIX=${swift_install_prefix} | SUB_LIST= SWIFT_INSTALL_PREFIX=${swift_install_prefix} | ||||
| WRKSRC= ${WRKDIR}/swift-project | WRKSRC= ${WRKDIR}/swift-project | ||||
| PLIST_SUB= SWIFT_ARCH=${swift_arch} \ | PLIST_SUB= SWIFT_ARCH=${swift_arch} \ | ||||
| SWIFT_TARGET_TRIPLE=${swift_arch}-unknown-freebsd${OSREL} | SWIFT_TARGET_TRIPLE=${swift_arch}-unknown-freebsd${OSREL} | ||||
| .include <bsd.port.pre.mk> | |||||
| .if ${OSVERSION} >= 1304500 && ${OSVERSION} <= 1305502 | |||||
| BROKEN= Unbuildable due to a problem with libc++. See <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286342> | |||||
| .endif | |||||
| pre-patch: | pre-patch: | ||||
| @${MKDIR} ${WRKSRC}/llbuild/lib/LLBSQLite3 | @${MKDIR} ${WRKSRC}/llbuild/lib/LLBSQLite3 | ||||
| post-patch: | post-patch: | ||||
| @${SED} -E -e 's@^python3=python3$$@python3=${PYTHON_CMD}@' -i .bak ${WRKSRC}/swift/utils/build-script-impl | @${SED} -E -e 's@^python3=python3$$@python3=${PYTHON_CMD}@' -i .bak ${WRKSRC}/swift/utils/build-script-impl | ||||
| do-build: | do-build: | ||||
| @${MKDIR} ${early_stage_dir} | @${MKDIR} ${early_stage_dir} | ||||
| Show All 9 Lines | do-install: | ||||
| @${FIND} ${early_stage_dir}${swift_install_prefix}/bin -type f -not -name '*.py' -not -name '*.sh' -not -name '*.txt' -exec ${STRIP_CMD} '{}' ';' ; \ | @${FIND} ${early_stage_dir}${swift_install_prefix}/bin -type f -not -name '*.py' -not -name '*.sh' -not -name '*.txt' -exec ${STRIP_CMD} '{}' ';' ; \ | ||||
| ${FIND} ${early_stage_dir}${swift_install_prefix} -type f -name '*.so*' -exec ${STRIP_CMD} '{}' ';' ; \ | ${FIND} ${early_stage_dir}${swift_install_prefix} -type f -name '*.so*' -exec ${STRIP_CMD} '{}' ';' ; \ | ||||
| cd ${early_stage_dir} ; \ | cd ${early_stage_dir} ; \ | ||||
| ${COPYTREE_BIN} .${swift_install_prefix}/bin ${STAGEDIR} ; \ | ${COPYTREE_BIN} .${swift_install_prefix}/bin ${STAGEDIR} ; \ | ||||
| for subdir in include lib local share; do \ | for subdir in include lib local share; do \ | ||||
| ${COPYTREE_SHARE} .${swift_install_prefix}/$${subdir} ${STAGEDIR} ; \ | ${COPYTREE_SHARE} .${swift_install_prefix}/$${subdir} ${STAGEDIR} ; \ | ||||
| done | done | ||||
| .include <bsd.port.post.mk> | .include <bsd.port.mk> | ||||