New upstream version 1.0.5
This commit is contained in:
11
packaging/MacOSX/Description.plist
Normal file
11
packaging/MacOSX/Description.plist
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id$ -->
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IFPkgDescriptionDescription</key>
|
||||
<string>Description</string>
|
||||
<key>IFPkgDescriptionTitle</key>
|
||||
<string>OpenNX Client for MacOSX</string>
|
||||
</dict>
|
||||
</plist>
|
||||
74
packaging/MacOSX/Makefile.am
Normal file
74
packaging/MacOSX/Makefile.am
Normal file
@@ -0,0 +1,74 @@
|
||||
BUILDUSR = $(shell id -u):$(shell id -g)
|
||||
SUBDIRS = pulse
|
||||
|
||||
dmg: pkg
|
||||
rm -rf dmgroot
|
||||
mkdir dmgroot
|
||||
sudo cp -R OpenNX.pkg dmgroot
|
||||
cp $(srcdir)/OpenSC.webloc dmgroot
|
||||
$(srcdir)/mkdmg -o \
|
||||
-b $(srcdir)/folderbg.jpg \
|
||||
-f $(srcdir)/fileopts \
|
||||
-i $(srcdir)/volicon.icns \
|
||||
$(top_builddir)/OpenNX-$(FULLVERSION).dmg dmgroot
|
||||
sudo rm -rf dmgroot
|
||||
touch $@
|
||||
|
||||
createpkgroot: opennx.plist opennx-main.plist
|
||||
sudo rm -rf pkgroot
|
||||
mkdir -p pkgroot/Applications/OpenNX
|
||||
mkdir -p pkgroot$(prefix)
|
||||
$(srcdir)/mkbundle pkgroot/Applications/OpenNX/OpenNX.app OpenNXapp \
|
||||
$(top_srcdir)/extres/nx.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx-main.plist "OPNX"
|
||||
cp $(top_srcdir)/extres/nx-desktop.icns \
|
||||
pkgroot/Applications/OpenNX/OpenNX.app/Contents/Resources
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Session Administrator.app" OpenNXAdmin \
|
||||
$(top_srcdir)/extres/opennx-admin.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --admin
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Connection Wizard.app" OpenNXWizard \
|
||||
$(top_srcdir)/extres/opennx-wizard.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --wizard
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Uninstall OpenNX.app" "" \
|
||||
$(top_srcdir)/extres/opennx-uninstall.icns $(bindir)/macuninstall \
|
||||
$(srcdir)/opennx.plist ""
|
||||
$(srcdir)/mkbundle pkgroot/Library/OpenNX/Message.app OpenNXMessage \
|
||||
$(top_srcdir)/extres/nx.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --dialog ok --style info --caption CARDREMOVED --message CARDREMOVED
|
||||
|
||||
pkgdir: createpkgroot
|
||||
rm -rf nxbuild
|
||||
mkdir nxbuild
|
||||
(cd nxbuild ; DEST=$(abs_builddir)/pkgroot PFX=$(prefix) CC=$(CC) CXX=$(CXX) OSX_SDKFLAGS="$(OSX_SDKFLAGS)" $(abs_srcdir)/buildnx)
|
||||
$(MAKE) -C pulse PKGROOT=$(abs_builddir)/pkgroot upinstall
|
||||
$(MAKE) -C $(top_builddir) DESTDIR=$(abs_builddir)/pkgroot install
|
||||
$(MAKE) -C $(top_builddir) DESTDIR=$(abs_builddir)/pkgroot prefix=/usr install-man
|
||||
for lang in $(shell cat $(top_srcdir)/po/LINGUAS) ; do \
|
||||
$(INSTALL_DATA) $(WX_PREFIX)/share/locale/$$lang/LC_MESSAGES/wxstd.mo \
|
||||
pkgroot/$(localedir)/$$lang/LC_MESSAGES/ ; \
|
||||
done
|
||||
touch $@
|
||||
|
||||
pkg: pkgdir pkg.plist
|
||||
sudo chown -R -h root:admin pkgroot
|
||||
sudo chown -R root:wheel pkgroot/usr
|
||||
sudo chown -R root:admin pkgroot/usr/share/man/man1/*
|
||||
sudo chown root:wheel pkgroot/Library
|
||||
sudo chmod ug=rwx,o=rx pkgroot/Applications
|
||||
sudo chmod u=rwx,go=rx pkgroot/Library
|
||||
rm -rf OpenNX.pkg
|
||||
cd $(builddir) && $(PACKAGEMAKER) -build -p OpenNX.pkg -f pkgroot -v \
|
||||
-r $(srcdir)/pkgResources \
|
||||
-i $(srcdir)/pkg.plist \
|
||||
-d $(srcdir)/Description.plist
|
||||
sudo chown -R $(BUILDUSR) pkgroot
|
||||
touch $@
|
||||
|
||||
clean-local:
|
||||
test -d pkgroot && sudo rm -rf pkgroot || :
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
CLEANFILES = -rf pkg pkgdir dmg dmgroot nxbuild OpenNX.pkg scbuild
|
||||
EXTRA_DIST = Description.plist OpenSC.webloc buildnx buildopensc \
|
||||
buildsmbclient fileopts folderbg.jpg mkbundle mkdmg \
|
||||
pkgResources libsmbclient.h volicon.icns volicon.png
|
||||
8
packaging/MacOSX/OpenSC.webloc
Normal file
8
packaging/MacOSX/OpenSC.webloc
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>URL</key>
|
||||
<string>http://www.opensc-project.org/files/sca/sca-0.2.8.dmg</string>
|
||||
</dict>
|
||||
</plist>
|
||||
176
packaging/MacOSX/buildnx
Executable file
176
packaging/MacOSX/buildnx
Executable file
@@ -0,0 +1,176 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
BUILDDIR=`pwd`
|
||||
cd `dirname $0`/../..
|
||||
TOPSRC=`pwd`
|
||||
cd $BUILDDIR
|
||||
if test -z "$DEST" ; then
|
||||
DEST=$BUILDDIR/dist
|
||||
fi
|
||||
if test -z "$PFX" ; then
|
||||
PFX=/Library/OpenNX
|
||||
fi
|
||||
ALLPKG="nxcomp nxproxy nxssh"
|
||||
CACHEDIR=$HOME/savebuild
|
||||
CACHEDBUILD=$CACHEDIR/nx-prebuild.tgz
|
||||
|
||||
NEEDREBUILD=yes
|
||||
if [ -f $CACHEDBUILD ] ; then
|
||||
NEEDREBUILD=no
|
||||
tar xzf $CACHEDBUILD
|
||||
for TARBALL in `$TOPSRC/getnxsrcpkg -l $ALLPKG` ; do
|
||||
test -f $TARBALL || NEEDREBUILD=yes
|
||||
done
|
||||
if [ $NEEDREBUILD = yes ] ; then
|
||||
rm -rf *
|
||||
fi
|
||||
fi
|
||||
|
||||
fetch() {
|
||||
if [ -n "`which wget`" ] ; then
|
||||
wget -q $1
|
||||
else
|
||||
if [ -n "`which curl`" ] ; then
|
||||
curl -s -f -L -o `echo "$1"|sed -e 's!.*/\([^?]*\).*!\1!'` "$1"
|
||||
else
|
||||
echo "Need wget or curl" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $NEEDREBUILD = yes ] ; then
|
||||
$TOPSRC/getnxsrcpkg $ALLPKG
|
||||
for pkg in $ALLPKG ; do
|
||||
tar xzf ${pkg}-*.tar.gz
|
||||
done
|
||||
|
||||
# Prerequisite: libjpeg (for x86: libjpeg-turbo)
|
||||
test -f libjpeg-turbo-1.1.1.tar.gz || fetch http://downloads.sourceforge.net/project/libjpeg-turbo/1.1.1/libjpeg-turbo-1.1.1.tar.gz
|
||||
tar xzf libjpeg-turbo-1.1.1.tar.gz
|
||||
cd libjpeg-turbo-1.1.1
|
||||
CFLAGS="-O3 -m32" CXXFLAGS="-O3 -m32" LDFLAGS="-m32" ./configure \
|
||||
--prefix=$PFX --libdir=$PFX/lib/private --disable-static --enable-shared
|
||||
mkdir -p $DEST$PFX/include $DEST$PFX/lib/private/{ppc,i386}
|
||||
make && make DESTDIR=$DEST install-libLTLIBRARIES
|
||||
mv $DEST$PFX/lib/private/libjpeg.62.0.0.dylib $DEST$PFX/lib/private/i386/libjpeg.62.dylib
|
||||
rm -f $DEST$PFX/lib/private/*.dylib $DEST$PFX/lib/private/libturbojpeg.la
|
||||
cd ..
|
||||
# Prerequisite: libjpeg (for PPC: the original)
|
||||
test -f jpegsrc.v6b.tar.gz || fetch http://downloads.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsrc.v6b.tar.gz
|
||||
tar xzf jpegsrc.v6b.tar.gz
|
||||
cd jpeg-6b
|
||||
patch -p1 < $TOPSRC/patches/jpeg-autoconf.patch
|
||||
./configure \
|
||||
--prefix=$PFX --libdir=$PFX/lib/private --disable-static --enable-shared
|
||||
make CFLAGS="-arch ppc $OSX_SDKFLAGS" CXXFLAGS="-arch ppc $OSX_SDKFLAGS" LDFLAGS="-arch ppc" DESTDIR=$DEST install-lib
|
||||
mv $DEST$PFX/lib/private/libjpeg.62.dylib $DEST$PFX/lib/private/ppc/
|
||||
cd ..
|
||||
# Create universal libjpeg
|
||||
lipo -create -arch i386 $DEST$PFX/lib/private/i386/* -arch ppc $DEST$PFX/lib/private/ppc/* \
|
||||
-output $DEST$PFX/lib/private/libjpeg.62.dylib
|
||||
rm -rf $DEST$PFX/lib/private/ppc $DEST$PFX/lib/private/i386
|
||||
# Prerequisite: libpng
|
||||
test -f libpng-1.2.44.tar.gz || fetch 'http://prdownloads.sourceforge.net/libpng/libpng-1.2.44.tar.gz?download'
|
||||
tar xzf libpng-1.2.44.tar.gz
|
||||
cd libpng-1.2.44
|
||||
CFLAGS="-arch i386 -arch ppc $OSX_SDKFLAGS" LDFLAGS="-arch i386 -arch ppc" ./configure \
|
||||
--prefix=$PFX --enable-static --disable-shared --disable-dependency-tracking
|
||||
make DESTDIR=$DEST install
|
||||
cd ..
|
||||
|
||||
ncver=`ls nxcomp-*.tar.gz|perl -ne 'printf("%02d%02d%02d%02d\n",$1,$2,$3,$4)if(/nxcomp-(\d+)\.(\d+)\.(\d+)-(\d+)\.tar.*/);'`
|
||||
for pkg in nxcomp nxproxy ; do
|
||||
cd $pkg
|
||||
for p in $TOPSRC/patches/${pkg}-*.patch ; do
|
||||
bn=`basename $p`
|
||||
if [ $bn = nxcomp-gcc44.patch -a $ncver -ge 03040006 ] ; then
|
||||
echo === Skipping $bn in $pkg
|
||||
else
|
||||
echo === Applying $bn in $pkg
|
||||
patch -p1 < $p
|
||||
fi
|
||||
done
|
||||
test -f configure.in -a -f configure.ac && rm -f configure.in
|
||||
autoreconf -f -i
|
||||
cargs=
|
||||
cenv="CFLAGS=\"$OSX_SDKFLAGS\" CXXFLAGS=\"$OSX_SDKFLAGS\""
|
||||
margs=
|
||||
case $pkg in
|
||||
nxcomp)
|
||||
cenv="CFLAGS=\"$OSX_SDKFLAGS\" CXXFLAGS=\"$OSX_SDKFLAGS\" LDFLAGS=-L$DEST$PFX/lib/private"
|
||||
cargs="--with-libjpeg=$DEST$PFX --with-libpng=$DEST$PFX"
|
||||
;;
|
||||
esac
|
||||
echo === Configuring $pkg ...
|
||||
echo $cenv ./configure --prefix=$PFX $cargs
|
||||
eval $cenv ./configure --prefix=$PFX $cargs
|
||||
echo === Building $pkg ...
|
||||
echo make $margs
|
||||
make $margs
|
||||
echo === Installing $pkg ...
|
||||
echo make DESTDIR=$DEST $margs install
|
||||
make DESTDIR=$DEST $margs install
|
||||
cd ..
|
||||
echo === Build of $pkg complete
|
||||
done
|
||||
|
||||
cd nxssh
|
||||
patch -p1 < $TOPSRC/patches/openssh-scard-pin.patch
|
||||
patch -p1 < $TOPSRC/patches/nxssh-dynopensc.patch
|
||||
autoreconf -f -i
|
||||
# When building nxssh on OSX10.6, we need to forcibly add -lresolv
|
||||
R=
|
||||
case "`uname -r`" in
|
||||
10.*)
|
||||
R="-lresolv"
|
||||
;;
|
||||
esac
|
||||
echo === Configuring nxssh ...
|
||||
echo LIBS="$R" \
|
||||
LDFLAGS="-L$DEST$PFX/lib -L$DEST$PFX/lib/private" \
|
||||
CPPFLAGS="-I$TOPSRC" \
|
||||
./configure --prefix=$PFX \
|
||||
--with-opensc=$BUILDDIR/../scbuild/dist$PFX \
|
||||
--enable-opensc-dynamic \
|
||||
--with-cflags="-arch i386 -arch ppc $OSX_SDKFLAGS" \
|
||||
--with-ldflags="-arch i386 -arch ppc $OSX_SDKFLAGS"
|
||||
LIBS="$R" \
|
||||
LDFLAGS="-L$DEST$PFX/lib -L$DEST$PFX/lib/private" \
|
||||
CPPFLAGS="-I$TOPSRC" \
|
||||
./configure --prefix=$PFX \
|
||||
--with-opensc=$BUILDDIR/../scbuild/dist$PFX \
|
||||
--enable-opensc-dynamic \
|
||||
--with-cflags="-arch i386 -arch ppc $OSX_SDKFLAGS" \
|
||||
--with-ldflags="-arch i386 -arch ppc $OSX_SDKFLAGS"
|
||||
echo === Building nxssh ...
|
||||
make
|
||||
cp nxssh $DEST$PFX/bin/nxssh
|
||||
cd ..
|
||||
mkdir -p $CACHEDIR
|
||||
tar czf $CACHEDBUILD .
|
||||
else
|
||||
mkdir -p $DEST$PFX/include $DEST$PFX/lib/private/{ppc,i386}
|
||||
make -C libjpeg-turbo-1.1.1 DESTDIR=$DEST install-libLTLIBRARIES
|
||||
mv $DEST$PFX/lib/private/libjpeg.62.0.0.dylib $DEST$PFX/lib/private/i386/libjpeg.62.dylib
|
||||
rm -f $DEST$PFX/lib/private/*.dylib $DEST$PFX/lib/private/libturbojpeg.la
|
||||
make -C jpeg-6b DESTDIR=$DEST install-lib
|
||||
mv $DEST$PFX/lib/private/libjpeg.62.dylib $DEST$PFX/lib/private/ppc/
|
||||
lipo -create -arch i386 $DEST$PFX/lib/private/i386/* -arch ppc $DEST$PFX/lib/private/ppc/* \
|
||||
-output $DEST$PFX/lib/private/libjpeg.62.dylib
|
||||
rm -rf $DEST$PFX/lib/private/ppc $DEST$PFX/lib/private/i386
|
||||
make -C libpng-1.2.44 DESTDIR=$DEST install
|
||||
make -C nxcomp DESTDIR=$DEST install
|
||||
make -C nxproxy DESTDIR=$DEST install
|
||||
cp nxssh/nxssh $DEST$PFX/bin/nxssh
|
||||
fi
|
||||
|
||||
rm -rf $DEST$PFX/{include,etc,share} \
|
||||
$DEST$PFX/lib/*.la \
|
||||
$DEST$PFX/lib/*.a \
|
||||
$DEST$PFX/lib/pkgconfig \
|
||||
$DEST$PFX/bin/esd* \
|
||||
$DEST$PFX/bin/*-config \
|
||||
$DEST$PFX/bin/sf*
|
||||
58
packaging/MacOSX/buildopensc
Executable file
58
packaging/MacOSX/buildopensc
Executable file
@@ -0,0 +1,58 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
V=0.11.13
|
||||
D=`pwd`
|
||||
|
||||
if [ $# != 2 ] ; then
|
||||
echo "Usage: buildopensc <prefix> <libdir>" >&2
|
||||
exit 1
|
||||
fi
|
||||
PFX=$1
|
||||
LIBDEST=$2
|
||||
|
||||
CACHEDIR=$HOME/savebuild
|
||||
CACHEDBUILD=$CACHEDIR/opensc-${V}-prebuild.tgz
|
||||
|
||||
fetch() {
|
||||
if [ -n "`which wget`" ] ; then
|
||||
wget $1
|
||||
else
|
||||
if [ -n "`which curl`" ] ; then
|
||||
curl -f -L -o `echo "$1"|sed -e 's!.*/\([^?]*\).*!\1!'` "$1"
|
||||
else
|
||||
echo "Need wget or curl" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -f $CACHEDBUILD ] ; then
|
||||
tar xzf $CACHEDBUILD
|
||||
else
|
||||
fetch http://www.opensc-project.org/files/opensc/opensc-$V.tar.gz
|
||||
rm -rf opensc-$V
|
||||
tar xzf opensc-$V.tar.gz
|
||||
cd opensc-$V
|
||||
OPENSSL_CFLAGS="-I$D/dist$PFX/include" \
|
||||
OPENSSL_LIBS="-L$D/dist$PFX/lib -lcrypto" \
|
||||
CFLAGS="-arch ppc -arch i386" \
|
||||
LDLAGS="-arch ppc -arch i386" \
|
||||
./configure \
|
||||
--prefix=$PFX \
|
||||
--enable-pcsc \
|
||||
--sysconfdir=/Library/OpenSC/etc \
|
||||
--disable-static \
|
||||
--disable-iconv \
|
||||
--disable-readline \
|
||||
--disable-dependency-tracking
|
||||
make
|
||||
rm -rf $D/dist
|
||||
mkdir $D/dist
|
||||
make DESTDIR=$D/dist install
|
||||
cd $D
|
||||
mkdir -p $CACHEDIR
|
||||
tar czf $CACHEDBUILD opensc-$V dist
|
||||
fi
|
||||
mkdir -p $LIBDEST
|
||||
83
packaging/MacOSX/buildsmbclient
Executable file
83
packaging/MacOSX/buildsmbclient
Executable file
@@ -0,0 +1,83 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
#
|
||||
# Since samba links shared libs against internal static libs, we
|
||||
# build libsmbclient separately for each architecture, install
|
||||
# into temporary destinations and finally combine the .dylibs
|
||||
# with lipo
|
||||
#
|
||||
if [ $# != 2 ] ; then
|
||||
echo "Usage: buildsmbclient <PREFIX> <DSTDIR>" >&2
|
||||
exit 1
|
||||
fi
|
||||
PFX="$1"
|
||||
WDIR=`pwd`
|
||||
TDIR="$WDIR/libsmbclient.$$"
|
||||
cd "$2"
|
||||
IDIR="`pwd`"
|
||||
cd "$WDIR"
|
||||
|
||||
cleanup() {
|
||||
cd "$WDIR"
|
||||
rm -rf "$TDIR"
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
CACHEDIR=$HOME/savebuild
|
||||
CACHEDBUILD=$CACHEDIR/smbc-prebuild.tgz
|
||||
|
||||
fetch() {
|
||||
if [ -n "`which wget`" ] ; then
|
||||
wget $1
|
||||
else
|
||||
if [ -n "`which curl`" ] ; then
|
||||
curl -f -L -o `echo "$1"|sed -e 's!.*/\([^?]*\).*!\1!'` "$1"
|
||||
else
|
||||
echo "Need wget or curl" >&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -f $CACHEDBUILD ] ; then
|
||||
tar xzCf $IDIR $CACHEDBUILD
|
||||
else
|
||||
mkdir -p "$TDIR"
|
||||
cd "$TDIR"
|
||||
TGZ=samba-latest.tar.gz
|
||||
DLURL="http://www.samba.org/ftp/samba/$TGZ"
|
||||
|
||||
test -f $TGZ || fetch "$DLURL"
|
||||
SRC=`tar tzf $TGZ|tail -1|cut -d/ -f1`
|
||||
tar xzf $TGZ
|
||||
cd $SRC/source3
|
||||
CFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure \
|
||||
--prefix=$PFX \
|
||||
--with-configdir=/etc \
|
||||
--disable-swat \
|
||||
--without-readline \
|
||||
--without-wbclient \
|
||||
--without-libnetapi \
|
||||
--without-libsmbsharemodes \
|
||||
--without-winbind \
|
||||
--without-pam_smbpass \
|
||||
--with-static-libs=libtalloc,libtdb \
|
||||
--with-libsmbclient
|
||||
make libsmbclient && mv bin bin-i386
|
||||
make clean
|
||||
sed -e s/i386/ppc/g < config.status | sh
|
||||
make libsmbclient
|
||||
mkdir -p "$IDIR"
|
||||
TOARCH=
|
||||
for lib in bin/libsmbclient.dylib* ; do
|
||||
bn=`basename $lib`
|
||||
TOARCH="$TOARCH $bn"
|
||||
if [ -L $lib ] ; then
|
||||
cp $lib "$IDIR/$bn"
|
||||
else
|
||||
lipo -create bin-i386/$bn $lib -output "$IDIR/$bn"
|
||||
fi
|
||||
done
|
||||
mkdir -p $CACHEDIR
|
||||
tar czCf $IDIR $CACHEDBUILD $TOARCH
|
||||
fi
|
||||
10
packaging/MacOSX/fileopts
Normal file
10
packaging/MacOSX/fileopts
Normal file
@@ -0,0 +1,10 @@
|
||||
# x y opts name
|
||||
#
|
||||
# opts can be:
|
||||
# v = visible
|
||||
# V = invisible
|
||||
# e = show extension
|
||||
# E = hide extension
|
||||
# - = none
|
||||
500 150 E OpenSC.webloc
|
||||
500 275 E OpenNX.pkg
|
||||
BIN
packaging/MacOSX/folderbg.jpg
Normal file
BIN
packaging/MacOSX/folderbg.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
2927
packaging/MacOSX/libsmbclient.h
Normal file
2927
packaging/MacOSX/libsmbclient.h
Normal file
File diff suppressed because it is too large
Load Diff
69
packaging/MacOSX/mkbundle
Executable file
69
packaging/MacOSX/mkbundle
Executable file
@@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $1 - Bundle directory
|
||||
# $2 - Name of wrapper shellscript
|
||||
# $3 - Path of icon file
|
||||
# $4 - Path of binary executable
|
||||
# $5 - Path of plist template
|
||||
# $6 - Creator
|
||||
# $@ - Additional arguments for executable
|
||||
|
||||
set -e
|
||||
BDIR=$1
|
||||
SCRIPT=$2
|
||||
ICON=$3
|
||||
BIN=$4
|
||||
PLIST=$5
|
||||
CREATOR="$6"
|
||||
shift 6
|
||||
curdir=`pwd`
|
||||
cd `dirname $0`
|
||||
THISDIR=`pwd`
|
||||
cd $curdir
|
||||
|
||||
BB=`basename $BIN`
|
||||
BNAME="`basename \"$BDIR\" .app`"
|
||||
BDNAME="`basename \"$BDIR\" .app`"
|
||||
if test -z "$CREATOR" ; then
|
||||
CREATOR="????"
|
||||
fi
|
||||
mkdir -p "$BDIR/Contents/MacOS"
|
||||
mkdir -p "$BDIR/Contents/Resources"
|
||||
iconshort=`basename $ICON .icns`
|
||||
if [ -n "$SCRIPT" ] ; then
|
||||
sed -e "s/_ICON_/$iconshort/" \
|
||||
-e "s/_EXECUTABLE_/$SCRIPT/" \
|
||||
-e "s/_BUNDLEID_/$SCRIPT/" \
|
||||
-e "s/_BNAME_/$BNAME/" \
|
||||
-e "s/_BDNAME_/$BDNAME/" \
|
||||
-e "s/_CREATOR_/$CREATOR/" < $PLIST > "$BDIR/Contents/Info.plist"
|
||||
else
|
||||
sed -e "s/_ICON_/$iconshort/" \
|
||||
-e "s/_EXECUTABLE_/$BB/" \
|
||||
-e "s/_BUNDLEID_/$BB/" \
|
||||
-e "s/_BNAME_/$BNAME/" \
|
||||
-e "s/_BDNAME_/$BDNAME/" \
|
||||
-e "s/_CREATOR_/$CREATOR/" < $PLIST > "$BDIR/Contents/Info.plist"
|
||||
fi
|
||||
cp $ICON "$BDIR/Contents/Resources"
|
||||
chmod u+w "$BDIR/Contents/Resources/$iconshort.icns"
|
||||
echo "APPL$CREATOR" > "$BDIR/Contents/PkgInfo"
|
||||
IPLNAME=$BB
|
||||
if [ -n "$SCRIPT" ] ; then
|
||||
IPLNAME=$SCRIPT
|
||||
cat<<EOF>"$BDIR/Contents/MacOS/$SCRIPT"
|
||||
#!/bin/sh
|
||||
exec $BIN "\$@" $@
|
||||
EOF
|
||||
chmod a+x "$BDIR/Contents/MacOS/$SCRIPT"
|
||||
else
|
||||
rm -f "$BDIR/Contents/MacOS/$BB"
|
||||
ln -s "$BIN" "$BDIR/Contents/MacOS/$BB"
|
||||
fi
|
||||
for lng in en de ; do
|
||||
if test -f $THISDIR/$IPLNAME.$lng.infoplist ; then
|
||||
mkdir -p "$BDIR/Contents/Resources/$lng.lproj"
|
||||
iconv -t UTF-16 $THISDIR/$IPLNAME.$lng.infoplist \
|
||||
> "$BDIR/Contents/Resources/$lng.lproj/InfoPlist.strings"
|
||||
fi
|
||||
done
|
||||
210
packaging/MacOSX/mkdmg
Executable file
210
packaging/MacOSX/mkdmg
Executable file
@@ -0,0 +1,210 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
use Getopt::Long;
|
||||
use File::Path;
|
||||
use File::Basename;
|
||||
|
||||
my $SETFILE = '/Developer/Tools/SetFile';
|
||||
|
||||
my $verbose = 1;
|
||||
my $quiet = ($verbose ? '' : '-quiet');
|
||||
my $rmtmp = 0;
|
||||
my $over = 0;
|
||||
my $mountpoint = '';
|
||||
my $bgimg = '';
|
||||
my $volicon = '';
|
||||
my $volname = 'OpenNX';
|
||||
my $tmpdmg = '';
|
||||
my $iconsize = 48;
|
||||
my $textsize = 12;
|
||||
my $foptfile = '';
|
||||
my %windowsize = (
|
||||
'w' => 400,
|
||||
'h' => 300,
|
||||
);
|
||||
my %windowpos = (
|
||||
'x' => 100,
|
||||
'y' => 50,
|
||||
);
|
||||
my %fopts;
|
||||
|
||||
sub chkrun($) {
|
||||
my $cmd = shift;
|
||||
system($cmd);
|
||||
if ($? == -1) {
|
||||
die "aCan't run $cmd: $!\n";
|
||||
} elsif ($? & 127) {
|
||||
die "child died with signal %d, %s coredump\n",
|
||||
($? & 127), ($? & 128) ? 'with' : 'without';
|
||||
}
|
||||
if (($? >> 8) != 0) {
|
||||
die "bCan't run $cmd: $!\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub usage($) {
|
||||
my $err = shift;
|
||||
print STDERR<<EOF
|
||||
Usage: [OPTIONS] output.dmg <source folder>
|
||||
Available OPTIONS:
|
||||
-h|--help Print this text
|
||||
-n|--name NAME Use specified volume NAME
|
||||
-m|--mountpoint PATH Use specified PATH as temporary mountpoint
|
||||
-b|--bgimage FILE Use specified FILE as background image.
|
||||
-o|--overwrite Overwrite the dmg file.
|
||||
-i|--icon FILE Use specified FILE as volume Icon.
|
||||
-f|--fileopts FILE Read icon options from specified FILE.
|
||||
EOF
|
||||
; exit($err);
|
||||
}
|
||||
|
||||
sub runscript($) {
|
||||
my $script = shift;
|
||||
print "Running AppleScript:\n", $script, "\n" if ($verbose);
|
||||
open(P, "|osascript") || die "Can't run osascript: $!\n";
|
||||
print P $script;
|
||||
close P;
|
||||
}
|
||||
|
||||
sub imgsize($) {
|
||||
my $imgfile = shift;
|
||||
my $w = -1;
|
||||
my $h = -1;
|
||||
if ($imgfile ne '') {
|
||||
open(P, "sips -g pixelHeight -g pixelWidth $imgfile 2>/dev/null |");
|
||||
while (<P>) {
|
||||
chomp;
|
||||
if (/\s*pixelHeight:\s*(\d+)/) {
|
||||
$windowsize{'h'} = int($1);
|
||||
}
|
||||
if (/\s*pixelWidth:\s*(\d+)/) {
|
||||
$windowsize{'w'} = int($1);
|
||||
}
|
||||
}
|
||||
close P;
|
||||
}
|
||||
}
|
||||
|
||||
sub readfopts() {
|
||||
if ($foptfile ne '') {
|
||||
open(F, "<$foptfile") || die "Can't read $foptfile: $!\n";
|
||||
while (<F>) {
|
||||
chomp;
|
||||
next if (/^\s*$/);
|
||||
next if (/^\s*\#/);
|
||||
if (/^(\d+)\s+(\d+)\s+([EVev\-]+)\s+(.*)$/) {
|
||||
$fopts{$4} = {'x' => $1, 'y' => $2, 'o' => $3};
|
||||
}
|
||||
}
|
||||
close F;
|
||||
}
|
||||
}
|
||||
|
||||
sub window_bounds() {
|
||||
my $x2 = $windowpos{'x'} + $windowsize{'w'};
|
||||
my $y2 = $windowpos{'y'} + $windowsize{'h'};
|
||||
return $windowpos{'x'} . ", " .
|
||||
$windowpos{'y'} . ", " . $x2 . ", " . $y2;
|
||||
}
|
||||
|
||||
sub file_positions() {
|
||||
my $ret = '';
|
||||
foreach (keys %fopts) {
|
||||
$ret .= 'set position of item "' . $_ .
|
||||
'" to {' . ${$fopts{$_}}{'x'} . ', ' . ${$fopts{$_}}{'y'} . "}\n";
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
sub file_options() {
|
||||
my $ret = '';
|
||||
foreach (keys %fopts) {
|
||||
my $o = ${$fopts{$_}}{'o'};
|
||||
my $f = "$mountpoint/$_";
|
||||
next if ($o eq '-');
|
||||
next if (! -e $f);
|
||||
chkrun($SETFILE.' -a '.$o.' "'.$f.'"');
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
sub END() {
|
||||
system("sudo hdiutil detach $mountpoint $quiet -force >/dev/null 2>&1");
|
||||
rmtree($mountpoint) if $rmtmp;
|
||||
rmtree($tmpdmg) if ($tmpdmg ne '');
|
||||
}
|
||||
|
||||
usage(1) unless GetOptions(
|
||||
"name=s" => \$volname,
|
||||
"bgimg=s" => \$bgimg,
|
||||
"icon=s" => \$volicon,
|
||||
"fileoptions=s" => \$foptfile,
|
||||
"overwrite" => \$over,
|
||||
"help" => sub { usage(0); },
|
||||
);
|
||||
if ($#ARGV < 1) {
|
||||
print STDERR "Missing required argument\n";
|
||||
usage(1);
|
||||
}
|
||||
if ($#ARGV > 1) {
|
||||
print STDERR "Too many arguments\n";
|
||||
usage(1);
|
||||
}
|
||||
# This MUST be below /Volumes, because Finder expects it there
|
||||
$mountpoint = '/Volumes/'.$volname;
|
||||
my $out = shift;
|
||||
my $src = shift;
|
||||
$tmpdmg = "$out$$.dmg";
|
||||
unlink($out) if ($over);
|
||||
unlink($tmpdmg) if ($over);
|
||||
die "Background image does not exist\n" unless (($bgimg eq '') || (-e $bgimg));
|
||||
die "Volume icon does not exist\n" unless (($volicon eq '') || (-e $volicon));
|
||||
die "Disk image $out already exists\n" if (-e $out);
|
||||
die "Source folder $src does not exist" unless (-d $src);
|
||||
$rmtmp = (! -d $mountpoint);
|
||||
imgsize($bgimg);
|
||||
readfopts();
|
||||
mkpath($mountpoint, 0, 0755);
|
||||
die "Could not create temporary mountpoint $mountpoint: $!\n" unless (-d $mountpoint);
|
||||
chkrun("sudo hdiutil create -format UDRW $quiet -mode 0777 -volname '".$volname."' -srcfolder '".$src."' '".$tmpdmg."'");
|
||||
chkrun("sudo hdiutil attach '".$tmpdmg."' -mountpoint '".$mountpoint."' -noautoopen $quiet");
|
||||
#chkrun("bless --folder '".$mountpoint."' --openfolder '".$mountpoint."'");
|
||||
if ($bgimg ne '') {
|
||||
mkpath("$mountpoint/.bg$$", 0, 0755);
|
||||
chkrun('cp "'.$bgimg.'" "'.$mountpoint.'/.bg'.$$.'"');
|
||||
$bgimg = basename($bgimg);
|
||||
}
|
||||
if ($volicon ne '') {
|
||||
chkrun('cp "'.$volicon.'" "'.$mountpoint.'/.VolumeIcon.icns"');
|
||||
chkrun($SETFILE.' -a C "'.$mountpoint.'"');
|
||||
}
|
||||
my $script=<<SCRIPT;
|
||||
tell application "Finder"
|
||||
set mountpoint to POSIX file ("$mountpoint" as string) as alias
|
||||
tell folder mountpoint
|
||||
open
|
||||
tell container window
|
||||
set toolbar visible to false
|
||||
set statusbar visible to false
|
||||
set current view to icon view
|
||||
set the bounds to {@{[window_bounds]}}
|
||||
end tell
|
||||
set icon size of the icon view options of container window to $iconsize
|
||||
set text size of the icon view options of container window to $textsize
|
||||
set arrangement of the icon view options of container window to not arranged
|
||||
@{[file_positions]}
|
||||
set the bounds of the container window to {@{[window_bounds]}}
|
||||
set background picture of the icon view options of container window to file ".bg$$:$bgimg"
|
||||
update without registering applications
|
||||
close
|
||||
end tell
|
||||
end tell
|
||||
SCRIPT
|
||||
runscript($script);
|
||||
file_options();
|
||||
if ($bgimg ne '') {
|
||||
chkrun($SETFILE.' -a V "'.$mountpoint.'/.bg'.$$.'"');
|
||||
}
|
||||
chkrun("sudo hdiutil detach $mountpoint $quiet -force");
|
||||
chkrun("sudo hdiutil convert '".$tmpdmg."' $quiet -format UDZO -imagekey zlib-level=9 -o '".$out."'");
|
||||
61
packaging/MacOSX/opennx-main.plist.in
Normal file
61
packaging/MacOSX/opennx-main.plist.in
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id$ -->
|
||||
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||
<plist version="0.9">
|
||||
<dict>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.opennx.OpenNX</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>_EXECUTABLE_</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>_ICON_</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>OpenNX</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>_CREATOR_</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>@FULLVERSION@</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>@FULLVERSION@</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>OpenNX version @FULLVERSION@, (C) 2009 The OpenNX Team</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
<string>@FULLVERSION@, (C) 2009 The OpenNX Team</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright 2009 The OpenNX Team</string>
|
||||
<key>LSRequiresCarbon</key>
|
||||
<true/>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>CFBundleLocalizations</key>
|
||||
<array>
|
||||
<string>en</string>
|
||||
<string>de</string>
|
||||
</array>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>nxs</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>nx-desktop</string>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>NX Client session</string>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>LSIsAppleDefaultForType</key>
|
||||
<true/>
|
||||
<key>LSTypeIsPackage</key>
|
||||
<false/>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
45
packaging/MacOSX/opennx.plist.in
Normal file
45
packaging/MacOSX/opennx.plist.in
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
|
||||
<plist version="0.9">
|
||||
<dict>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.opennx._BUNDLEID_</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>_EXECUTABLE_</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>_ICON_</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>_BNAME_</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>_BDNAME_</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>_CREATOR_</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>@FULLVERSION@</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>@FULLVERSION@</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>OpenNX version @FULLVERSION@, (C) 2011 The OpenNX Team</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
<string>@FULLVERSION@, (C) 2009 The OpenNX Team</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright 2011 The OpenNX Team</string>
|
||||
<key>LSHasLocalizedDisplayName</key>
|
||||
<true/>
|
||||
<key>LSRequiresCarbon</key>
|
||||
<true/>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>CFBundleLocalizations</key>
|
||||
<array>
|
||||
<string>en</string>
|
||||
<string>de</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
39
packaging/MacOSX/pkg.plist.in
Normal file
39
packaging/MacOSX/pkg.plist.in
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Id$ -->
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>@FULLVERSION@, OpenNX Client for MacOSX</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.opennx.OpenNX</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>@FULLVERSION@</string>
|
||||
|
||||
<key>IFPkgFlagAllowBackRev</key>
|
||||
<false/>
|
||||
|
||||
<key>IFPkgFlagAuthorizationAction</key>
|
||||
<string>RootAuthorization</string>
|
||||
<key>IFPkgFlagDefaultLocation</key>
|
||||
<string>/</string>
|
||||
<key>IFPkgFlagFollowLinks</key>
|
||||
<true/>
|
||||
<key>IFPkgFlagRelocatable</key>
|
||||
<false/>
|
||||
<key>IFPkgFlagRestartAction</key>
|
||||
<string>NoRestart</string>
|
||||
|
||||
<key>IFPkgFlagRootVolumeOnly</key>
|
||||
<true/>
|
||||
|
||||
<key>IFPkgFlagUpdateInstalledLanguages</key>
|
||||
<false/>
|
||||
|
||||
<key>IFPkgFormatVersion</key>
|
||||
<real>0.10000000149011612</real>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
<!-- vim:cin:et:sw=3:syn=xml
|
||||
-->
|
||||
Binary file not shown.
Binary file not shown.
83
packaging/MacOSX/pkgResources/InstallationCheck
Executable file
83
packaging/MacOSX/pkgResources/InstallationCheck
Executable file
@@ -0,0 +1,83 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
use Foundation;
|
||||
|
||||
sub getPkgInfo($$) {
|
||||
my $pkg = shift;
|
||||
my $key = shift;
|
||||
my $rcpath = '/Library/Receipts/'.$pkg.'.pkg/Contents/Info.plist';
|
||||
my $plist = NSDictionary->dictionaryWithContentsOfFile_($rcpath);
|
||||
if ($plist && $$plist) {
|
||||
my $value = $plist->objectForKey_($key);
|
||||
return $value->description()->UTF8String();
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
sub vcmp($$) {
|
||||
my $va = shift;
|
||||
my $vb = shift;
|
||||
return -1 unless(defined($va));
|
||||
return 1 unless(defined($vb));
|
||||
my @vaa = split(/\./, $va);
|
||||
my @vab = split(/\./, $vb);
|
||||
while ($#vaa < $#vab) {
|
||||
push @vaa, 0;
|
||||
}
|
||||
while ($#vab < $#vaa) {
|
||||
push @vab, 0;
|
||||
}
|
||||
my $i = 0;
|
||||
foreach (@vaa) {
|
||||
return -1 if ($_ < $vab[$i]);
|
||||
return 1 if ($_ > $vab[$i]);
|
||||
$i++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# Check for installed OpenSC
|
||||
#my $opensc = 0;
|
||||
#$opensc = 1 if (vcmp(getPkgInfo('OpenSC','CFBundleShortVersionString'), '0.11.8') >= 0);
|
||||
#exit(112) unless ($opensc);
|
||||
|
||||
# Check for installed X11
|
||||
my $x11 = 0;
|
||||
my @chklocations = (
|
||||
'/usr/X11R6/bin/X',
|
||||
'/usr/X11R6/bin/quartz-wm',
|
||||
'/usr/bin/quartz-wm',
|
||||
'/opt/X11/bin/quartz-wm'
|
||||
);
|
||||
foreach (@chklocations) {
|
||||
$x11 = 1 if (-x $_);
|
||||
}
|
||||
exit(113) unless ($x11);
|
||||
|
||||
# Check for any running processes
|
||||
my $apprunning = 0;
|
||||
my @nxesdpids;
|
||||
open (P, "ps xc|") || die "Can't run ps: $!\n";
|
||||
while (<P>) {
|
||||
chomp;
|
||||
$apprunning = 1 if (/nxproxy$/);
|
||||
$apprunning = 1 if (/nxservice$/);
|
||||
$apprunning = 1 if (/nxssh$/);
|
||||
$apprunning = 1 if (/opennx$/);
|
||||
$apprunning = 1 if (/watchreader$/);
|
||||
# nxesd and pulseaudio are special:
|
||||
# If it is running AND none of the other
|
||||
# programs are running, then they simply can be killed
|
||||
if (/^(\d+)\s+.+nxesd$/) {
|
||||
push(@nxesdpids, $1);
|
||||
}
|
||||
if (/^(\d+)\s+.+pulseaudio$/) {
|
||||
push(@nxesdpids, $1);
|
||||
}
|
||||
}
|
||||
close P;
|
||||
exit(114) if ($apprunning);
|
||||
kill(15, @nxesdpids) if ($#nxesdpids >= 0);
|
||||
|
||||
# Everything OK
|
||||
exit(0);
|
||||
563
packaging/MacOSX/pkgResources/License.html
Normal file
563
packaging/MacOSX/pkgResources/License.html
Normal file
@@ -0,0 +1,563 @@
|
||||
<HTML>
|
||||
<head><title>GNU Library General Public License, Version 2</title>
|
||||
<style type="text/css">
|
||||
body
|
||||
{
|
||||
padding: 0em;
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
h1, h2, h3
|
||||
{
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-size: 160%;
|
||||
margin: 1.2em 0;
|
||||
}
|
||||
|
||||
h2
|
||||
{
|
||||
font-size: 140%;
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
h3
|
||||
{
|
||||
font-size: 120%;
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
|
||||
hr
|
||||
{
|
||||
margin: 0.8em 0;
|
||||
}
|
||||
|
||||
ul p, ol p, dl p
|
||||
{
|
||||
margin-left: 0em;
|
||||
}
|
||||
|
||||
p
|
||||
{
|
||||
margin-top: .6em;
|
||||
margin-bottom: .6em;
|
||||
}
|
||||
|
||||
dt
|
||||
{
|
||||
margin: 0.5em 0em;
|
||||
}
|
||||
|
||||
ul, ol
|
||||
{
|
||||
margin-top: .6em;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
ol
|
||||
{
|
||||
margin-left: 3.6em;
|
||||
}
|
||||
|
||||
ul
|
||||
{
|
||||
list-style-type: disc;
|
||||
margin-left: 1.9em;
|
||||
}
|
||||
|
||||
li
|
||||
{
|
||||
margin-bottom: .6em;
|
||||
}
|
||||
|
||||
tt
|
||||
{
|
||||
font-family: Andale Mono, Courier New, Courier, mono;
|
||||
}
|
||||
|
||||
pre
|
||||
{
|
||||
margin: 0.8em 2em;
|
||||
padding: 0.4em;
|
||||
font-family: Andale Mono, Courier New, Courier, mono;
|
||||
color: #550000;
|
||||
background: #eeeeee;
|
||||
}
|
||||
|
||||
table
|
||||
{
|
||||
width: 90%;
|
||||
background: #999999;
|
||||
margin-top: 0em;
|
||||
margin-bottom: .3em;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
td
|
||||
{
|
||||
margin: .25em;
|
||||
padding: 2px 4px;
|
||||
background: #eeeeee;
|
||||
vertical-align: top;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
tr
|
||||
{
|
||||
margin: .25em;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
a:link { color: #0066ff; }
|
||||
a:visited { color: #996600; }
|
||||
a:hover { color: #cc9900; }
|
||||
|
||||
.preamble
|
||||
{
|
||||
margin: 0.8em 2em;
|
||||
padding: 0.4em;
|
||||
font-family: Andale Mono, Courier New, Courier, mono;
|
||||
color: #550000;
|
||||
background: #eeeeee;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<BODY BGCOLOR=#FFFFFF>
|
||||
<A NAME="gnulicense"></A>
|
||||
|
||||
<H2>GNU Library General Public License, Version 2</H2>
|
||||
<P>
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA<P>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.<P>
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]<P>
|
||||
<div class="preamble"><center><B><FONT COLOR="#FF0000">Preamble</FONT></B></center><P>
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software -- to make sure the software is free for all its users.<P>
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.<P>
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.<P>
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.<P>
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.<P>
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.<P>
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.<P>
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.<P>
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.<P>
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.<P>
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.<P>
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.<P>
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.<P>
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.<P></div>
|
||||
<CENTER>
|
||||
<H3>GNU LIBRARY GENERAL PUBLIC LICENSE</H3>
|
||||
<H3>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H3>
|
||||
</CENTER><P>
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".<P>
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.<P>
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)<P>
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.<P>
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.<P>
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.<P>
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.<P>
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:<P>
|
||||
<UL>
|
||||
|
||||
a) The modified work must itself be a software library.<P>
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.<P>
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.<P>
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.<P>
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
</UL>
|
||||
<P>
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.<P>
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.<P>
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.<P>
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.<P>
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.<P>
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.<P>
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.<P>
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.<P>
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.<P>
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.<P>
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.<P>
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)<P>
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.<P>
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.<P>
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:<P>
|
||||
<UL>
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)<P>
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.<P>
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.<P>
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
</UL>
|
||||
<P>
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.<P>
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.<P>
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:<P>
|
||||
<UL>
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.<P>
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
</UL>
|
||||
<P>
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.<P>
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.<P>
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.<P>
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.<P>
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.<P>
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.<P>
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.<P>
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.<P>
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.<P>
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.<P>
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.<P>
|
||||
<CENTER>
|
||||
NO WARRANTY
|
||||
</CENTER><P>
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.<P>
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.<P>
|
||||
|
||||
<CENTER>
|
||||
END OF TERMS AND CONDITIONS
|
||||
</CENTER><P>
|
||||
<B><FONT COLOR="#FF0000">Appendix: How to Apply These Terms to Your New Libraries</FONT></B><P>
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).<P>
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.<P>
|
||||
|
||||
<PRE>
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
</PRE>
|
||||
Also add information on how to contact you by electronic and paper mail.<P>
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:<P>
|
||||
|
||||
<PRE>
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
</PRE>
|
||||
That's all there is to it!<P>
|
||||
|
||||
</FONT></BODY></HTML>
|
||||
208
packaging/MacOSX/pulse/Makefile.am
Normal file
208
packaging/MacOSX/pulse/Makefile.am
Normal file
@@ -0,0 +1,208 @@
|
||||
PALIBTOOL = libtool
|
||||
PALIBTOOL_VERSION = 2.4
|
||||
LIBSNDFILE = libsndfile
|
||||
LIBSNDFILE_VERSION = 1.0.24
|
||||
LIBSAMPLERATE = libsamplerate
|
||||
LIBSAMPLERATE_VERSION = 0.1.7
|
||||
JSONC = json-c
|
||||
JSONC_VERSION = 0.9
|
||||
SPEEX = speex
|
||||
SPEEX_VERSION = 1.2rc1
|
||||
PULSEAUDIO = pulseaudio
|
||||
PULSEAUDIO_VERSION = 1.0-fe-20111209
|
||||
PULSEAUDIO_SVER = 1.0
|
||||
|
||||
TMPDIST = $(abs_builddir)/dist
|
||||
TMPHDR = $(abs_builddir)/include
|
||||
|
||||
# For caching pre-built binaries on the build slave
|
||||
CACHE_FLAG = $(HOME)/.docache_pulse
|
||||
CACHE_DIR = $(HOME)/savebuild
|
||||
CACHE_TGZ = $(CACHE_DIR)/pulse.tgz
|
||||
|
||||
EXTRA_DIST = urls.txt cfg patches $(LIBSNDFILE).shasum $(SPEEX).shasum $(JSONC).shasum \
|
||||
$(LIBSAMPLERATE).shasum $(PULSEAUDIO).shasum
|
||||
|
||||
CLEANFILES = -r $(TMPDIST) $(TMPHDR) pkg-config tmpinstall .*-build .*-srcdir .*-checkarchive .*-lipo \
|
||||
$(LIBSAMPLERATE) $(LIBSAMPLERATE)-$(LIBSAMPLERATE_VERSION) \
|
||||
$(LIBSNDFILE) $(LIBSNDFILE)-$(LIBSNDFILE_VERSION) \
|
||||
$(JSONC) $(JSONC)-$(JSONC_VERSION) \
|
||||
$(PALIBTOOL) $(PALIBTOOL)-$(PALIBTOOL_VERSION) \
|
||||
$(SPEEX) $(SPEEX)-$(SPEEX_VERSION) \
|
||||
$(PULSEAUDIO) $(PULSEAUDIO)-$(PULSEAUDIO_VERSION)
|
||||
|
||||
DISTCLEANFILES = *.tar.gz
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
CFG_GENERIC = --prefix=$(prefix) --enable-shared --disable-static --disable-dependency-tracking
|
||||
|
||||
CFG_libtool =
|
||||
CFG_speexLE = --enable-sse --without-ogg
|
||||
CFG_speexBE = --libdir=$(libdir)/ppc --disable-oggtest --without-ogg --host ppc-apple-darwin10
|
||||
CFG_jsonc =
|
||||
CFG_libsndfileLE = --disable-external-libs
|
||||
CFG_libsndfileBE = --disable-external-libs --libdir=$(libdir)/ppc --host ppc-apple-darwin10
|
||||
CFG_libsamplerateLE =
|
||||
CFG_libsamplerateBE = --libdir=$(libdir)/ppc --host ppc-apple-darwin10
|
||||
CFG_pulseaudioLE = --disable-glib2 --disable-openssl --disable-nls --with-udev-rules-dir=$(prefix)/lib \
|
||||
--with-mac-version-min=$(OSX_MINVER) --with-mac-sysroot=$(OSX_SYSROOT) --program-suffix=.i386
|
||||
CFG_pulseaudioBE = --disable-glib2 --disable-openssl --disable-nls --with-udev-rules-dir=$(prefix)/lib \
|
||||
--with-mac-version-min=$(OSX_MINVER) --with-mac-sysroot=$(OSX_SYSROOT) --libdir=$(libdir)/ppc --host ppc-apple-darwin10 --program-suffix=.ppc
|
||||
|
||||
PRECFG_libtool = true
|
||||
PRECFG_speex = true
|
||||
PRECFG_jsonc = autoreconf -f -i
|
||||
PRECFG_libsndfile = true
|
||||
PRECFG_libsamplerate = true
|
||||
PRECFG_pulseaudio = true
|
||||
|
||||
POSTCFG_libtool = true
|
||||
POSTCFG_speex = true
|
||||
POSTCFG_jsonc = true
|
||||
POSTCFG_libsndfile = true
|
||||
POSTCFG_libsamplerate = true
|
||||
POSTCFG_pulseaudio = true
|
||||
|
||||
MACENV_UNIVERSAL = CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
|
||||
CFLAGS="$(UNIFLAGS) $(OSX_SDKFLAGS) -I$(TMPDIST)/include" \
|
||||
CXXFLAGS="$(UNIFLAGS) $(OSX_SDKFLAGS)" CPPFLAGS="-I$(TMPDIST)$(includedir)"
|
||||
MACENV_INTEL = CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
|
||||
CFLAGS="-arch i386 $(OSX_SDKFLAGS)" \
|
||||
CXXFLAGS="-arch i386 $(OSX_SDKFLAGS)" CPPFLAGS="-I$(TMPDIST)$(includedir)"
|
||||
MACENV_PPC = CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
|
||||
CFLAGS="-arch ppc $(OSX_SDKFLAGS)" \
|
||||
CXXFLAGS="-arch ppc $(OSX_SDKFLAGS)" CPPFLAGS="-I$(TMPDIST)$(includedir)"
|
||||
|
||||
ENV_libtool = env $(MACENV_UNIVERSAL)
|
||||
ENV_speexLE = env $(MACENV_INTEL)
|
||||
ENV_speexBE = env $(MACENV_PPC) OGG_LIBS= OGG_CFLAGS=
|
||||
ENV_jsonc = env $(MACENV_UNIVERSAL)
|
||||
ENV_libsndfileLE = env $(MACENV_INTEL)
|
||||
ENV_libsndfileBE = env $(MACENV_PPC)
|
||||
ENV_libsamplerateLE = env $(MACENV_INTEL) \
|
||||
SNDFILE_CFLAGS="-I$(TMPDIST)$(includedir)" SNDFILE_LIBS="-L$(TMPDIST)$(libdir) -lsndfile"
|
||||
ENV_libsamplerateBE = env $(MACENV_PPC) \
|
||||
SNDFILE_CFLAGS="-I$(TMPDIST)$(includedir)" SNDFILE_LIBS="-L$(TMPDIST)$(libdir) -lsndfile"
|
||||
ENV_pulseaudioLE = env $(MACENV_INTEL) CC="gcc-4.2" CXX="g++-4.2" \
|
||||
LDFLAGS="-L$(TMPDIST)$(libdir)" \
|
||||
LIBSNDFILE_CFLAGS="-I." LIBSNDFILE_LIBS="-lsndfile" \
|
||||
LIBSAMPLERATE_CFLAGS="-I." LIBSAMPLERATE_LIBS="-lsamplerate" \
|
||||
LIBJSON_CFLAGS="-I$(TMPDIST)$(includedir)/json" LIBJSON_LIBS="-ljson" \
|
||||
LIBSPEEX_CFLAGS="-I." LIBSPEEX_LIBS="-lspeex -lspeexdsp" \
|
||||
PATH="$(abs_builddir):$(PATH)"
|
||||
ENV_pulseaudioBE = env $(MACENV_PPC) CC="gcc-4.2" CXX="g++-4.2" \
|
||||
LDFLAGS="-L$(TMPDIST)$(libdir)" \
|
||||
LIBSNDFILE_CFLAGS="-I." LIBSNDFILE_LIBS="-lsndfile" \
|
||||
LIBSAMPLERATE_CFLAGS="-I." LIBSAMPLERATE_LIBS="-lsamplerate" \
|
||||
LIBJSON_CFLAGS="-I$(TMPDIST)$(includedir)/json" LIBJSON_LIBS="-ljson" \
|
||||
LIBSPEEX_CFLAGS="-I." LIBSPEEX_LIBS="-lspeex -lspeexdsp" \
|
||||
PATH="$(abs_builddir):$(PATH)"
|
||||
|
||||
upinstall: cachedinstall
|
||||
cp -av $(TMPDIST)/ $(PKGROOT)/
|
||||
|
||||
cachedinstall:
|
||||
test -f $(CACHE_TGZ) && tar xzf $(CACHE_TGZ) || true
|
||||
test -f $(CACHE_TGZ) || $(MAKE) tmpinstall
|
||||
|
||||
tmpinstall:
|
||||
$(MAKE) ecfg= subtarget=$(PALIBTOOL) subvar=$(PALIBTOOL) subsrc=$(PALIBTOOL)-$(PALIBTOOL_VERSION) tbuild
|
||||
$(MAKE) ecfg= subtarget=$(JSONC) subvar=jsonc subsrc=$(JSONC)-$(JSONC_VERSION) tbuild
|
||||
mkdir -p $(TMPDIST)$(libdir)/ppc
|
||||
$(MAKE) ecfg=LE subtarget=$(SPEEX) subvar=$(SPEEX) subsrc=$(SPEEX)-$(SPEEX_VERSION) tbuild
|
||||
$(MAKE) -C $(SPEEX)-$(SPEEX_VERSION) distclean
|
||||
rm -f .$(SPEEX)-build
|
||||
$(MAKE) ecfg=BE subtarget=$(SPEEX) subvar=$(SPEEX) subsrc=$(SPEEX)-$(SPEEX_VERSION) tbuild
|
||||
$(MAKE) ecfg=BE subtarget=$(SPEEX) subvar=$(SPEEX) subsrc=$(SPEEX)-$(SPEEX_VERSION) tlipo
|
||||
$(MAKE) ecfg=LE subtarget=$(LIBSNDFILE) subvar=$(LIBSNDFILE) subsrc=$(LIBSNDFILE)-$(LIBSNDFILE_VERSION) tbuild
|
||||
$(MAKE) -C $(LIBSNDFILE)-$(LIBSNDFILE_VERSION) distclean
|
||||
rm -f .$(LIBSNDFILE)-build
|
||||
$(MAKE) ecfg=BE subtarget=$(LIBSNDFILE) subvar=$(LIBSNDFILE) subsrc=$(LIBSNDFILE)-$(LIBSNDFILE_VERSION) tbuild
|
||||
$(MAKE) ecfg=BE subtarget=$(LIBSNDFILE) subvar=$(LIBSNDFILE) subsrc=$(LIBSNDFILE)-$(LIBSNDFILE_VERSION) tlipo
|
||||
$(MAKE) ecfg=LE subtarget=$(LIBSAMPLERATE) subvar=$(LIBSAMPLERATE) subsrc=$(LIBSAMPLERATE)-$(LIBSAMPLERATE_VERSION) tbuild
|
||||
$(MAKE) -C $(LIBSAMPLERATE)-$(LIBSAMPLERATE_VERSION) distclean
|
||||
rm -f .$(LIBSAMPLERATE)-build
|
||||
$(MAKE) ecfg=BE subtarget=$(LIBSAMPLERATE) subvar=$(LIBSAMPLERATE) subsrc=$(LIBSAMPLERATE)-$(LIBSAMPLERATE_VERSION) tbuild
|
||||
$(MAKE) ecfg=BE subtarget=$(LIBSAMPLERATE) subvar=$(LIBSAMPLERATE) subsrc=$(LIBSAMPLERATE)-$(LIBSAMPLERATE_VERSION) tlipo
|
||||
@echo "#!/bin/sh" > pkg-config; \
|
||||
echo "case \$$* in *--exists*) exit 1 ;; *) exit 0 ;; esac" >> pkg-config; \
|
||||
chmod a+x pkg-config || true
|
||||
$(MAKE) ecfg=LE subtarget=$(PULSEAUDIO) subvar=$(PULSEAUDIO) subsrc=$(PULSEAUDIO)-$(PULSEAUDIO_VERSION) tbuild
|
||||
$(MAKE) -C $(PULSEAUDIO)-$(PULSEAUDIO_VERSION) distclean
|
||||
rm -f .$(PULSEAUDIO)-build
|
||||
$(MAKE) ecfg=BE subtarget=$(PULSEAUDIO) subvar=$(PULSEAUDIO) subsrc=$(PULSEAUDIO)-$(PULSEAUDIO_VERSION) tbuild
|
||||
$(MAKE) ecfg=BE subtarget=$(PULSEAUDIO) subvar=$(PULSEAUDIO) subsrc=$(PULSEAUDIO)-$(PULSEAUDIO_VERSION) modsub=/pulse-$(PULSEAUDIO_SVER)/modules tlipo
|
||||
rmdir $(TMPDIST)$(libdir)/ppc
|
||||
mkdir -p $(TMPHDR)
|
||||
cp -a $(TMPDIST)$(prefix)/include/* $(TMPHDR)
|
||||
rm -rf $(TMPDIST)$(prefix)/{share,libexec,include} $(TMPDIST)${libdir}/pkgconfig $(TMPDIST)${libdir}/cmake
|
||||
find $(TMPDIST) -name "*.la" -o -name "*.a"|xargs rm -f
|
||||
rm -f $(TMPDIST)$(bindir)/sndfile-* $(TMPDIST)$(bindir)/libtool*
|
||||
cp $(srcdir)/cfg/* $(TMPDIST)$(prefix)/etc/pulse/
|
||||
test -f $(CACHE_FLAG) && tar czf $(CACHE_TGZ) dist include || true
|
||||
touch $@
|
||||
|
||||
tbuild: .$(subtarget)-build
|
||||
|
||||
tlipo: .$(subtarget)-lipo
|
||||
|
||||
.$(subtarget)-lipo: .$(subtarget)-build
|
||||
@echo Merging $(subtarget) to universal
|
||||
@for f in $(TMPDIST)$(libdir)/ppc/*.dylib ; do \
|
||||
bn=`basename $$f` ; \
|
||||
test -L $$f || mv $(TMPDIST)$(libdir)/$$bn $(TMPDIST)$(libdir)/i386-$$bn ; \
|
||||
test -L $$f || lipo -create -output $(TMPDIST)$(libdir)/$$bn $$f $(TMPDIST)$(libdir)/i386-$$bn ; \
|
||||
rm -f $(TMPDIST)$(libdir)/i386-$$bn ; \
|
||||
done
|
||||
@if test -n "$(modsub)" ; then \
|
||||
echo Merging $(subtarget) modules to universal ; \
|
||||
for f in $(TMPDIST)$(libdir)/ppc$(modsub)/*.{dylib,so} ; do \
|
||||
bn=`basename $$f` ; \
|
||||
mv $(TMPDIST)$(libdir)$(modsub)/$$bn $(TMPDIST)$(libdir)$(modsub)/i386-$$bn ; \
|
||||
lipo -create -output $(TMPDIST)$(libdir)$(modsub)/$$bn \
|
||||
$$f $(TMPDIST)$(libdir)$(modsub)/i386-$$bn ; \
|
||||
rm $(TMPDIST)$(libdir)$(modsub)/i386-$$bn ; \
|
||||
done ; \
|
||||
echo Merging $(subtarget) programs to universal ; \
|
||||
for f in $(TMPDIST)$(bindir)/*.i386 ; do \
|
||||
bn=`basename $$f .i386` ; \
|
||||
file $$f|grep -q shell || lipo -create -output $(TMPDIST)$(bindir)/$$bn $$f $(TMPDIST)$(bindir)/$$bn.ppc ; \
|
||||
file $$f|grep -q shell && mv $$f $(TMPDIST)$(bindir)/$$bn || true ; \
|
||||
rm -f $$f $(TMPDIST)$(bindir)/$$bn.ppc ; \
|
||||
done ; \
|
||||
fi
|
||||
@rm -rf $(TMPDIST)$(libdir)/ppc/*
|
||||
@touch $@
|
||||
|
||||
.$(subtarget)-build: .$(subtarget)-srcdir
|
||||
@echo Configuring $(subtarget)
|
||||
cd $(subsrc) && $(PRECFG_$(subvar)) && $(ENV_$(subvar)$(ecfg)) ./configure $(CFG_GENERIC) $(CFG_$(subvar)$(ecfg))
|
||||
@$(POSTCFG_$(subvar))
|
||||
@echo building $(subtarget)
|
||||
@$(MAKE) V=$(V) DESTDIR=$(TMPDIST) -C $(subsrc) install
|
||||
@touch $@
|
||||
|
||||
.$(subtarget)-patch:
|
||||
@echo Applying patches for $(subtarget)
|
||||
@shopt -s nullglob; for p in $(srcdir)/patches/$(subvar)-*.patch ; do \
|
||||
test $(V) = 0 || echo Applying `basename $$p`; \
|
||||
( cd $(subsrc) && patch -p1 < ../$$p ) ; \
|
||||
done
|
||||
|
||||
.$(subtarget)-srcdir: .$(subtarget)-checkarchive
|
||||
@$(RM) -rf $(subsrc)
|
||||
@echo Unpacking $(subtarget)
|
||||
@tar xzf $(subsrc).tar.gz
|
||||
@test -n "$(NOPATCH_$(subtarget))" || $(MAKE) .$(subtarget)-patch
|
||||
@touch $@
|
||||
|
||||
.$(subtarget)-checkarchive: $(subsrc).tar.gz
|
||||
@echo Verifying $(subtarget)
|
||||
@test -n "$(NOCHECK_$(subtarget))" || shasum --status -c $(srcdir)/$(subtarget).shasum
|
||||
@touch $@
|
||||
|
||||
$(subsrc).tar.gz: $(srcdir)/urls.txt
|
||||
@echo Downloading $(subtarget)
|
||||
@test -f $@ || $(CURL) -f -L -o $(subsrc).tar.gz $(shell grep $(subsrc).tar.gz $(srcdir)/urls.txt)
|
||||
@touch $@
|
||||
86
packaging/MacOSX/pulse/cfg/daemon.conf
Normal file
86
packaging/MacOSX/pulse/cfg/daemon.conf
Normal file
@@ -0,0 +1,86 @@
|
||||
# This file is part of PulseAudio.
|
||||
#
|
||||
# PulseAudio is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# PulseAudio is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with PulseAudio; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||
# USA.
|
||||
|
||||
## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
|
||||
## more information. Default values are commented out. Use either ; or # for
|
||||
## commenting.
|
||||
|
||||
; daemonize = no
|
||||
; fail = yes
|
||||
; allow-module-loading = yes
|
||||
; allow-exit = yes
|
||||
; use-pid-file = yes
|
||||
; system-instance = no
|
||||
; local-server-type = user
|
||||
; enable-shm = yes
|
||||
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
|
||||
; lock-memory = no
|
||||
; cpu-limit = no
|
||||
|
||||
; high-priority = yes
|
||||
; nice-level = -11
|
||||
|
||||
; realtime-scheduling = yes
|
||||
; realtime-priority = 5
|
||||
|
||||
exit-idle-time = -1
|
||||
; scache-idle-time = 20
|
||||
|
||||
; dl-search-path = (depends on architecture)
|
||||
|
||||
; load-default-script-file = yes
|
||||
; default-script-file =
|
||||
|
||||
log-target = syslog
|
||||
; log-level = notice
|
||||
log-meta = yes
|
||||
; log-time = no
|
||||
; log-backtrace = 0
|
||||
|
||||
; resample-method = speex-float-3
|
||||
; enable-remixing = yes
|
||||
; enable-lfe-remixing = no
|
||||
|
||||
; flat-volumes = yes
|
||||
|
||||
; rlimit-fsize = -1
|
||||
; rlimit-data = -1
|
||||
; rlimit-stack = -1
|
||||
; rlimit-core = -1
|
||||
; rlimit-as = -1
|
||||
; rlimit-rss = -1
|
||||
; rlimit-nproc = -1
|
||||
; rlimit-nofile = 256
|
||||
; rlimit-memlock = -1
|
||||
; rlimit-locks = -1
|
||||
; rlimit-sigpending = -1
|
||||
; rlimit-msgqueue = -1
|
||||
; rlimit-nice = 31
|
||||
; rlimit-rtprio = 9
|
||||
; rlimit-rttime = 1000000
|
||||
|
||||
; default-sample-format = s16le
|
||||
; default-sample-rate = 44100
|
||||
; default-sample-channels = 2
|
||||
; default-channel-map = front-left,front-right
|
||||
|
||||
; default-fragments = 4
|
||||
; default-fragment-size-msec = 25
|
||||
|
||||
; enable-sync-volume = yes
|
||||
; sync-volume-safety-margin-usec = 8000
|
||||
; sync-volume-extra-delay-usec = 0
|
||||
68
packaging/MacOSX/pulse/cfg/default.pa
Normal file
68
packaging/MacOSX/pulse/cfg/default.pa
Normal file
@@ -0,0 +1,68 @@
|
||||
#!/Library/OpenNX/bin/pulseaudio -nF
|
||||
#
|
||||
# This startup script is used only if PulseAudio is started per-user
|
||||
# (i.e. not in system mode)
|
||||
|
||||
.fail
|
||||
|
||||
### Automatically restore the volume of streams and devices
|
||||
load-module module-device-restore
|
||||
load-module module-stream-restore
|
||||
load-module module-card-restore
|
||||
|
||||
load-module module-coreaudio-detect
|
||||
|
||||
### Automatically load driver modules for Bluetooth hardware
|
||||
.ifexists module-bluetooth-discover.so
|
||||
load-module module-bluetooth-discover
|
||||
.endif
|
||||
|
||||
### Load several protocols
|
||||
.ifexists module-esound-protocol-unix.so
|
||||
load-module module-esound-protocol-unix
|
||||
.endif
|
||||
.ifexists module-dbus-protocol.so
|
||||
load-module module-dbus-protocol
|
||||
.endif
|
||||
load-module module-native-protocol-unix
|
||||
|
||||
### Network access (may be configured with paprefs, so leave this commented
|
||||
### here if you plan to use paprefs)
|
||||
#load-module module-esound-protocol-tcp
|
||||
#load-module module-native-protocol-tcp
|
||||
#load-module module-zeroconf-publish
|
||||
|
||||
### Load the RTP reciever module (also configured via paprefs, see above)
|
||||
#load-module module-rtp-recv
|
||||
|
||||
### Load the RTP sender module (also configured via paprefs, see above)
|
||||
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
|
||||
#load-module module-rtp-send source=rtp.monitor
|
||||
|
||||
### Automatically restore the default sink/source when changed by the user during runtime
|
||||
load-module module-default-device-restore
|
||||
|
||||
### Automatically move streams to the default sink if the sink they are
|
||||
### connected to dies, similar for sources
|
||||
load-module module-rescue-streams
|
||||
|
||||
### Make sure we always have a sink around, even if it is a null sink.
|
||||
load-module module-always-sink
|
||||
|
||||
### Honour intended role device property
|
||||
load-module module-intended-roles
|
||||
|
||||
### Automatically suspend sinks/sources that become idle for too long
|
||||
load-module module-suspend-on-idle
|
||||
|
||||
### when no local session needs us anymore.
|
||||
.ifexists module-console-kit.so
|
||||
load-module module-console-kit
|
||||
.endif
|
||||
|
||||
### Enable positioned event sounds
|
||||
load-module module-position-event-sounds
|
||||
|
||||
### Make some devices default
|
||||
#set-default-sink output
|
||||
#set-default-source input
|
||||
1
packaging/MacOSX/pulse/json-c.shasum
Normal file
1
packaging/MacOSX/pulse/json-c.shasum
Normal file
@@ -0,0 +1 @@
|
||||
daaf5eb960fa98e137abc5012f569b83c79be90f json-c-0.9.tar.gz
|
||||
1
packaging/MacOSX/pulse/libsamplerate.shasum
Normal file
1
packaging/MacOSX/pulse/libsamplerate.shasum
Normal file
@@ -0,0 +1 @@
|
||||
f3f803ec5feae5a3fdb0fa3937277669e854386e libsamplerate-0.1.7.tar.gz
|
||||
1
packaging/MacOSX/pulse/libsndfile.shasum
Normal file
1
packaging/MacOSX/pulse/libsndfile.shasum
Normal file
@@ -0,0 +1 @@
|
||||
ade2dad272b52f61bb58aca3a4004b28549ee0f8 libsndfile-1.0.24.tar.gz
|
||||
73
packaging/MacOSX/pulse/patches/pulseaudio-osx-machid.patch
Normal file
73
packaging/MacOSX/pulse/patches/pulseaudio-osx-machid.patch
Normal file
@@ -0,0 +1,73 @@
|
||||
diff -urw pulseaudio-or/configure pulseaudio/configure
|
||||
--- pulseaudio-or/configure 2011-12-09 01:23:37.492318311 +0100
|
||||
+++ pulseaudio/configure 2012-01-30 01:03:46.861586823 +0100
|
||||
@@ -20582,7 +20582,7 @@
|
||||
# How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "/Developer/Headers/FlatCarbon/CoreServices.h" "ac_cv_header__Developer_Headers_FlatCarbon_CoreServices_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header__Developer_Headers_FlatCarbon_CoreServices_h" = xyes; then :
|
||||
- LIBS="$LIBS -framework CoreServices"
|
||||
+ LIBS="$LIBS -framework IOKit -framework CoreServices"
|
||||
else
|
||||
as_fn_error $? "CoreServices.h header file not found" "$LINENO" 5
|
||||
|
||||
diff -urw pulseaudio-or/configure.ac pulseaudio/configure.ac
|
||||
--- pulseaudio-or/configure.ac 2011-12-09 01:15:50.450339133 +0100
|
||||
+++ pulseaudio/configure.ac 2012-01-30 01:02:13.674590980 +0100
|
||||
@@ -471,8 +471,17 @@
|
||||
if test "x$os_is_darwin" = "x1" ; then
|
||||
AC_MSG_CHECKING([looking for Apple CoreService Framework])
|
||||
# How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
|
||||
+ # Actually, this check is wrong too, because it assumes that Xcode is installed at the default
|
||||
+ # location. Xcode is relocatable - it's installer allows it to be installed anywhere - not
|
||||
+ # only below /Developer ... Furthermore, the question above indicates, that the person who asked
|
||||
+ # did not understand the concept of OSX framworks at all. Those are *not* libraries, but
|
||||
+ # *bundles* of various requisites (which *might* contain libs). The -framework parameter on
|
||||
+ # OSX is more like a combination of the conventional -L and -I parameters.
|
||||
+ # In my (FE's) opinion, this check is completely redundant. Either you *do* have Xcode which
|
||||
+ # *always* includes the basic frameworks, or you *dont* in which case you would not even have
|
||||
+ # basic build tools like gcc!
|
||||
AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h],
|
||||
- [LIBS="$LIBS -framework CoreServices"],
|
||||
+ [LIBS="$LIBS -framework IOKit -framework CoreServices"],
|
||||
[AC_MSG_ERROR([CoreServices.h header file not found])]
|
||||
)
|
||||
|
||||
diff -urw pulseaudio-orig/src/pulsecore/core-util.c pulseaudio/src/pulsecore/core-util.c
|
||||
--- pulseaudio-or/src/pulsecore/core-util.c 2011-12-09 01:14:05.131343828 +0100
|
||||
+++ pulseaudio/src/pulsecore/core-util.c 2012-01-30 00:23:36.752694276 +0100
|
||||
@@ -111,6 +111,7 @@
|
||||
#include <mach/thread_act.h>
|
||||
#include <mach/thread_policy.h>
|
||||
#include <sys/sysctl.h>
|
||||
+#include <IOKit/IOKitLib.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DBUS
|
||||
@@ -2717,6 +2721,19 @@
|
||||
* since it fits perfectly our needs and is not as volatile as the
|
||||
* hostname which might be set from dhcp. */
|
||||
|
||||
+#ifdef OS_IS_DARWIN
|
||||
+ /* Of course, the above is valid only if we *do* have D-Bus - which
|
||||
+ * is not the case on OSX or Windows... On OSX, we have something even
|
||||
+ * better: A real machine UUID. */
|
||||
+ char uuid[38] = "00000000-0000-0000-0000-000000000000";
|
||||
+ io_registry_entry_t ioRegistryRoot =
|
||||
+ IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
|
||||
+ CFStringRef uuidCf =
|
||||
+ (CFStringRef)IORegistryEntryCreateCFProperty(ioRegistryRoot, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0);
|
||||
+ IOObjectRelease(ioRegistryRoot);
|
||||
+ CFStringGetCString(uuidCf, uuid, sizeof(uuid), kCFStringEncodingMacRoman);
|
||||
+ return pa_sprintf_malloc("%s", uuid);
|
||||
+#else
|
||||
if ((f = pa_fopen_cloexec(PA_MACHINE_ID, "r")) ||
|
||||
(f = pa_fopen_cloexec(PA_MACHINE_ID_FALLBACK, "r"))) {
|
||||
char ln[34] = "", *r;
|
||||
@@ -2729,6 +2746,7 @@
|
||||
if (r && ln[0])
|
||||
return pa_utf8_filter(ln);
|
||||
}
|
||||
+#endif
|
||||
|
||||
if ((h = pa_get_host_name_malloc()))
|
||||
return h;
|
||||
82433
packaging/MacOSX/pulse/patches/speex-crossppc.patch
Normal file
82433
packaging/MacOSX/pulse/patches/speex-crossppc.patch
Normal file
File diff suppressed because it is too large
Load Diff
1
packaging/MacOSX/pulse/pulseaudio.shasum
Normal file
1
packaging/MacOSX/pulse/pulseaudio.shasum
Normal file
@@ -0,0 +1 @@
|
||||
73aa4f515adb5afbbd56833056f915639e6c1958 pulseaudio-1.0-fe-20111209.tar.gz
|
||||
1
packaging/MacOSX/pulse/speex.shasum
Normal file
1
packaging/MacOSX/pulse/speex.shasum
Normal file
@@ -0,0 +1 @@
|
||||
52daa72572e844e5165315e208da539b2a55c5eb speex-1.2rc1.tar.gz
|
||||
8
packaging/MacOSX/pulse/urls.txt
Normal file
8
packaging/MacOSX/pulse/urls.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
http://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz
|
||||
http://www.mega-nerd.com/SRC/libsamplerate-0.1.7.tar.gz
|
||||
http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.24.tar.gz
|
||||
http://oss.metaparadigm.com/json-c/json-c-0.9.tar.gz
|
||||
http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
|
||||
# https://api.opensuse.org/public/source/home:mkbosmans:mingw32:pulseaudio/mingw32-pulseaudio/pulseaudio-1.0-dev-366-g7d918.tar.gz
|
||||
# http://www.fritz-elfert.de/downloads/pulseaudio-1.0-fe-20110622.tar.gz
|
||||
http://www.fritz-elfert.de/downloads/pulseaudio-1.0-fe-20111209.tar.gz
|
||||
BIN
packaging/MacOSX/volicon.icns
Normal file
BIN
packaging/MacOSX/volicon.icns
Normal file
Binary file not shown.
BIN
packaging/MacOSX/volicon.png
Normal file
BIN
packaging/MacOSX/volicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
Reference in New Issue
Block a user