Browse Source

l/fltk: Upgraded to fltk-1.3.0.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
91ffc8867d
  1. 1
      l/fltk/fltk-1.1.9-source.tar.bz2.sha1
  2. 1
      l/fltk/fltk-1.3.0-source.tar.gz.sha1
  3. 33
      l/fltk/fltk.SlackBuild

1
l/fltk/fltk-1.1.9-source.tar.bz2.sha1

@ -1 +0,0 @@
6f21903dc53c829ec71e8e49655eb19e624c8247 fltk-1.1.9-source.tar.bz2

1
l/fltk/fltk-1.3.0-source.tar.gz.sha1

@ -0,0 +1 @@
720f2804be6132ebae9909d4e74dedcc00b39d25 fltk-1.3.0-source.tar.gz

33
l/fltk/fltk.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008 Damien Goutte-Gattat
# Copyright (C) 2008,2011 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,20 +27,20 @@
# Source package infos
NAMESRC=${NAMESRC:-fltk}
VERSION=${VERSION:-1.1.9}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-source.tar.bz2}
WGET=${WGET:-ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/fltk/$VERSION/$ARCHIVE}
VERSION=${VERSION:-1.3.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-source.tar.gz}
WGET=${WGET:-http://ftp.easysw.com/pub/fltk/$VERSION/$ARCHIVE}
# Built package infos
NAMETGZ=${NAMETGZ:-fltk}
NAMEPKG=${NAMEPKG:-fltk}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMETGZ}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
set -e # Quit if a command returns non-zero
@ -56,10 +56,15 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
;;
@ -67,7 +72,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -80,8 +86,9 @@ cd $NAME
sed -ri 's/^docdir.+$/docdir = @docdir@/' makeinclude.in
./configure \
--prefix=/usr \
--libdir=/usr/lib64 \
--mandir=/usr/man \
--docdir=/usr/doc/$NAMETGZ-$VERSION/html \
--docdir=/usr/doc/$NAMEPKG-$VERSION \
--enable-shared \
--enable-threads \
--enable-xft \
@ -92,7 +99,7 @@ make -j 3
make install DESTDIR=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Compress man pages
@ -101,7 +108,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
install -m 644 \
ANNOUNCEMENT CHANGES COPYING CREDITS README \
$PKG/usr/doc/$NAMETGZ-$VERSION
$PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -111,7 +118,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMETGZ-$VERSION-$ARCH-$BUILD.tgz
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save