summaryrefslogtreecommitdiff
path: root/graphics/libopenraw/Makefile
blob: 9a93b8f1338feefa8a7da8e0c4d3c4bfb65128ea (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libopenraw
PORTVERSION=	0.2.3
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://libopenraw.freedesktop.org/download/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	Library for camera RAW files decoding

LICENSE=	LGPL3+
LICENSE_FILE=	${WRKSRC}/COPYING.LESSER

BUILD_DEPENDS=	${LOCALBASE}/include/boost/variant.hpp:devel/boost-libs
TEST_DEPENDS=	curl:ftp/curl

USES=		cargo compiler:c++11-lib gnome jpeg libtool localbase pkgconfig \
		tar:bz2
USE_GNOME=	libxml2
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-boost=${LOCALBASE}/include \
		--disable-silent-rules
INSTALL_TARGET=	install-strip
TEST_TARGET=	check

CARGO_CRATES=	ahash-0.3.8 \
		aho-corasick-0.7.13 \
		ansi_term-0.11.0 \
		atty-0.2.14 \
		autocfg-1.0.1 \
		bitflags-1.2.1 \
		bitreader-0.3.2 \
		byteorder-1.3.4 \
		cbindgen-0.5.2 \
		cfg-if-0.1.10 \
		clap-2.33.3 \
		env_logger-0.7.1 \
		fuchsia-cprng-0.1.1 \
		hashbrown-0.7.2 \
		hermit-abi-0.1.17 \
		humantime-1.3.0 \
		itoa-0.4.6 \
		lazy_static-1.4.0 \
		libc-0.2.79 \
		log-0.3.9 \
		log-0.4.11 \
		memchr-2.3.3 \
		num-traits-0.2.12 \
		proc-macro2-0.2.3 \
		quick-error-1.2.3 \
		quote-0.3.15 \
		rand-0.4.6 \
		rand_core-0.3.1 \
		rand_core-0.4.2 \
		rdrand-0.4.0 \
		regex-1.3.9 \
		regex-syntax-0.6.18 \
		remove_dir_all-0.5.3 \
		ryu-1.0.5 \
		serde-1.0.102 \
		serde_derive-1.0.21 \
		serde_derive_internals-0.17.0 \
		serde_json-1.0.58 \
		standalone-quote-0.5.0 \
		standalone-syn-0.13.0 \
		static_assertions-1.1.0 \
		strsim-0.8.0 \
		syn-0.11.11 \
		synom-0.11.3 \
		tempdir-0.3.7 \
		termcolor-1.1.0 \
		textwrap-0.11.0 \
		thread_local-1.0.1 \
		toml-0.4.10 \
		unicode-width-0.1.8 \
		unicode-xid-0.0.4 \
		unicode-xid-0.1.0 \
		vec_map-0.8.2 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.5 \
		winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_CARGOTOML=${WRKSRC}/lib/mp4/Cargo.toml
CARGO_CARGOLOCK=${WRKSRC}/lib/mp4/mp4parse_capi/Cargo.lock
CARGO_BUILD=	no
CARGO_INSTALL=	no
CARGO_TEST=	no

PLIST_SUB=	VER=${PORTVERSION:R}

OPTIONS_DEFINE=		GNOME TEST
OPTIONS_DEFAULT=	GNOME
OPTIONS_SUB=		yes

GNOME_CONFIGURE_ENABLE=	gnome
GNOME_USES=		gettext-runtime
GNOME_USE=		GNOME=glib20,gdkpixbuf2

TEST_BUILD_DEPENDS=	curl:ftp/curl

post-patch:
	@${REINPLACE_CMD} -E \
		-e 's|\{libdir\}/pkgconfig|{prefix}/libdata/pkgconfig|g' \
		${WRKSRC}/configure

post-patch-TEST-off:
	@${REINPLACE_CMD} -e 's|testsuite ||' ${WRKSRC}/Makefile.in

pre-configure:
	@${CARGO_CARGO_RUN} update \
		--manifest-path ${WRKSRC}/lib/mp4/mp4parse_capi/Cargo.toml \
		--verbose

.include <bsd.port.mk>