View | Details | Raw Unified | Return to bug 185118
Collapse All | Expand All

(-)./Makefile (-71 / +34 lines)
Lines 1-10 Link Here
1
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
1
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
2
# $FreeBSD: graphics/libraw/Makefile 327733 2013-09-20 18:35:44Z bapt $
2
# $FreeBSD: head/graphics/libraw/Makefile 327733 2013-09-20 18:35:44Z bapt $
3
3
4
PORTNAME=	libraw
4
PORTNAME=	libraw
5
PORTVERSION=	0.14.7
5
PORTVERSION=	0.15.4
6
CATEGORIES=	graphics
6
CATEGORIES=	graphics
7
MASTER_SITES=	http://www.libraw.su/data/
7
MASTER_SITES=	http://www.libraw.org/data/
8
DISTNAME=	LibRaw-${PORTVERSION}
8
DISTNAME=	LibRaw-${PORTVERSION}
9
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
9
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
10
10
Lines 14-28 Link Here
14
LICENSE=	LGPL21 CDDL
14
LICENSE=	LGPL21 CDDL
15
LICENSE_COMB=	dual
15
LICENSE_COMB=	dual
16
16
17
LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg
17
LIB_DEPENDS=	libjpeg.so:${PORTSDIR}/graphics/jpeg
18
18
19
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
20
USES=		pkgconfig
20
USES=		pathfix pkgconfig
21
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
22
CONFIGURE_ARGS=	--disable-examples --disable-jasper
22
CONFIGURE_ARGS=	--disable-examples --disable-jasper
23
CFLAGS+=	-fPIC
23
CFLAGS+=	-fPIC
24
24
25
OPTIONS_DEFINE=	DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 LCMS2 OPTIMIZED_CFLAGS OPENMP
25
OPTIONS_DEFINE=	DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 DOCS EXAMPLES LCMS2 \
26
		OPTIMIZED_CFLAGS OPENMP
26
OPTIONS_DEFAULT=	LCMS2
27
OPTIONS_DEFAULT=	LCMS2
27
28
28
DEMOSAIC_PACK_GPL2_DESC=	Enable GPLv2 demosaic pack
29
DEMOSAIC_PACK_GPL2_DESC=	Enable GPLv2 demosaic pack
Lines 30-36 Link Here
30
OPTIMIZED_CFLAGS_DESC=		Enable optimizations (on x86)
31
OPTIMIZED_CFLAGS_DESC=		Enable optimizations (on x86)
31
OPENMP_DESC=			Enable OpenMP (implies GCC 4.6+)
32
OPENMP_DESC=			Enable OpenMP (implies GCC 4.6+)
32
33
33
NO_STAGE=	yes
34
DEMOSAIC_PACK_GPL2_CONFIGURE_OFF=	--disable-demosaic-pack-gpl2
35
DEMOSAIC_PACK_GPL2_CONFIGURE_ON=	--enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION}
36
DEMOSAIC_PACK_GPL2_DISTFILES=		LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz
37
DEMOSAIC_PACK_GPL3_CONFIGURE_OFF=	--disable-demosaic-pack-gpl3
38
DEMOSAIC_PACK_GPL3_CONFIGURE_ON=	--enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION}
39
DEMOSAIC_PACK_GPL3_DISTFILES=		LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz
40
LCMS2_CONFIGURE_ENABLE=			lcms
41
LCMS2_LIB_DEPENDS=			liblcms2.so:${PORTSDIR}/graphics/lcms2
42
OPENMP_CONFIGURE_ENABLE=		openmp
43
OPENMP_USE=				GCC=yes
44
34
.include <bsd.port.options.mk>
45
.include <bsd.port.options.mk>
35
46
36
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
47
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
Lines 39-114 Link Here
39
.endif
50
.endif
40
.endif
51
.endif
41
52
42
.if ${PORT_OPTIONS:MOPENMP}
43
USE_GCC=	yes
44
CONFIGURE_ARGS+=--enable-openmp
45
.else
46
CONFIGURE_ARGS+=--disable-openmp
47
.endif
48
49
.if ${PORT_OPTIONS:MLCMS2}
50
LIB_DEPENDS+=	lcms2.2:${PORTSDIR}/graphics/lcms2
51
CONFIGURE_ARGS+=--enable-lcms
52
.else
53
CONFIGURE_ARGS+=--disable-lcms
54
.endif
55
56
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL2}
53
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL2}
57
LICENSE+=	GPLv2
54
LICENSE+=	GPLv2
58
DISTFILES+=	LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz
59
CONFIGURE_ARGS+=--enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION}
60
.else
61
CONFIGURE_ARGS+=--disable-demosaic-pack-gpl2
62
.endif
55
.endif
63
56
64
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL3}
57
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL3}
65
LICENSE+=	GPLv3
58
LICENSE+=	GPLv3
66
DISTFILES+=	LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz
59
.endif
67
CONFIGURE_ARGS+=--enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION}
60
68
.else
61
PORTDOCS=	*
69
CONFIGURE_ARGS+=--disable-demosaic-pack-gpl3
62
PORTEXAMPLES=	*
70
.endif
63
71
64
post-install:
72
PORTDOCS=	API-C-eng.html API-C-rus.html API-CXX-eng.html \
65
.if ${PORT_OPTIONS:MDOCS}
73
		API-CXX-rus.html API-datastruct-eng.html \
66
	${MKDIR} ${STAGEDIR}${DOCSDIR}
74
		API-datastruct-rus.html API-notes-eng.html API-notes-rus.html \
67
	cd ${WRKSRC}/doc && \
75
		API-overview-eng.html API-overview-rus.html \
68
		${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
76
		Install-LibRaw-eng.html Install-LibRaw-rus.html \
69
.endif
77
		Samples-LibRaw-eng.html Samples-LibRaw-rus.html \
70
78
		Why-LibRaw-eng.html Why-LibRaw-rus.html \
71
.if ${PORT_OPTIONS:MEXAMPLES}
79
		index-eng.html index-rus.html index.html
72
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
80
73
	cd ${WRKSRC}/samples && \
81
PORTEXAMPLES=	Makefile README-samples.rus 4channels.cpp dcraw_emu.cpp \
74
		${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
82
		dcraw_half.c half_mt.c mem_image.cpp \
83
		multirender_test.cpp postprocessing_benchmark.cpp \
84
		raw-identify.cpp simple_dcraw.cpp unprocessed_raw.cpp
85
86
do-install:
87
	@${MKDIR} ${PREFIX}/include/libraw
88
89
.for f in libraw.h libraw_alloc.h libraw_const.h libraw_datastream.h \
90
	libraw_internal.h libraw_types.h libraw_version.h
91
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} ${PREFIX}/include/libraw
92
.endfor
93
.for f in libraw.a libraw_r.a libraw.so.5 libraw_r.so.5
94
	${INSTALL_DATA} ${WRKSRC}/lib/.libs/${f} ${PREFIX}/lib
95
.endfor
96
.for f in libraw libraw_r
97
	@cd ${PREFIX}/lib ; ${LN} -sf ${f}.so.5 ${f}.so
98
.endfor
99
100
.for f in libraw.pc libraw_r.pc
101
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/libdata/pkgconfig
102
.endfor
103
104
.if !defined(NOPORTDOCS)
105
	@${MKDIR} ${DOCSDIR}
106
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}
107
.endif
108
109
.if !defined(NOPORTEXAMPLES)
110
	@${MKDIR} ${EXAMPLESDIR}
111
	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/samples/,} ${EXAMPLESDIR}
112
.endif
75
.endif
113
76
114
post-patch:
77
post-patch:
(-)./distinfo (-6 / +6 lines)
Lines 1-6 Link Here
1
SHA256 (LibRaw-0.14.7.tar.gz) = 7307a607249043bb544f3ab3b3a999e1923d72fbed12e4e2239d172e522143da
1
SHA256 (LibRaw-0.15.4.tar.gz) = 8d3a164674acfe6ff7164ab60397242c6e3144912fda7fa792c250c280e70746
2
SIZE (LibRaw-0.14.7.tar.gz) = 1366794
2
SIZE (LibRaw-0.15.4.tar.gz) = 1439235
3
SHA256 (LibRaw-demosaic-pack-GPL2-0.14.7.tar.gz) = 4f20cb3f085204159071c2bd965f294ad6be76308a27d7a60d23f7447449cae2
3
SHA256 (LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz) = 5413e1e3283f356142b8a88492ace3c80e5c6837074c04109186f58e81837609
4
SIZE (LibRaw-demosaic-pack-GPL2-0.14.7.tar.gz) = 31765
4
SIZE (LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz) = 31118
5
SHA256 (LibRaw-demosaic-pack-GPL3-0.14.7.tar.gz) = 5fe67a89849f031c4dda96442acbf7dbed036c04662c9180ad8cafb045f8c891
5
SHA256 (LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz) = be2440dabb7df46aa22de10b96d5e3cc7b2eb006ae491e7598611f11aba4dfe0
6
SIZE (LibRaw-demosaic-pack-GPL3-0.14.7.tar.gz) = 37439
6
SIZE (LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz) = 38186
(-)./files/patch-Makefile.in (+16 lines)
Line 0 Link Here
1
--- Makefile.in.orig	2013-12-23 02:36:04.000000000 +0200
2
+++ Makefile.in	2013-12-23 02:36:23.000000000 +0200
3
@@ -462,12 +462,7 @@
4
 
5
 
6
 # Docs
7
-doc_DATA = COPYRIGHT \
8
-			LICENSE.CDDL \
9
-			LICENSE.LGPL \
10
-			LICENSE.LibRaw.pdf \
11
-			Changelog.txt
12
-
13
+doc_DATA =
14
 
15
 # pkg-config .pc files
16
 pkgconfigdir = $(libdir)/pkgconfig
(-)./files/patch-configure (-41 lines)
Lines 9-52 Link Here
9
 do
9
 do
10
   # Extract the first word of "$ac_prog", so it can be a program name with args.
10
   # Extract the first word of "$ac_prog", so it can be a program name with args.
11
 set dummy $ac_prog; ac_word=$2
11
 set dummy $ac_prog; ac_word=$2
12
@@ -4129,42 +4129,6 @@
13
 
14
 
15
 
16
-pkg_failed=no
17
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
18
-$as_echo_n "checking for LCMS... " >&6; }
19
-
20
-if test -n "$LCMS_CFLAGS"; then
21
-    pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
22
- elif test -n "$PKG_CONFIG"; then
23
-    if test -n "$PKG_CONFIG" && \
24
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
25
-  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
26
-  ac_status=$?
27
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28
-  test $ac_status = 0; }; then
29
-  pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
30
-else
31
-  pkg_failed=yes
32
-fi
33
- else
34
-    pkg_failed=untried
35
-fi
36
-if test -n "$LCMS_LIBS"; then
37
-    pkg_cv_LCMS_LIBS="$LCMS_LIBS"
38
- elif test -n "$PKG_CONFIG"; then
39
-    if test -n "$PKG_CONFIG" && \
40
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
41
-  ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
42
-  ac_status=$?
43
-  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44
-  test $ac_status = 0; }; then
45
-  pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
46
-else
47
-  pkg_failed=yes
48
-fi
49
- else
50
-    pkg_failed=untried
51
-fi
52
 
(-)./pkg-plist (-2 / +4 lines)
Lines 6-16 Link Here
6
include/libraw/libraw_types.h
6
include/libraw/libraw_types.h
7
include/libraw/libraw_version.h
7
include/libraw/libraw_version.h
8
lib/libraw.a
8
lib/libraw.a
9
lib/libraw.la
9
lib/libraw.so
10
lib/libraw.so
10
lib/libraw.so.5
11
lib/libraw.so.9
11
lib/libraw_r.a
12
lib/libraw_r.a
13
lib/libraw_r.la
12
lib/libraw_r.so
14
lib/libraw_r.so
13
lib/libraw_r.so.5
15
lib/libraw_r.so.9
14
libdata/pkgconfig/libraw.pc
16
libdata/pkgconfig/libraw.pc
15
libdata/pkgconfig/libraw_r.pc
17
libdata/pkgconfig/libraw_r.pc
16
@dirrm include/libraw
18
@dirrm include/libraw

Return to bug 185118