Changeset View
Changeset View
Standalone View
Standalone View
head/x11/squeekboard/Makefile
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | CARGO_CRATES= aho-corasick-0.7.6 \ | ||||
thread_local-0.3.6 \ | thread_local-0.3.6 \ | ||||
unicode-xid-0.2.0 \ | unicode-xid-0.2.0 \ | ||||
utf8-ranges-1.0.4 \ | utf8-ranges-1.0.4 \ | ||||
winapi-0.3.8 \ | winapi-0.3.8 \ | ||||
winapi-i686-pc-windows-gnu-0.4.0 \ | winapi-i686-pc-windows-gnu-0.4.0 \ | ||||
winapi-x86_64-pc-windows-gnu-0.4.0 \ | winapi-x86_64-pc-windows-gnu-0.4.0 \ | ||||
xkbcommon-0.4.0 \ | xkbcommon-0.4.0 \ | ||||
yaml-rust-0.4.3 | yaml-rust-0.4.3 | ||||
CARGO_BUILD= no | |||||
CARGO_INSTALL= no | |||||
CARGO_TEST= no | |||||
post-patch: | post-patch: | ||||
# Pass USES=cargo environment to USES=meson | # Pass USES=cargo environment to USES=meson | ||||
# Add --verbose after each cargo subcommand | # Add --verbose after each cargo subcommand | ||||
# Don't use BSD realpath(1) against non-existing files | # Don't use BSD realpath(1) against non-existing files | ||||
@${REINPLACE_CMD} -e '/^cargo/ { \ | @${REINPLACE_CMD} -e '/^cargo/ { \ | ||||
s,^,cmd=$$1; shift; eval export $${CARGO_ENV}; ,; \ | s,^,cmd=$$1; shift; eval export $${CARGO_ENV}; ,; \ | ||||
s,"$$@","$$cmd" --verbose &,; }' \ | s,"$$@","$$cmd" --verbose &,; }' \ | ||||
-e '/OUT_PATH=/s,=.*,=$$PWD/$$1,' \ | -e '/OUT_PATH=/s,=.*,=$$PWD/$$1,' \ | ||||
${WRKSRC}/cargo*.sh | ${WRKSRC}/cargo*.sh | ||||
post-configure: | |||||
# Run USES=meson after USES=cargo configures vendoring | |||||
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} \ | |||||
${MAKE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS}) | |||||
# Let USES=meson handle the rest | |||||
do-build: | |||||
@${DO_MAKE_BUILD} -C${BUILD_WRKSRC} ${ALL_TARGET} | |||||
do-install: | |||||
@${DO_MAKE_BUILD} -C${INSTALL_WRKSRC} ${INSTALL_TARGET} | |||||
do-test: | |||||
@${DO_MAKE_BUILD} -C${TEST_WRKSRC} ${TEST_TARGET} | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |