diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-22 10:59:35 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-22 10:59:35 -0400 |
commit | 9783d5ef8d37772fe7f2ab646e6e66b06f19de59 (patch) | |
tree | 045051fdce966de54f92d91a12993723d84c4f94 /libraries/libxmp | |
parent | b481cef66234df5591a85c69f8798bd60c743042 (diff) | |
download | slackbuilds-9783d5ef8d37772fe7f2ab646e6e66b06f19de59.tar.gz |
libraries/libxmp: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libxmp')
-rw-r--r-- | libraries/libxmp/libxmp.SlackBuild | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/libraries/libxmp/libxmp.SlackBuild b/libraries/libxmp/libxmp.SlackBuild index 15036e78bb..523994c3fd 100644 --- a/libraries/libxmp/libxmp.SlackBuild +++ b/libraries/libxmp/libxmp.SlackBuild @@ -22,36 +22,37 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220422 bkw: Modified by SlackBuilds.org, BUILD=3: +# - fix PRINT_PACKAGE_NAME. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libxmp VERSION=${VERSION:-4.4.1} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# 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 [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" |