From 5f73330e29981688068ede388830d3ee97add1fc Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sat, 17 Apr 2021 10:46:05 +0200 Subject: [PATCH] New package: ptex-2.3.2 --- common/shlibs | 1 + srcpkgs/ptex-devel | 1 + srcpkgs/ptex/template | 29 +++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 120000 srcpkgs/ptex-devel create mode 100644 srcpkgs/ptex/template diff --git a/common/shlibs b/common/shlibs index 5f51c81f52..a0ded24667 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2968,6 +2968,7 @@ libPocoRedis.so.64 poco-1.9.4_3 libPocoEncodings.so.64 poco-1.9.4_3 libPocoNetSSL.so.64 poco-1.9.4_3 libPocoCrypto.so.64 poco-1.9.4_3 +libPtex.so ptex-2.3.2_1 libopenblas.so.0 openblas-0.2.19_1 librtaudio.so.6 rtaudio-5.1.0_1 librtmidi.so.5 rtmidi-4.0.0_1 diff --git a/srcpkgs/ptex-devel b/srcpkgs/ptex-devel new file mode 120000 index 0000000000..43a4f13c2a --- /dev/null +++ b/srcpkgs/ptex-devel @@ -0,0 +1 @@ +ptex \ No newline at end of file diff --git a/srcpkgs/ptex/template b/srcpkgs/ptex/template new file mode 100644 index 0000000000..f6a5347ccb --- /dev/null +++ b/srcpkgs/ptex/template @@ -0,0 +1,29 @@ +# Template file for 'ptex' +pkgname=ptex +version=2.3.2 +revision=1 +build_style=cmake +configure_args="-DPTEX_VER=$version" +hostmakedepends="pkg-config" +makedepends="zlib-devel" +short_desc="Per-Face Texture Mapping for Production Rendering" +maintainer="Enno Boland " +license="BSD-3-Clause" +homepage="http://ptex.us/" +distfiles="https://github.com/wdas/ptex/archive/refs/tags/v${version}.tar.gz" +checksum=30aeb85b965ca542a8945b75285cd67d8e207d23dbb57fcfeaab587bb443402b + +post_install() { + sed '1,/\/\*/d;/\*\//,$d' src/ptex/PtexCache.h > LICENSE + vlicense LICENSE +} + +ptex-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/share/cmake + vmove usr/include + vmove "usr/lib/*.a" + } +}