blob: 8dad5d1bea537716dc324a0cbf2ffce037246d1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= libimagequant
PORTVERSION= 4.1.1
CATEGORIES= graphics
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Image Quantization Library
WWW= https://pngquant.org/lib/
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
BUILD_DEPENDS= cargo-cbuild:devel/cargo-c
USES= cargo
USE_GITHUB= yes
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 \
lib/libimagequant.so.0 \
lib/libimagequant.so.0.0.0 \
libdata/pkgconfig/imagequant.pc
do-build:
@${CARGO_CARGO_RUN} cbuild \
--verbose \
--verbose \
${CARGO_BUILD_ARGS}
do-install:
@${CARGO_CARGO_RUN} cinstall \
--verbose \
--verbose \
--destdir "${STAGEDIR}" \
--prefix "${PREFIX}" \
${CARGO_INSTALL_ARGS}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
.include <bsd.port.mk>
|