2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'opencolorio'
|
|
pkgname=opencolorio
|
|
version=1.1.1
|
|
revision=1
|
|
wrksrc="OpenColorIO-${version}"
|
|
build_style=cmake
|
|
configure_args="-DUSE_EXTERNAL_TINYXML=ON -DUSE_EXTERNAL_LCMS=ON"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) ;;
|
|
*) configure_args+=" -DOCIO_USE_SSE=OFF" ;;
|
|
esac
|
|
make_cmd=make
|
|
hostmakedepends="pkg-config git"
|
|
makedepends="tinyxml-devel lcms2-devel"
|
|
short_desc="A complete color management solution"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="openimageio"
|
|
homepage="http://opencolorio.org"
|
|
changelog="https://raw.githubusercontent.com/imageworks/OpenColorIO/master/ChangeLog"
|
|
distfiles="https://github.com/imageworks/OpenColorIO/archive/v${version}.tar.gz"
|
|
checksum=c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8
|
|
|
|
export CMAKE_GENERATOR="Unix Makefiles"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
opencolorio-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/cmake
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|