```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 ```
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Template file for 'libogre'
|
|
pkgname=libogre
|
|
version=1.12.9
|
|
revision=1
|
|
wrksrc=ogre-$version
|
|
build_style=cmake
|
|
configure_args="-DOGRE_INSTALL_SAMPLES=TRUE -DOGRE_INSTALL_DOCS=TRUE
|
|
-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE -DOGRE_BUILD_DEPENDENCIES=FALSE"
|
|
make_build_target="all OgreDoc"
|
|
hostmakedepends="pkg-config graphviz doxygen dejavu-fonts-ttf"
|
|
makedepends="boost-devel freetype-devel libXaw-devel libXrandr-devel
|
|
MesaLib-devel zziplib-devel libcppunit-devel glu-devel libatomic-devel
|
|
freeimage-devel pugixml-devel python3-devel"
|
|
short_desc="Scene-oriented, flexible 3D engine"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.ogre3d.org"
|
|
distfiles="https://github.com/OGRECave/ogre/archive/v$version.tar.gz"
|
|
checksum=028e7d0bbfce8fd254e1102666b07b7cbb9379321e88885d82feee5e061342aa
|
|
|
|
pre_configure() {
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
find -name CMakeLists.txt -exec sed -i "{}" \
|
|
-e "/target_link_libraries/s/)/ atomic)/" \;
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir /usr/share/doc
|
|
vcopy build/Docs /usr/share/doc/libogre
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libogre-devel_package() {
|
|
depends="libogre>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libogre-doc_package() {
|
|
depends="libogre>=${version}_${revision}"
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
vmove /usr/share/doc/libogre
|
|
}
|
|
}
|