mirror of
https://github.com/Ponce/slackbuilds
synced 2024-10-01 06:32:51 +02:00
development/ming: Updated for version 0.4.4.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
3f132a9638
commit
c0635bf7d8
5 changed files with 35 additions and 28 deletions
|
@ -6,7 +6,7 @@ morphs), text, sprites (aka movie clips), buttons, and actions
|
|||
in flash movies, plus more. The goal for Ming is to abstract
|
||||
away all of the mundane specifics of the SWF file format.
|
||||
|
||||
This package contains the c++, perl, python, php and tcl-plugin.
|
||||
To enable the php-plugin you have to add
|
||||
extension=php_ming.so
|
||||
to the appropriate place in /etc/httpd/php.ini
|
||||
This builds the c++, perl, python, php and tcl-plugin.
|
||||
To enable the php extension, go to /etc/php/ming.ini
|
||||
and uncomment the line:
|
||||
; extension=ming.so
|
||||
|
|
15
development/ming/doinst.sh
Normal file
15
development/ming/doinst.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/php/ming.ini.new
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for ming
|
||||
|
||||
# Copyright 2008-2010 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# Copyright 2008-2011 Heinz Wiesinger, Amsterdam, The Netherlands
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,16 +23,14 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=ming
|
||||
VERSION=0.4.3
|
||||
VERSION=0.4.4
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -44,15 +42,12 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
PERL_ARCH="i486"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
PERL_ARCH="i486"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
PERL_ARCH="x86_64"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
|
@ -100,6 +95,9 @@ cd perl_ext
|
|||
make install DESTDIR=$PKG
|
||||
cd -
|
||||
|
||||
# Install config file for PHP.
|
||||
install -D -m 644 $CWD/ming.ini $PKG/etc/php/ming.ini.new
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
|
||||
|
@ -107,27 +105,19 @@ mkdir -p $PKG/usr/man/man3
|
|||
mv $PKG/usr/share/man/man3/* $PKG/usr/man/man3/
|
||||
rm -rf $PKG/usr/share
|
||||
|
||||
# Remove perlocal.pod and .packlist from $PKG
|
||||
( for i in perllocal.pod .packlist *.bs; do
|
||||
find $PKG -name "$i" -exec rm -rf {} \;
|
||||
done
|
||||
# Remove empty directory
|
||||
PERLVER=$(perl -v | grep linux | cut -d " " -f 4 | sed "s/v//");
|
||||
rmdir --parents $PKG/usr/lib$LIBDIRSUFFIX/perl5/$PERLVER/$PERL_ARCH-linux-thread-multi 2>/dev/null || true
|
||||
)
|
||||
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
|
||||
find $PKG -depth -type d -empty -delete || true
|
||||
|
||||
( cd $PKG/usr/man || exit 1
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS ChangeLog COPYING HISTORY INSTALL LICENSE* NEWS README TODO \
|
||||
cp -a AUTHORS COPYING HISTORY INSTALL LICENSE* NEWS README TODO \
|
||||
$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:-tgz}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="ming"
|
||||
VERSION="0.4.3"
|
||||
VERSION="0.4.4"
|
||||
HOMEPAGE="http://www.libming.org"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/ming/ming-0.4.3.tar.bz2"
|
||||
MD5SUM="db6bae65d000e2f2ac78583fd453f99a"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/ming/ming-0.4.4.tar.bz2"
|
||||
MD5SUM="9e780f93670eaf68b1eefa6cdfc1d1e2"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Heinz Wiesinger"
|
||||
EMAIL="pprkut@liwjatan.at"
|
||||
APPROVED="Erik Hanson"
|
||||
APPROVED="rworkman"
|
||||
|
|
2
development/ming/ming.ini
Normal file
2
development/ming/ming.ini
Normal file
|
@ -0,0 +1,2 @@
|
|||
; Enable ming extension module
|
||||
; extension=ming.so
|
Loading…
Reference in a new issue