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: |