diff options
author | bartus | 2020-09-29 22:31:08 +0200 |
---|---|---|
committer | Your Name | 2020-09-30 10:53:17 +0200 |
commit | a95dcca1d121eea7bbafba20733c01ca67acec0b (patch) | |
tree | e327c2b1da5d1f0bb23a19b2894c233afa2284f4 | |
parent | 51ca1069e20e748603a9da0f668166d2d4d80b73 (diff) | |
download | aur-a95dcca1d121eea7bbafba20733c01ca67acec0b.tar.gz |
Drop redundant internals, turn on Python support.
* turn off internal: ffmpeg, freetype, glm, glew, rtaudio, libpng,
libtiff, libjpeg, openimageio, openexr, ilmbase, zlib,
* left internal: picojson, fseq, glad, pybind11
Signed-off-by: Your Name <you@example.com>
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | drop-third-party.patch | 42 | ||||
-rw-r--r-- | ffmpeg-install.patch | 34 | ||||
-rw-r--r-- | rtaudio-hint.patch | 11 |
5 files changed, 111 insertions, 4 deletions
@@ -6,21 +6,32 @@ pkgbase = djv arch = x86_64 license = CUSTOM makedepends = cmake + depends = ffmpeg + depends = freetype2 + depends = glfw depends = glm depends = libjpeg depends = libpng depends = libtiff - depends = ffmpeg + depends = opencolorio depends = openexr + depends = python depends = rtaudio + depends = zlib source = djv-2.0.8.tgz::https://github.com/darbyjohnston/DJV/archive/2.0.8.tar.gz source = djv.desktop source = djv.sh source = disable_tests_and_examples.patch + source = drop-third-party.patch + source = rtaudio-hint.patch + source = ffmpeg-install.patch sha256sums = bee18559d8a04b361376741900f21f69c637b51306d2b504b67f125dd14fd427 sha256sums = ca440bc9c1713e9edb17ed5adc0456441e69af25f803c834427f23a6991e2eca sha256sums = e2bb0b7ebccd1e645d9a62f0c6dadafb94705766c787a2ea38b91b1da4e95cf7 sha256sums = edd3888cc651edcd2cc5d03fcde44283f75de7aee04cc9f02eafdb108140dfdf + sha256sums = f002c2586bed5c97f78a329379a85988c270751fc46cd6e9dd05103a52728618 + sha256sums = 50474a248f3259b6cf0a1439dc9fd4e34f211113e5f64116cb6df95bee8271f0 + sha256sums = e923d4abd6d2233ac6464773ff771ea7115cba8ed3fc2d1955b2129ff014272e pkgname = djv @@ -8,7 +8,7 @@ arch=("x86_64") url="http://djv.sourceforge.net/" license=('CUSTOM') groups=() -depends=('glm' 'libjpeg' 'libpng' 'libtiff' 'ffmpeg' 'openexr' 'rtaudio') +depends=('ffmpeg' 'freetype2' 'glfw' 'glm' 'libjpeg' 'libpng' 'libtiff' 'opencolorio' 'openexr' 'python' 'rtaudio' 'zlib') makedepends=('cmake') replaces=() backup=() @@ -16,16 +16,25 @@ options=() source=("${pkgname}-${pkgver}.tgz::https://github.com/darbyjohnston/${pkgname^^}/archive/$pkgver.tar.gz" "djv.desktop" "djv.sh" - "disable_tests_and_examples.patch") + "disable_tests_and_examples.patch" + "drop-third-party.patch" + "rtaudio-hint.patch" + "ffmpeg-install.patch") noextract=() sha256sums=('bee18559d8a04b361376741900f21f69c637b51306d2b504b67f125dd14fd427' 'ca440bc9c1713e9edb17ed5adc0456441e69af25f803c834427f23a6991e2eca' 'e2bb0b7ebccd1e645d9a62f0c6dadafb94705766c787a2ea38b91b1da4e95cf7' - 'edd3888cc651edcd2cc5d03fcde44283f75de7aee04cc9f02eafdb108140dfdf') + 'edd3888cc651edcd2cc5d03fcde44283f75de7aee04cc9f02eafdb108140dfdf' + 'f002c2586bed5c97f78a329379a85988c270751fc46cd6e9dd05103a52728618' + '50474a248f3259b6cf0a1439dc9fd4e34f211113e5f64116cb6df95bee8271f0' + 'e923d4abd6d2233ac6464773ff771ea7115cba8ed3fc2d1955b2129ff014272e') prepare() { patch -b ${pkgname^^}-${pkgver}/CMakeLists.txt -i disable_tests_and_examples.patch + patch -b ${pkgname^^}-${pkgver}/third-party/CMakeLists.txt -i drop-third-party.patch + patch -b ${pkgname^^}-${pkgver}/cmake/Modules/FindRtAudio.cmake -i rtaudio-hint.patch + patch -b ${pkgname^^}-${pkgver}/cmake/Modules/FindFFmpeg.cmake -i ffmpeg-install.patch # Remove assert macro sed -i '44,51d' ${pkgname^^}-${pkgver}/lib/djvCore/Core.h diff --git a/drop-third-party.patch b/drop-third-party.patch new file mode 100644 index 000000000000..e5f38fe6c2d7 --- /dev/null +++ b/drop-third-party.patch @@ -0,0 +1,42 @@ +--- CMakeLists.txt.orig 2020-06-12 04:11:18.000000000 +0200 ++++ CMakeLists.txt 2020-09-28 22:34:58.109414300 +0200 +@@ -34,37 +34,23 @@ + endif() + + # Set the list of required dependencies. +-set(DJV_THIRD_PARTY_REQUIRED_DEPS ZLIB) + set(DJV_THIRD_PARTY_REQUIRED_DEPS +- ${DJV_THIRD_PARTY_REQUIRED_DEPS} + FSeq +- GLM +- GLFW + PicoJSON +- #OpenAL +- RtAudio +- IlmBase +- PNG +- OCIO +- #OTIO +- FreeType) ++ ) + + # Set the list of optional dependencies. + if(WIN32) + else() + set(DJV_THIRD_PARTY_OPTIONAL_DEPS + ${DJV_THIRD_PARTY_OPTIONAL_DEPS} +- NASM + #MbedTLS + ) + endif() + set(DJV_THIRD_PARTY_OPTIONAL_DEPS + ${DJV_THIRD_PARTY_OPTIONAL_DEPS} + #curl +- FFmpeg +- JPEGTurbo +- TIFF +- OpenEXR) ++ ) + if(WIN32) + set(DJV_THIRD_PARTY_OPTIONAL_DEPS + ${DJV_THIRD_PARTY_OPTIONAL_DEPS} diff --git a/ffmpeg-install.patch b/ffmpeg-install.patch new file mode 100644 index 000000000000..7953ee3d66b2 --- /dev/null +++ b/ffmpeg-install.patch @@ -0,0 +1,34 @@ +--- FindFFmpeg.cmake.orig 2020-09-29 06:54:28.852902300 +0200 ++++ FindFFmpeg.cmake 2020-09-29 06:54:51.001983600 +0200 +@@ -175,31 +175,6 @@ + ${CMAKE_PREFIX_PATH}/lib/libswscale.5.dylib + ${CMAKE_PREFIX_PATH}/lib/libswscale.5.5.100.dylib + DESTINATION lib) +- else() +- install( +- FILES +- ${FFmpeg_LIBAVCODEC} +- ${FFmpeg_LIBAVCODEC}.58 +- ${FFmpeg_LIBAVCODEC}.58.54.100 +- ${FFmpeg_LIBAVDEVICE} +- ${FFmpeg_LIBAVDEVICE}.58 +- ${FFmpeg_LIBAVDEVICE}.58.8.100 +- ${FFmpeg_LIBAVFILTER} +- ${FFmpeg_LIBAVFILTER}.7 +- ${FFmpeg_LIBAVFILTER}.7.57.100 +- ${FFmpeg_LIBAVFORMAT} +- ${FFmpeg_LIBAVFORMAT}.58 +- ${FFmpeg_LIBAVFORMAT}.58.29.100 +- ${FFmpeg_LIBAVUTIL} +- ${FFmpeg_LIBAVUTIL}.56 +- ${FFmpeg_LIBAVUTIL}.56.31.100 +- ${FFmpeg_LIBSWRESAMPLE} +- ${FFmpeg_LIBSWRESAMPLE}.3 +- ${FFmpeg_LIBSWRESAMPLE}.3.5.100 +- ${FFmpeg_LIBSWSCALE} +- ${FFmpeg_LIBSWSCALE}.5 +- ${FFmpeg_LIBSWSCALE}.5.5.100 +- DESTINATION lib) + endif() + endif() + diff --git a/rtaudio-hint.patch b/rtaudio-hint.patch new file mode 100644 index 000000000000..63f960e475fe --- /dev/null +++ b/rtaudio-hint.patch @@ -0,0 +1,11 @@ +--- FindRtAudio.cmake.orig 2020-09-28 22:51:24.097145800 +0200 ++++ FindRtAudio.cmake 2020-09-28 22:50:50.315908600 +0200 +@@ -14,7 +14,7 @@ + # + # * RtAudio + +-find_path(RtAudio_INCLUDE_DIR NAMES RtAudio.h) ++find_path(RtAudio_INCLUDE_DIR NAMES RtAudio.h HINTS /usr/include/rtaudio) + set(RtAudio_INCLUDE_DIRS ${RtAudio_INCLUDE_DIR}) + + if(WIN32) |