aboutsummaryrefslogtreecommitdiff
path: root/libraries/lib3ds
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lib3ds')
-rw-r--r--libraries/lib3ds/README37
-rw-r--r--libraries/lib3ds/lib3ds.SlackBuild124
-rw-r--r--libraries/lib3ds/lib3ds.info10
-rw-r--r--libraries/lib3ds/slack-desc19
4 files changed, 190 insertions, 0 deletions
diff --git a/libraries/lib3ds/README b/libraries/lib3ds/README
new file mode 100644
index 0000000000..92f1934282
--- /dev/null
+++ b/libraries/lib3ds/README
@@ -0,0 +1,37 @@
+lib3ds is an overall software library for managing 3D-Studio Release 3
+and 4 ".3DS" files.
+
+lib3ds is an overall software library for managing 3D-Studio Release 3
+and 4 ".3DS" files. It is a free alternative to Autodesk's 3DS File
+Toolkit for managing 3DS files. It started out in 1996 to be released
+in 1999 under the GNU General Public License (GPL) as Open-Source
+software. In 2000, the library was completely rewritten in ANSI-C to
+attain more hardware platform independence. To enable commercial
+application the license was changed to GNU Lesser General Public
+License (LGPL).
+
+Features
+Written in portable ANSI-C
+Supported platforms:
+GNU build tools (autoconf, automake, libtool)
+UNIX
+Mac OS X
+Microsoft Visual C++ 8.0
+Supports little and big endian CPUs
+Load and save:
+Atmosphere settings
+Background settings
+Shadow map settings
+Viewport setting
+Materials
+Cameras
+Lights
+Meshes
+Hierarchy
+Keyframes
+Evaluation of all animation (keyframing) data
+Simple easy to manipulate data structures
+Vector mathematics module
+Quaternion mathematics module
+Matrix mathematics module
+Integrates seamless with OpenGL
diff --git a/libraries/lib3ds/lib3ds.SlackBuild b/libraries/lib3ds/lib3ds.SlackBuild
new file mode 100644
index 0000000000..e8169b6aa5
--- /dev/null
+++ b/libraries/lib3ds/lib3ds.SlackBuild
@@ -0,0 +1,124 @@
+#!/bin/bash
+
+# Slackware build script for lib3ds
+
+# Copyright 2025, Lockywolf
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=lib3ds
+VERSION=${VERSION:-1.3.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ 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
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+unzip $CWD/$PRGNAM-$VERSION.zip
+cd $PRGNAM-$VERSION
+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 \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
+
+(
+mkdir build
+cd build
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+../configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+)
+
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+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
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ ChangeLog TODO AUTHORS COPYING README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+#cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/lib3ds/lib3ds.info b/libraries/lib3ds/lib3ds.info
new file mode 100644
index 0000000000..24cb847c8d
--- /dev/null
+++ b/libraries/lib3ds/lib3ds.info
@@ -0,0 +1,10 @@
+PRGNAM="lib3ds"
+VERSION="1.3.0"
+HOMEPAGE="https://code.google.com/archive/p/lib3ds/"
+DOWNLOAD="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/lib3ds/lib3ds-1.3.0.zip"
+MD5SUM="2572f7b0f29b591d494c1a0658b35c86"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Lockywolf"
+EMAIL="for_sbo.lib3ds_2025-02-10@lockywolf.net"
diff --git a/libraries/lib3ds/slack-desc b/libraries/lib3ds/slack-desc
new file mode 100644
index 0000000000..5fd7e0e69e
--- /dev/null
+++ b/libraries/lib3ds/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+lib3ds: lib3ds (ibrary for managing 3D-Studio Release 3 and 4 .3ds files)
+lib3ds:
+lib3ds: lib3ds is an overall software library for managing 3D-Studio Release
+lib3ds: 3 and 4 ".3DS" files. lib3ds is an overall software library for
+lib3ds: managing 3D-Studio Release 3 and 4 ".3DS" files. It is a free
+lib3ds: alternative to Autodesk's 3DS File Toolkit for managing 3DS files.
+lib3ds: It started out in 1996 to be released in 1999 under the GNU General
+lib3ds: Public License (GPL) as Open-Source software. In 2000, the library
+lib3ds: was completely rewritten in ANSI-C to attain more hardware platform
+lib3ds: independence. To enable commercial application the license was
+lib3ds: changed to GNU Lesser General Public License (LGPL).