aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-24 16:57:04 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-25 22:58:05 +0700
commited2d4d7e9f767774ee64519297c6183e7c5166e1 (patch)
treea5ce811076fc8a30f41c10dbe0148efde36d82c5
parentdb62a8f6368f37acb86e36ee029c9663cddd9c90 (diff)
graphics/OpenSubdiv: Fix github URL, remove static libs.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/OpenSubdiv/OpenSubdiv.SlackBuild23
-rw-r--r--graphics/OpenSubdiv/OpenSubdiv.info2
-rw-r--r--graphics/OpenSubdiv/README14
3 files changed, 21 insertions, 18 deletions
diff --git a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild
index c17ad7269ed1..e0cb77c13b50 100644
--- a/graphics/OpenSubdiv/OpenSubdiv.SlackBuild
+++ b/graphics/OpenSubdiv/OpenSubdiv.SlackBuild
@@ -23,12 +23,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - fix github download URL.
+# - don't install static libraries.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OpenSubdiv
VERSION=${VERSION:-3.4.4}
SRCVER=$(echo $VERSION | tr . _)
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +44,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -71,14 +72,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
mkdir -p build
cd build
@@ -91,12 +92,9 @@ cd build
-DCMAKE_BUILD_TYPE=Release ..
make
- make install DESTDIR=$PKG
+ make install/strip DESTDIR=$PKG
cd ..
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -rf documentation/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -104,6 +102,9 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Can't have tutorials directory in /usr/bin
mv $PKG/usr/bin/tutorials $PKG/usr/doc/$PRGNAM-$VERSION/
+# 20220224 bkw: get rid of static libs.
+rm -f $PKG/usr/lib*/*.a
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/graphics/OpenSubdiv/OpenSubdiv.info b/graphics/OpenSubdiv/OpenSubdiv.info
index af3cf5da9987..80af2f00f3ff 100644
--- a/graphics/OpenSubdiv/OpenSubdiv.info
+++ b/graphics/OpenSubdiv/OpenSubdiv.info
@@ -1,7 +1,7 @@
PRGNAM="OpenSubdiv"
VERSION="3.4.4"
HOMEPAGE="http://graphics.pixar.com/opensubdiv"
-DOWNLOAD="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_4_4/OpenSubdiv-3.4.4.tar.gz"
+DOWNLOAD="https://github.com/PixarAnimationStudios/OpenSubdiv/archive/v3_4_4/OpenSubdiv-3_4_4.tar.gz"
MD5SUM="39ecc5caf0abebc943d1ce131855e76e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/graphics/OpenSubdiv/README b/graphics/OpenSubdiv/README
index cc70b261c972..18aa13c063b0 100644
--- a/graphics/OpenSubdiv/README
+++ b/graphics/OpenSubdiv/README
@@ -1,7 +1,9 @@
-OpenSubdiv is a set of open source libraries that implement high performance
-subdivision surface (subdiv) evaluation on massively parallel CPU and
-GPU architectures. This code path is optimized for drawing deforming surfaces
-with static topology at interactive framerates.
+OpenSubdiv is a set of open source libraries that implement high
+performance subdivision surface (subdiv) evaluation on massively
+parallel CPU and GPU architectures. This code path is optimized
+for drawing deforming surfaces with static topology at interactive
+framerates.
-Additional utility is available in OpenSubdiv when the following SBo packages
-are installed and detected at build time: tbb cudatoolkit glfw
+Additional utility is available in OpenSubdiv when the following SBo
+packages are installed and detected at build time: tbb cudatoolkit
+glfw