aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-01-23 22:13:19 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-01-23 23:51:42 +0000
commitfb05485fe32d25ace13afe9214b2f86aa52c8475 (patch)
tree4a2ef68006e4f778d03586da2936601c31f8a673
parenta32c850f0dc0d230d65127f3fe68a8681577ba42 (diff)
downloadports-fb05485fe32d25ace13afe9214b2f86aa52c8475.tar.gz
ports-fb05485fe32d25ace13afe9214b2f86aa52c8475.zip
graphics/libimagequant: convert WRKSRC_SUBDIR to --package
$ make cargo-crates ===> /wrkdirs/usr/ports/graphics/libimagequant/work/libimagequant-4.0.5/imagequant-sys/Cargo.lock not found. Trying to generate it... Updating crates.io index /usr/bin/awk: can't open file /wrkdirs/usr/ports/graphics/libimagequant/work/libimagequant-4.0.5/imagequant-sys/Cargo.lock source line number 6 *** Error code 2
-rw-r--r--graphics/libimagequant/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/libimagequant/Makefile b/graphics/libimagequant/Makefile
index 1c92b129cbba..14e3ced6e1b6 100644
--- a/graphics/libimagequant/Makefile
+++ b/graphics/libimagequant/Makefile
@@ -13,9 +13,10 @@ BUILD_DEPENDS= cargo-cbuild:devel/cargo-c
USES= cargo
USE_GITHUB= yes
-GH_ACCOUNT= ImageOptim
-WRKSRC_SUBDIR= imagequant-sys
USE_LDCONFIG= yes
+GH_ACCOUNT= ImageOptim
+CARGO_BUILD_ARGS= --package imagequant-sys
+CARGO_INSTALL_ARGS:= ${CARGO_BUILD_ARGS}
PLIST_FILES= include/libimagequant.h \
lib/libimagequant.a \
lib/libimagequant.so \