1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

- Update libraw to 0.15.4.

This update is needed for further KDE updates.
- Use the new OPTIONS syntax.
- Use the new LIB_DEPENDS syntax.
- Stop redefining do-install; the port has its own `make install' that does
  the same thing provided we use USES=pathfix and tune Makefile.in.
- Support staging.

Bump PORTREVISION in ports that depend on libraw.

PR:		ports/185118
Submitted by:	rakuco@
Approved by:	maintainer timeout (35 days)
This commit is contained in:
Raphael Kubo da Costa 2014-01-26 21:20:03 +00:00
parent da19de7cdd
commit 7c72067efc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341289
11 changed files with 60 additions and 116 deletions

View File

@ -2,6 +2,7 @@
# $FreeBSD$
PORTNAME= entangle
PORTREVISION= 1
DISTVERSION= 0.5.3
CATEGORIES= graphics
MASTER_SITES= http://entangle-photo.org/download/sources/

View File

@ -3,6 +3,7 @@
PORTNAME= raw
PORTVERSION= 1.7.9
PORTREVISION= 1
CATEGORIES= graphics enlightenment
MASTER_SITES= http://download.enlightenment.org/releases/ \
LOCAL/gblach/e17/

View File

@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= libraw
PORTVERSION= 0.14.7
PORTVERSION= 0.15.4
CATEGORIES= graphics
MASTER_SITES= http://www.libraw.su/data/
MASTER_SITES= http://www.libraw.org/data/
DISTNAME= LibRaw-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@ -14,15 +14,16 @@ COMMENT= Library for manipulating raw images
LICENSE= LGPL21 CDDL
LICENSE_COMB= dual
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
USE_LDCONFIG= yes
USES= pkgconfig
USES= pathfix pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-examples --disable-jasper
CFLAGS+= -fPIC
OPTIONS_DEFINE= DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 LCMS2 OPTIMIZED_CFLAGS OPENMP
OPTIONS_DEFINE= DEMOSAIC_PACK_GPL2 DEMOSAIC_PACK_GPL3 DOCS EXAMPLES LCMS2 \
OPTIMIZED_CFLAGS OPENMP
OPTIONS_DEFAULT= LCMS2
DEMOSAIC_PACK_GPL2_DESC= Enable GPLv2 demosaic pack
@ -30,7 +31,17 @@ DEMOSAIC_PACK_GPL3_DESC= Enable GPLv3 demosaic pack
OPTIMIZED_CFLAGS_DESC= Enable optimizations (on x86)
OPENMP_DESC= Enable OpenMP (implies GCC 4.6+)
NO_STAGE= yes
DEMOSAIC_PACK_GPL2_CONFIGURE_OFF= --disable-demosaic-pack-gpl2
DEMOSAIC_PACK_GPL2_CONFIGURE_ON= --enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION}
DEMOSAIC_PACK_GPL2_DISTFILES= LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz
DEMOSAIC_PACK_GPL3_CONFIGURE_OFF= --disable-demosaic-pack-gpl3
DEMOSAIC_PACK_GPL3_CONFIGURE_ON= --enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION}
DEMOSAIC_PACK_GPL3_DISTFILES= LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz
LCMS2_CONFIGURE_ENABLE= lcms
LCMS2_LIB_DEPENDS= liblcms2.so:${PORTSDIR}/graphics/lcms2
OPENMP_CONFIGURE_ENABLE= openmp
OPENMP_USE= GCC=yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
@ -39,78 +50,30 @@ CFLAGS+= -O3
.endif
.endif
.if ${PORT_OPTIONS:MOPENMP}
USE_GCC= yes
CONFIGURE_ARGS+=--enable-openmp
.else
CONFIGURE_ARGS+=--disable-openmp
.endif
.if ${PORT_OPTIONS:MLCMS2}
LIB_DEPENDS+= lcms2.2:${PORTSDIR}/graphics/lcms2
CONFIGURE_ARGS+=--enable-lcms
.else
CONFIGURE_ARGS+=--disable-lcms
.endif
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL2}
LICENSE= GPLv2
LICENSE_COMB= single
DISTFILES+= LibRaw-demosaic-pack-GPL2-${PORTVERSION}.tar.gz
CONFIGURE_ARGS+=--enable-demosaic-pack-gpl2=../LibRaw-demosaic-pack-GPL2-${PORTVERSION}
.else
CONFIGURE_ARGS+=--disable-demosaic-pack-gpl2
.endif
.if ${PORT_OPTIONS:MDEMOSAIC_PACK_GPL3}
LICENSE= GPLv3
LICENSE_COMB= single
DISTFILES+= LibRaw-demosaic-pack-GPL3-${PORTVERSION}.tar.gz
CONFIGURE_ARGS+=--enable-demosaic-pack-gpl3=../LibRaw-demosaic-pack-GPL3-${PORTVERSION}
.else
CONFIGURE_ARGS+=--disable-demosaic-pack-gpl3
.endif
PORTDOCS= API-C-eng.html API-C-rus.html API-CXX-eng.html \
API-CXX-rus.html API-datastruct-eng.html \
API-datastruct-rus.html API-notes-eng.html API-notes-rus.html \
API-overview-eng.html API-overview-rus.html \
Install-LibRaw-eng.html Install-LibRaw-rus.html \
Samples-LibRaw-eng.html Samples-LibRaw-rus.html \
Why-LibRaw-eng.html Why-LibRaw-rus.html \
index-eng.html index-rus.html index.html
PORTDOCS= *
PORTEXAMPLES= *
PORTEXAMPLES= Makefile README-samples.rus 4channels.cpp dcraw_emu.cpp \
dcraw_half.c half_mt.c mem_image.cpp \
multirender_test.cpp postprocessing_benchmark.cpp \
raw-identify.cpp simple_dcraw.cpp unprocessed_raw.cpp
do-install:
@${MKDIR} ${PREFIX}/include/libraw
.for f in libraw.h libraw_alloc.h libraw_const.h libraw_datastream.h \
libraw_internal.h libraw_types.h libraw_version.h
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${f} ${PREFIX}/include/libraw
.endfor
.for f in libraw.a libraw_r.a libraw.so.5 libraw_r.so.5
${INSTALL_DATA} ${WRKSRC}/lib/.libs/${f} ${PREFIX}/lib
.endfor
.for f in libraw libraw_r
@cd ${PREFIX}/lib ; ${LN} -sf ${f}.so.5 ${f}.so
.endfor
.for f in libraw.pc libraw_r.pc
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/libdata/pkgconfig
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && \
${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/samples/,} ${EXAMPLESDIR}
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/samples && \
${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif
post-patch:

View File

@ -1,6 +1,6 @@
SHA256 (LibRaw-0.14.7.tar.gz) = 7307a607249043bb544f3ab3b3a999e1923d72fbed12e4e2239d172e522143da
SIZE (LibRaw-0.14.7.tar.gz) = 1366794
SHA256 (LibRaw-demosaic-pack-GPL2-0.14.7.tar.gz) = 4f20cb3f085204159071c2bd965f294ad6be76308a27d7a60d23f7447449cae2
SIZE (LibRaw-demosaic-pack-GPL2-0.14.7.tar.gz) = 31765
SHA256 (LibRaw-demosaic-pack-GPL3-0.14.7.tar.gz) = 5fe67a89849f031c4dda96442acbf7dbed036c04662c9180ad8cafb045f8c891
SIZE (LibRaw-demosaic-pack-GPL3-0.14.7.tar.gz) = 37439
SHA256 (LibRaw-0.15.4.tar.gz) = 8d3a164674acfe6ff7164ab60397242c6e3144912fda7fa792c250c280e70746
SIZE (LibRaw-0.15.4.tar.gz) = 1439235
SHA256 (LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz) = 5413e1e3283f356142b8a88492ace3c80e5c6837074c04109186f58e81837609
SIZE (LibRaw-demosaic-pack-GPL2-0.15.4.tar.gz) = 31118
SHA256 (LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz) = be2440dabb7df46aa22de10b96d5e3cc7b2eb006ae491e7598611f11aba4dfe0
SIZE (LibRaw-demosaic-pack-GPL3-0.15.4.tar.gz) = 38186

View File

@ -0,0 +1,16 @@
--- Makefile.in.orig 2013-12-23 02:36:04.000000000 +0200
+++ Makefile.in 2013-12-23 02:36:23.000000000 +0200
@@ -462,12 +462,7 @@
# Docs
-doc_DATA = COPYRIGHT \
- LICENSE.CDDL \
- LICENSE.LGPL \
- LICENSE.LibRaw.pdf \
- Changelog.txt
-
+doc_DATA =
# pkg-config .pc files
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -9,44 +9,3 @@
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
@@ -4129,42 +4129,6 @@
-pkg_failed=no
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
-$as_echo_n "checking for LCMS... " >&6; }
-
-if test -n "$LCMS_CFLAGS"; then
- pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
- ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi
-if test -n "$LCMS_LIBS"; then
- pkg_cv_LCMS_LIBS="$LCMS_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
- ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- else
- pkg_failed=untried
-fi

View File

@ -6,11 +6,13 @@ include/libraw/libraw_internal.h
include/libraw/libraw_types.h
include/libraw/libraw_version.h
lib/libraw.a
lib/libraw.la
lib/libraw.so
lib/libraw.so.5
lib/libraw.so.9
lib/libraw_r.a
lib/libraw_r.la
lib/libraw_r.so
lib/libraw_r.so.5
lib/libraw_r.so.9
libdata/pkgconfig/libraw.pc
libdata/pkgconfig/libraw_r.pc
@dirrm include/libraw

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= luminance-hdr
PORTREVISION= 4
PORTREVISION= 5
DISTVERSION= 2.3.0
CATEGORIES= graphics
MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION}

View File

@ -2,6 +2,7 @@
PORTNAME= nomacs
PORTVERSION= 1.6.2
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/nomacs/nomacs-${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source

View File

@ -2,7 +2,7 @@
PORTNAME= oyranos
PORTVERSION= 0.9.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/Oyranos/Oyranos%20${PORTVERSION:C|(.*)\.[0-9]*$|\1|}

View File

@ -3,6 +3,7 @@
PORTNAME= shotwell
PORTVERSION= 0.14.1
PORTREVISION= 1
CATEGORIES= graphics gnome
MASTER_SITES= http://www.yorba.org/download/shotwell/${PORTVERSION:R}/