Update graphics/libopenraw to 0.1.0

Take maintainership
Chase shared library bump and fix build with graphics/gegl
This commit is contained in:
Jason E. Hale 2016-12-01 19:03:50 +00:00
parent f492b43714
commit 94252026bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427511
8 changed files with 71 additions and 46 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gegl
PORTVERSION= 0.2.0
PORTREVISION= 16
PORTREVISION= 17
CATEGORIES= graphics
MASTER_SITES= GIMP
@ -216,7 +216,7 @@ post-patch:
${REINPLACE_CMD} -e 's|tools examples|tools|g' \
${WRKSRC}/Makefile.in
.endif
${REINPLACE_CMD} -e 's|\(lua\)\(5\.1\)|\1-\2|g ; s|x86_64|amd64|g' \
${REINPLACE_CMD} -e 's|\(lua\)\(5\.1\)|\1-\2|g ; s|x86_64|amd64|g ; s|libopenraw-1.0|libopenraw-0.1|g' \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MDOCS}

View File

@ -0,0 +1,13 @@
OR_DATA_TYPE_CFA was replaced by OR_DATA_TYPE_RAW in libopenraw-0.1.0
--- operations/external/openraw.c.orig 2016-12-01 05:57:23 UTC
+++ operations/external/openraw.c
@@ -116,7 +116,7 @@ load_buffer (GeglOperation *operation)
goto clean_file;
}
- if(or_rawdata_format (rawdata) != OR_DATA_TYPE_CFA)
+ if(or_rawdata_format (rawdata) != OR_DATA_TYPE_RAW)
{
goto clean_file;
}

View File

@ -2,42 +2,39 @@
# $FreeBSD$
PORTNAME= libopenraw
PORTVERSION= 0.0.9
PORTREVISION= 4
PORTVERSION= 0.1.0
CATEGORIES= graphics
MASTER_SITES= http://libopenraw.freedesktop.org/download/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= jhale@FreeBSD.org
COMMENT= Library for camera RAW files decoding
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
BUILD_DEPENDS= ${LOCALBASE}/include/boost/variant.hpp:devel/boost-libs
USES= compiler:c++11-lang jpeg libtool localbase pkgconfig tar:bzip2
USES= compiler:c++11-lib jpeg libtool localbase pkgconfig tar:bz2
USE_GNOME= libxml2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-boost=${LOCALBASE}/include
MAKE_ENV= V=1
CONFIGURE_ARGS= --with-boost=${LOCALBASE}/include \
--disable-silent-rules
INSTALL_TARGET= install-strip
OPTIONS_DEFINE= GNOME
# Unhide SEEK_SET to fix build with GCC 4.9 (ports/193528).
CXXFLAGS+= -D_GLIBCXX_USE_C99
OPTIONS_DEFINE= GNOME
OPTIONS_DEFAULT= GNOME
OPTIONS_SUB= yes
OPTIONS_SUB= yes
GNOME_CONFIGURE_ENABLE= gnome
GNOME_USE= GNOME=glib20,gdkpixbuf2
GNOME_USES= gettext-runtime
GNOME_USE= GNOME=glib20,gdkpixbuf2
post-patch:
@${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|testsuite ||' ${WRKSRC}/Makefile.in
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenraw.so
post-install-GNOME-on:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopenrawgnome.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gdk-pixbuf-2.0/${GTK2_VERSION}/loaders/libopenraw_pixbuf.so
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (libopenraw-0.0.9.tar.bz2) = 49fd1adf0a0228c7a17a79bf98d8d03664195feae1e50f4ddd1b20162626e18f
SIZE (libopenraw-0.0.9.tar.bz2) = 478687
TIMESTAMP = 1480563957
SHA256 (libopenraw-0.1.0.tar.bz2) = 4dede1db9b85c9c22a1ddaf37839f2713746a00b81a6d4623d66556000cb76cf
SIZE (libopenraw-0.1.0.tar.bz2) = 525449

View File

@ -0,0 +1,11 @@
--- demo/ppmload.c.orig 2016-01-24 18:35:23 UTC
+++ demo/ppmload.c
@@ -30,6 +30,8 @@
# include <machine/endian.h>
# include <libkern/OSByteOrder.h>
# define htobe16(x) OSSwapHostToBigInt16(x)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+# include <sys/endian.h>
#else
# include <endian.h>
#endif

View File

@ -1,6 +1,6 @@
--- gnome/include/libopenraw-gnome/Makefile.in.orig Tue Jan 9 00:28:06 2007
+++ gnome/include/libopenraw-gnome/Makefile.in Wed Mar 21 14:51:32 2007
@@ -371,7 +371,8 @@
--- gnome/include/libopenraw-gnome/Makefile.in.orig 2016-11-27 01:53:40 UTC
+++ gnome/include/libopenraw-gnome/Makefile.in
@@ -529,7 +529,8 @@ info: info-am
info-am:
@ -8,5 +8,5 @@
+@BUILD_GNOME_SUPPORT_TRUE@install-data-am: install-libopenrawgnomeHEADERS
+@BUILD_GNOME_SUPPORT_FALSE@install-data-am:
install-exec-am:
install-dvi: install-dvi-am

View File

@ -1,6 +1,6 @@
libopenraw is an ongoing project to provide a free software implementation for
camera RAW files decoding. One of the main reason is that dcraw is not suited
camera RAW files decoding. One of the main reasons is that dcraw is not suited
for easy integration into applications, and there is a need for an easy to use
API to build free software digital image processing application.
API to build free software digital image processing applications.
WWW: http://libopenraw.freedesktop.org/

View File

@ -1,25 +1,28 @@
include/libopenraw-1.0/libopenraw/bitmapdata.h
include/libopenraw-1.0/libopenraw/consts.h
include/libopenraw-1.0/libopenraw/debug.h
include/libopenraw-1.0/libopenraw/demosaic.h
include/libopenraw-1.0/libopenraw/exif.h
include/libopenraw-1.0/libopenraw/io.h
include/libopenraw-1.0/libopenraw/libopenraw.h
include/libopenraw-1.0/libopenraw/metadata.h
include/libopenraw-1.0/libopenraw/rawdata.h
include/libopenraw-1.0/libopenraw/rawfile.h
include/libopenraw-1.0/libopenraw/thumbnails.h
include/libopenraw-1.0/libopenraw/types.h
%%GNOME%%include/libopenraw-1.0/libopenraw-gnome/gdkpixbuf.h
%%GNOME%%include/libopenraw-0.1/libopenraw-gnome/gdkpixbuf.h
include/libopenraw-0.1/libopenraw/bitmapdata.h
include/libopenraw-0.1/libopenraw/cameraids.h
include/libopenraw-0.1/libopenraw/cfapattern.h
include/libopenraw-0.1/libopenraw/consts.h
include/libopenraw-0.1/libopenraw/debug.h
include/libopenraw-0.1/libopenraw/demosaic.h
include/libopenraw-0.1/libopenraw/exif.h
include/libopenraw-0.1/libopenraw/io.h
include/libopenraw-0.1/libopenraw/libopenraw.h
include/libopenraw-0.1/libopenraw/metadata.h
include/libopenraw-0.1/libopenraw/prefix.h
include/libopenraw-0.1/libopenraw/rawdata.h
include/libopenraw-0.1/libopenraw/rawfile.h
include/libopenraw-0.1/libopenraw/thumbnails.h
include/libopenraw-0.1/libopenraw/types.h
%%GNOME%%lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libopenraw_pixbuf.a
%%GNOME%%lib/gdk-pixbuf-2.0/%%GTK2_VERSION%%/loaders/libopenraw_pixbuf.so
lib/libopenraw.a
lib/libopenraw.so
lib/libopenraw.so.1
lib/libopenraw.so.1.6.0
lib/libopenraw.so.7
lib/libopenraw.so.7.0.0
%%GNOME%%lib/libopenrawgnome.a
%%GNOME%%lib/libopenrawgnome.so
%%GNOME%%lib/libopenrawgnome.so.1
%%GNOME%%lib/libopenrawgnome.so.1.6.0
libdata/pkgconfig/libopenraw-1.0.pc
%%GNOME%%libdata/pkgconfig/libopenraw-gnome-1.0.pc
%%GNOME%%lib/libopenrawgnome.so.7
%%GNOME%%lib/libopenrawgnome.so.7.0.0
libdata/pkgconfig/libopenraw-0.1.pc
%%GNOME%%libdata/pkgconfig/libopenraw-gnome-0.1.pc