diff options
author | gls <gls@pkgsrc.org> | 2010-11-15 18:59:38 +0000 |
---|---|---|
committer | gls <gls@pkgsrc.org> | 2010-11-15 18:59:38 +0000 |
commit | e6226fd717830e00333ea0553ca10dbd872c4995 (patch) | |
tree | 2908db2a96e075d6d4f63ccc99a6555f8c203bea /graphics/libraw | |
parent | 7ed40f08e2aeadb65d12d0ad2d215cd7a8022637 (diff) | |
download | pkgsrc-e6226fd717830e00333ea0553ca10dbd872c4995.tar.gz |
Import libraw 0.11.2 into the NetBSD Packages collection.
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.
Diffstat (limited to 'graphics/libraw')
-rw-r--r-- | graphics/libraw/DESCR | 7 | ||||
-rw-r--r-- | graphics/libraw/Makefile | 35 | ||||
-rw-r--r-- | graphics/libraw/PLIST | 19 | ||||
-rw-r--r-- | graphics/libraw/buildlink3.mk | 12 | ||||
-rw-r--r-- | graphics/libraw/distinfo | 5 | ||||
-rw-r--r-- | graphics/libraw/files/raw.pc | 10 |
6 files changed, 88 insertions, 0 deletions
diff --git a/graphics/libraw/DESCR b/graphics/libraw/DESCR new file mode 100644 index 00000000000..02539cefab8 --- /dev/null +++ b/graphics/libraw/DESCR @@ -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. diff --git a/graphics/libraw/Makefile b/graphics/libraw/Makefile new file mode 100644 index 00000000000..22d178553ef --- /dev/null +++ b/graphics/libraw/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/11/15 18:59:38 gls Exp $ +# + +DISTNAME= LibRaw-0.11.2 +PKGNAME= ${DISTNAME:tl} +CATEGORIES= graphics +MASTER_SITES= http://www.libraw.org/data/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.libraw.org/ +COMMENT= Raw decoding/processing library +LICENSE= gnu-lgpl-v2.1 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= c c++ +HAS_CONFIGURE= yes +CONFIGURE_ARGS= -P ${PREFIX} + +SUBST_CLASSES+= pc +SUBST_STAGE.pc= post-configure +SUBST_MESSAGE.pc= Fixing prefix and version in raw.pc file. +SUBST_FILES.pc= raw.pc +SUBST_SED.pc= -e 's,@@PREFIX@@,${PREFIX},' +SUBST_SED.pc+= -e 's,@@VERSION@@,${PKGVERSIONi_NOREV},' + +INSTALLATION_DIRS+= lib/pkgconfig + +pre-configure: + ${CP} ${FILESDIR}/raw.pc ${WRKSRC} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/raw.pc ${DESTDIR}${PREFIX}/lib/pkgconfig + +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/libraw/PLIST b/graphics/libraw/PLIST new file mode 100644 index 00000000000..466a774aa70 --- /dev/null +++ b/graphics/libraw/PLIST @@ -0,0 +1,19 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2010/11/15 18:59:38 gls Exp $ +bin/4channels +bin/dcraw_emu +bin/dcraw_half +bin/half_mt +bin/mem_image +bin/raw-identify +bin/simple_dcraw +bin/unprocessed_raw +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 +lib/pkgconfig/raw.pc diff --git a/graphics/libraw/buildlink3.mk b/graphics/libraw/buildlink3.mk new file mode 100644 index 00000000000..6fea10e371f --- /dev/null +++ b/graphics/libraw/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/11/15 18:59:38 gls Exp $ + +BUILDLINK_TREE+= libraw + +.if !defined(LIBRAW_BUILDLINK3_MK) +LIBRAW_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libraw+= libraw>=0.10.0 +BUILDLINK_PKGSRCDIR.libraw?= ../../graphics/libraw +.endif # LIBRAW_BUILDLINK3_MK + +BUILDLINK_TREE+= -libraw diff --git a/graphics/libraw/distinfo b/graphics/libraw/distinfo new file mode 100644 index 00000000000..72027fe01ec --- /dev/null +++ b/graphics/libraw/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/11/15 18:59:38 gls Exp $ + +SHA1 (LibRaw-0.11.2.tar.gz) = a329c786a4b11aafd7f2210030a2557b5e4bb45d +RMD160 (LibRaw-0.11.2.tar.gz) = 4beb755de307108577e64fd71361959b9605df95 +Size (LibRaw-0.11.2.tar.gz) = 572267 bytes diff --git a/graphics/libraw/files/raw.pc b/graphics/libraw/files/raw.pc new file mode 100644 index 00000000000..2e7c8fe23ee --- /dev/null +++ b/graphics/libraw/files/raw.pc @@ -0,0 +1,10 @@ +prefix=@@PREFIX@@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: raw +Description: libraw +Version: @@VERSION@@ +Libs: -Wl,-R${libdir} -L${libdir} -lraw +Cflags: -I${includedir}/libraw |