Add LibRaw package.
This commit is contained in:
12
mingw-w64-LibRaw/LibRaw_obsolete-macros.patch
Normal file
12
mingw-w64-LibRaw/LibRaw_obsolete-macros.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -rupN LibRaw-0.15.4/configure.ac LibRaw-0.15.4-new/configure.ac
|
||||
--- LibRaw-0.15.4/configure.ac 2013-08-23 04:55:48.000000000 +0200
|
||||
+++ LibRaw-0.15.4-new/configure.ac 2014-01-13 17:32:09.891037432 +0100
|
||||
@@ -7,7 +7,7 @@ AC_CONFIG_MACRO_DIR([m4])
|
||||
# Tools to use
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CC
|
||||
-AC_PROG_LIBTOOL
|
||||
+LT_INIT
|
||||
AC_ENABLE_SHARED
|
||||
AC_ENABLE_STATIC
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
14
mingw-w64-LibRaw/LibRaw_wsock32.patch
Normal file
14
mingw-w64-LibRaw/LibRaw_wsock32.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff -rupN LibRaw-0.15.4/Makefile.am LibRaw-0.15.4-new/Makefile.am
|
||||
--- LibRaw-0.15.4/Makefile.am 2013-08-23 04:55:48.000000000 +0200
|
||||
+++ LibRaw-0.15.4-new/Makefile.am 2013-12-28 00:56:56.418284134 +0100
|
||||
@@ -41,8 +41,8 @@ lib_libraw_r_a_CFLAGS = -pthread -w
|
||||
lib_libraw_la_SOURCES = $(lib_libraw_a_SOURCES)
|
||||
lib_libraw_r_la_SOURCES = $(lib_libraw_a_SOURCES)
|
||||
|
||||
-lib_libraw_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER)
|
||||
-lib_libraw_r_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER)
|
||||
+lib_libraw_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER) -lwsock32
|
||||
+lib_libraw_r_la_LDFLAGS = -no-undefined -version-info $(LIBRAW_SHLIB_VER) -lwsock32
|
||||
|
||||
|
||||
# Sample binaries
|
||||
58
mingw-w64-LibRaw/PKGBUILD
Normal file
58
mingw-w64-LibRaw/PKGBUILD
Normal file
@@ -0,0 +1,58 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
|
||||
_realname=LibRaw
|
||||
_mingw_suff=mingw-w64-${CARCH}
|
||||
pkgname="${_mingw_suff}-${_realname}"
|
||||
pkgver=0.16.0
|
||||
pkgrel=1
|
||||
pkgdesc="Library for reading RAW files obtained from digital photo cameras (mingw-w64)"
|
||||
arch=(any)
|
||||
url="http://www.libraw.org"
|
||||
license=("LGPL")
|
||||
makedepends=("${_mingw_suff}-gcc" "${_mingw_suff}-pkg-config")
|
||||
depends=("${_mingw_suff}-gcc-libs"
|
||||
"${_mingw_suff}-lcms2"
|
||||
"${_mingw_suff}-jasper")
|
||||
options=('staticlibs' 'strip')
|
||||
source=("http://www.libraw.org/data/${_realname}-${pkgver}.tar.gz"
|
||||
"http://www.libraw.org/data/${_realname}-demosaic-pack-GPL2-${pkgver}.tar.gz"
|
||||
"http://www.libraw.org/data/${_realname}-demosaic-pack-GPL3-${pkgver}.tar.gz"
|
||||
"LibRaw_wsock32.patch"
|
||||
"LibRaw_obsolete-macros.patch")
|
||||
sha256sums=('71f43871ec2535345c5c9b748f07813e49915170f9510b721a2be6478426cf96'
|
||||
'749d49694ce729166ec7a1faf7580780687ef190c756931bb075455ee8ed6697'
|
||||
'f2e904f9baa7d173b5ade163c795f26e110255a758e31bd213086a5a61500b5c'
|
||||
'4bd077917fb8f37fa736e3a8bf32fabe3df3ff5438b684acbb5adff8a6c2a73b'
|
||||
'4a31c0ee066f43915beff6f7959b6b2cd246d390720df379bfc047d4cedb6a8f')
|
||||
|
||||
prepare() {
|
||||
mv $srcdir/${_realname}-demosaic-pack-GPL2-${pkgver} $srcdir/${_realname}-$pkgver/
|
||||
mv $srcdir/${_realname}-demosaic-pack-GPL3-${pkgver} $srcdir/${_realname}-$pkgver/
|
||||
cd "$srcdir/${_realname}-$pkgver"
|
||||
patch -Np1 -i "$srcdir/LibRaw_wsock32.patch"
|
||||
patch -Np1 -i "$srcdir/LibRaw_obsolete-macros.patch"
|
||||
|
||||
autoreconf -ifv
|
||||
}
|
||||
|
||||
build() {
|
||||
CPPFLAGS+=" -DLIBRAW_NODLL"
|
||||
[[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}"
|
||||
mkdir -p "${srcdir}/build-${MINGW_CHOST}"
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
"${srcdir}"/${_realname}-$pkgver/configure \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--enable-jasper \
|
||||
--enable-lcms \
|
||||
--enable-demosaic-pack-gpl2 \
|
||||
--enable-demosaic-pack-gpl3
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
Reference in New Issue
Block a user