LibRaw is a library for reading RAW files obtained from digital photo
cameras (CRW/CR2, NEF, RAF, DNG, and others). LibRaw is based on the source codes of the dcraw utility, where part of drawbacks have already been eliminated and part will be fixed in future. The users of the library are provided with API to be built into their software programs. requested by (and OK) landry@ at c2k10.... (this time, imported into a better dir path)
This commit is contained in:
parent
2df06e07cb
commit
b3cf08455f
26
graphics/libraw/Makefile
Normal file
26
graphics/libraw/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/07/23 16:05:40 phessler Exp $
|
||||
COMMENT = library for reading RAW files
|
||||
|
||||
DISTNAME = LibRaw-0.9.1
|
||||
PKGNAME = ${DISTNAME:L}
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = http://www.libraw.org/
|
||||
|
||||
# LGPL v2.1 OR CDDL v1.0 OR their own
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://www.libraw.org/data/
|
||||
NO_REGRESS = Yes
|
||||
|
||||
#WANTLIB += c m pthread stdc++
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/include/libraw/
|
||||
${INSTALL_DATA} ${WRKBUILD}/libraw/* ${PREFIX}/include/libraw/
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/lib/libraw* ${PREFIX}/lib
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/libraw/distinfo
Normal file
5
graphics/libraw/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (LibRaw-0.9.1.tar.gz) = UZMUEftOBg7/54Qg51QxLA==
|
||||
RMD160 (LibRaw-0.9.1.tar.gz) = U893R8kbR8NQFDecHMZJDisUaNE=
|
||||
SHA1 (LibRaw-0.9.1.tar.gz) = wxSsOUlgXqNBnw7xhRrzrxdy5tk=
|
||||
SHA256 (LibRaw-0.9.1.tar.gz) = +XN695iFeZRZlMHrO550/yAVhOfcipLawLHoNFe+Elw=
|
||||
SIZE (LibRaw-0.9.1.tar.gz) = 547554
|
95
graphics/libraw/patches/patch-Makefile
Normal file
95
graphics/libraw/patches/patch-Makefile
Normal file
@ -0,0 +1,95 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2010/07/23 16:05:40 phessler Exp $
|
||||
--- Makefile.orig Sun Mar 28 20:10:18 2010
|
||||
+++ Makefile Fri Jul 2 10:07:41 2010
|
||||
@@ -1,6 +1,6 @@
|
||||
all: library all_samples
|
||||
|
||||
-CFLAGS=-O4 -I. -w
|
||||
+CFLAGS+= -I. -w
|
||||
|
||||
# OpenMP support
|
||||
#CFLAGS=-O4 -I. -w -fopenmp
|
||||
@@ -28,48 +28,48 @@ install-binaries: all_samples
|
||||
#binaries
|
||||
|
||||
bin/raw-identify: lib/libraw.a samples/raw-identify.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/raw-identify samples/raw-identify.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/raw-identify samples/raw-identify.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
bin/unprocessed_raw: lib/libraw.a samples/unprocessed_raw.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/unprocessed_raw samples/unprocessed_raw.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/unprocessed_raw samples/unprocessed_raw.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
bin/4channels: lib/libraw.a samples/4channels.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/4channels samples/4channels.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/4channels samples/4channels.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
bin/simple_dcraw: lib/libraw.a samples/simple_dcraw.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/simple_dcraw samples/simple_dcraw.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/simple_dcraw samples/simple_dcraw.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
bin/mem_image: lib/libraw.a samples/mem_image.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/mem_image samples/mem_image.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/mem_image samples/mem_image.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
bin/dcraw_half: lib/libraw.a object/dcraw_half.o
|
||||
- gcc -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/dcraw_half object/dcraw_half.o -L./lib -lraw -lm -lstdc++ ${LCMS_LIB}
|
||||
+ ${CC} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/dcraw_half object/dcraw_half.o -L./lib -lraw -lm -lstdc++ ${LCMS_LIB}
|
||||
|
||||
bin/half_mt: lib/libraw_r.a object/half_mt.o
|
||||
- gcc ${LCMS_DEF} -pthread ${CFLAGS} -o bin/half_mt object/half_mt.o -L./lib -lraw_r -lm -lstdc++ ${LCMS_LIB}
|
||||
+ ${CC} ${LCMS_DEF} -pthread ${CFLAGS} -o bin/half_mt object/half_mt.o -L./lib -lraw_r -lm -lstdc++ ${LCMS_LIB}
|
||||
|
||||
bin/dcraw_emu: lib/libraw.a samples/dcraw_emu.cpp
|
||||
- g++ -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/dcraw_emu samples/dcraw_emu.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
+ ${CXX} -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o bin/dcraw_emu samples/dcraw_emu.cpp -L./lib -lraw -lm ${LCMS_LIB}
|
||||
|
||||
#objects
|
||||
|
||||
object/dcraw_common.o: internal/dcraw_common.cpp
|
||||
- g++ -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/dcraw_common.o internal/dcraw_common.cpp
|
||||
+ ${CXX} -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/dcraw_common.o internal/dcraw_common.cpp
|
||||
|
||||
object/dcraw_fileio.o: internal/dcraw_fileio.cpp
|
||||
- g++ -c -DLIBRAW_NOTHREADS ${CFLAGS} ${LCMS_DEF} -o object/dcraw_fileio.o internal/dcraw_fileio.cpp
|
||||
+ ${CXX} -c -DLIBRAW_NOTHREADS ${CFLAGS} ${LCMS_DEF} -o object/dcraw_fileio.o internal/dcraw_fileio.cpp
|
||||
|
||||
object/libraw_cxx.o: src/libraw_cxx.cpp
|
||||
- g++ -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/libraw_cxx.o src/libraw_cxx.cpp
|
||||
+ ${CXX} -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/libraw_cxx.o src/libraw_cxx.cpp
|
||||
|
||||
object/libraw_c_api.o: src/libraw_c_api.cpp
|
||||
- g++ -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/libraw_c_api.o src/libraw_c_api.cpp
|
||||
+ ${CXX} -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/libraw_c_api.o src/libraw_c_api.cpp
|
||||
|
||||
object/dcraw_half.o: samples/dcraw_half.c
|
||||
- gcc -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/dcraw_half.o samples/dcraw_half.c
|
||||
+ ${CC} -c -DLIBRAW_NOTHREADS ${LCMS_DEF} ${CFLAGS} -o object/dcraw_half.o samples/dcraw_half.c
|
||||
|
||||
object/half_mt.o: samples/half_mt.c
|
||||
- gcc -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/half_mt.o samples/half_mt.c
|
||||
+ ${CC} -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/half_mt.o samples/half_mt.c
|
||||
|
||||
|
||||
lib/libraw.a: ${DCRAW_LIB_OBJECTS}
|
||||
@@ -83,16 +83,16 @@ lib/libraw_r.a: ${DCRAW_LIB_MT_OBJECTS}
|
||||
ranlib lib/libraw_r.a
|
||||
|
||||
object/dcraw_common_mt.o: internal/dcraw_common.cpp
|
||||
- g++ -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/dcraw_common_mt.o internal/dcraw_common.cpp
|
||||
+ ${CXX} -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/dcraw_common_mt.o internal/dcraw_common.cpp
|
||||
|
||||
object/dcraw_fileio_mt.o: internal/dcraw_fileio.cpp
|
||||
- g++ -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/dcraw_fileio_mt.o internal/dcraw_fileio.cpp
|
||||
+ ${CXX} -c -pthread ${LCMS_DEF} ${CFLAGS} -o object/dcraw_fileio_mt.o internal/dcraw_fileio.cpp
|
||||
|
||||
object/libraw_cxx_mt.o: src/libraw_cxx.cpp
|
||||
- g++ -c ${LCMS_DEF} -pthread ${CFLAGS} -o object/libraw_cxx_mt.o src/libraw_cxx.cpp
|
||||
+ ${CXX} -c ${LCMS_DEF} -pthread ${CFLAGS} -o object/libraw_cxx_mt.o src/libraw_cxx.cpp
|
||||
|
||||
object/libraw_c_api_mt.o: src/libraw_c_api.cpp
|
||||
- g++ -c ${LCMS_DEF} -pthread ${CFLAGS} -o object/libraw_c_api_mt.o src/libraw_c_api.cpp
|
||||
+ ${CXX} -c ${LCMS_DEF} -pthread ${CFLAGS} -o object/libraw_c_api_mt.o src/libraw_c_api.cpp
|
||||
|
||||
clean:
|
||||
rm -fr bin/*.dSYM
|
12
graphics/libraw/patches/patch-src_libraw_cxx_cpp
Normal file
12
graphics/libraw/patches/patch-src_libraw_cxx_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_libraw_cxx_cpp,v 1.1.1.1 2010/07/23 16:05:40 phessler Exp $
|
||||
--- src/libraw_cxx.cpp.orig Thu Jul 1 18:09:19 2010
|
||||
+++ src/libraw_cxx.cpp Thu Jul 1 18:11:26 2010
|
||||
@@ -23,6 +23,8 @@ it under the terms of the one of three licenses as you
|
||||
#include <float.h>
|
||||
#include <math.h>
|
||||
#ifndef WIN32
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
7
graphics/libraw/pkg/DESCR
Normal file
7
graphics/libraw/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
LibRaw is a library for reading RAW files obtained from digital photo
|
||||
cameras (CRW/CR2, NEF, RAF, DNG, and others).
|
||||
|
||||
LibRaw is based on the source codes of the dcraw utility, where part of
|
||||
drawbacks have already been eliminated and part will be fixed in future.
|
||||
The users of the library are provided with API to be built into their
|
||||
software programs.
|
11
graphics/libraw/pkg/PLIST
Normal file
11
graphics/libraw/pkg/PLIST
Normal file
@ -0,0 +1,11 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/07/23 16:05:40 phessler Exp $
|
||||
include/libraw/
|
||||
include/libraw/libraw.h
|
||||
include/libraw/libraw_alloc.h
|
||||
include/libraw/libraw_const.h
|
||||
include/libraw/libraw_datastream.h
|
||||
include/libraw/libraw_internal.h
|
||||
include/libraw/libraw_types.h
|
||||
include/libraw/libraw_version.h
|
||||
lib/libraw.a
|
||||
lib/libraw_r.a
|
Loading…
Reference in New Issue
Block a user