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 |
89
packaging/win32/Makefile.am
Normal file
89
packaging/win32/Makefile.am
Normal file
@@ -0,0 +1,89 @@
|
||||
SUBDIRS = xming nx cygnx pulse
|
||||
|
||||
FNT1DIR = dejavu-fonts-ttf-2.32
|
||||
FNT1BALL = $(FNT1DIR).tar.bz2
|
||||
FNT1URL = https://unixforum.org/up/nxman/opennx/$(FNT1BALL)
|
||||
FNT2DIR = font-misc-misc-1.1.0
|
||||
FNT2BALL = $(FNT2DIR).tar.bz2
|
||||
FNT2URL = https://unixforum.org/up/nxman/opennx/$(FNT2BALL)
|
||||
|
||||
.setupdir: $(FNT1DIR) .miscfonts
|
||||
$(RM) -rf setupdir
|
||||
$(MAKE) -C $(top_builddir) DESTDIR=$(abs_builddir)/setupdir \
|
||||
transform= prefix=/ bindir=/bin datadir=/share install
|
||||
test $(BUILDXMING) = no || $(MAKE) -C xming tmpinstall
|
||||
test $(BUILDXMING) = no || $(INSTALL_PROGRAM) xming/dist/usr/X11R6/bin/*.exe setupdir/bin
|
||||
test $(BUILDXMING) = no || $(INSTALL_PROGRAM) xming/dist/usr/X11R6/bin/*.dll setupdir/bin
|
||||
test $(BUILDXMING) = no || $(INSTALL) -d setupdir/share/Xming
|
||||
test $(BUILDXMING) = no || $(INSTALL_DATA) xming/dist/usr/X11R6/lib/X11/XErrorDB setupdir/share/Xming
|
||||
test $(BUILDXMING) = no || $(INSTALL_DATA) xming/dist/usr/X11R6/lib/X11/XKeysymDB setupdir/share/Xming
|
||||
test $(BUILDXMING) = no || $(INSTALL_DATA) xming/dist/usr/X11R6/lib/X11/xserver/SecurityPolicy setupdir/share/Xming
|
||||
test $(BUILDXMING) = no || cp -r xming/dist/usr/X11R6/lib/X11/locale setupdir/share/Xming/locale
|
||||
test $(BUILDXMING) = no || $(INSTALL_DATA) xming/xc/programs/rgb/rgb.txt setupdir/share/Xming
|
||||
test $(BUILDXMING) = no || $(INSTALL) -d setupdir/share/Xming/fonts/TTF
|
||||
test $(BUILDXMING) = no || $(INSTALL_DATA) $(FNT1DIR)/ttf/* setupdir/share/Xming/fonts/TTF
|
||||
test $(BUILDXMING) = no || $(MAKE) -C $(FNT2DIR) DESTDIR=$(abs_builddir)/setupdir install
|
||||
$(MAKE) -C $(NXBUILD) tmpinstall
|
||||
$(INSTALL_PROGRAM) $(NXBUILD)/dist/bin/*.exe setupdir/bin
|
||||
$(INSTALL_PROGRAM) $(NXBUILD)/dist/bin/*.dll setupdir/bin
|
||||
$(INSTALL_PROGRAM) $(NXBUILD)/dist/lib/*.dll setupdir/bin
|
||||
test $(BUILDXMING) = yes || cp -r $(NXBUILD)/dist/share/* setupdir/share
|
||||
$(MAKE) -C pulse tmpdist
|
||||
$(INSTALL_PROGRAM) pulse/dist/bin/*.exe setupdir/bin
|
||||
$(INSTALL_PROGRAM) pulse/dist/bin/*.dll setupdir/bin
|
||||
$(INSTALL_PROGRAM) pulse/dist/bin/*.bat setupdir/bin
|
||||
cp -av pulse/dist/etc setupdir
|
||||
cp -av pulse/dist/lib setupdir
|
||||
cp -av pulse/dist/share setupdir
|
||||
for lang in $(shell cat $(top_srcdir)/po/LINGUAS) ; do \
|
||||
$(INSTALL_DATA) $(localedir)/$$lang/LC_MESSAGES/wxstd.mo \
|
||||
setupdir/share/locale/$$lang/LC_MESSAGES/ ; \
|
||||
done
|
||||
$(INSTALL_DATA) $(top_srcdir)/extres/nx.ico setupdir/bin/
|
||||
touch $@
|
||||
|
||||
.dlldeps: .setupdir findrequires.pl
|
||||
env DEPDEBUG=1 perl findrequires.pl "$(DLLPATH)" setupdir/bin/*.{exe,dll} 2>$@ > .tmplist
|
||||
if [ "$$(stat -c %s .tmplist)" -gt 0 ] ; then xargs -a .tmplist cp -t setupdir/bin; fi
|
||||
rm .tmplist
|
||||
touch $@
|
||||
|
||||
.stripsetup: .setupdir
|
||||
$(RM) -rf setupdir/share/icons setupdir/share/applnk
|
||||
$(STRIP) --strip-unneeded setupdir/bin/*.exe `ls setupdir/bin/*.dll|grep -v cyg`
|
||||
touch $@
|
||||
|
||||
nativesetup: .setupdir .dlldeps .stripsetup
|
||||
"$(ISCC)" "$(srcdir)/opennx.iss" -dBUILDXMING=$(BUILDXMING)
|
||||
|
||||
crosssetup: .setupdir .dlldeps .stripsetup isccwrap.sh
|
||||
for edfn in $(EXTRA_DIST) ; do \
|
||||
$(INSTALL_DATA) $(abs_srcdir)/$$edfn ./ ; \
|
||||
done
|
||||
"$(ISCC)" "opennx.iss" -dBUILDXMING=$(BUILDXMING)
|
||||
|
||||
setup: $(SETUP)
|
||||
|
||||
$(FNT1BALL):
|
||||
@echo downloading tarball $(FNT1BALL)
|
||||
@$(WGET) "$(FNT1URL)"
|
||||
|
||||
$(FNT1DIR): $(FNT1BALL)
|
||||
@tar xjf $<
|
||||
|
||||
$(FNT2BALL):
|
||||
@echo downloading tarball $(FNT2BALL)
|
||||
@$(WGET) "$(FNT2URL)"
|
||||
|
||||
$(FNT2DIR): $(FNT2BALL)
|
||||
@tar xjf $<
|
||||
|
||||
.miscfonts: $(FNT2DIR)
|
||||
@(cd $(FNT2DIR) && ./configure \
|
||||
--with-fontrootdir=/share/Xming/fonts \
|
||||
--with-compression=gzip )
|
||||
touch $@
|
||||
|
||||
EXTRA_DIST = opennx.iss version.iss lgpl.rtf
|
||||
MAINTAINERCLEANFILES = Makefile.in $(FNT1BALL) $(FNT2BALL)
|
||||
CLEANFILES = -r .setupdir .dlldeps .stripsetup setupdir $(FNT1DIR) $(FNT2DIR)
|
||||
36
packaging/win32/cygnx/Makefile.am
Normal file
36
packaging/win32/cygnx/Makefile.am
Normal file
@@ -0,0 +1,36 @@
|
||||
IURAR = innounp041.rar
|
||||
INXCSN = NXClientCE-3.5.0-9-r15.6.exe
|
||||
|
||||
tmpinstall: '{app}'
|
||||
mkdir -p dist/bin dist/lib dist/share
|
||||
cp '{app}'/bin/*.dll dist/lib
|
||||
cp '{app}'/bin/*.dll dist/bin
|
||||
for f in $(CYGBINS) ; do \
|
||||
cp '{app}'/bin/$$f.exe dist/bin ; \
|
||||
done
|
||||
for f in fonts keyboards rgb ; do \
|
||||
test $(BUILDXMING) = yes || cp -r '{app}'/share/$$f dist/share ; \
|
||||
done
|
||||
|
||||
'{app}': innounp.exe nxsetup.exe
|
||||
$(WINE) innounp.exe -x -q -y nxsetup.exe
|
||||
|
||||
$(IURAR):
|
||||
$(WGET) -O $@ 'https://unixforum.org/up/nxman/opennx/$(IURAR)'
|
||||
|
||||
innounp.exe: unrar.available $(IURAR)
|
||||
$(UNRAR) e -o+ -idcd $(IURAR) $@
|
||||
|
||||
unrar.available:
|
||||
@if test -z "$(UNRAR)" ; then \
|
||||
echo "No unrar available! Please unpack innounp rar archive manually." ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
touch $@
|
||||
|
||||
nxsetup.exe:
|
||||
$(WGET) -O $@ -q 'http://unixforum.org/up/nxman/$(INXCSN)'
|
||||
|
||||
CLEANFILES = -r dist '{app}' install_script.iss unrar.available
|
||||
DISTCLEANFILES = $(IURAR) innounp.exe nxsetup.exe
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
35
packaging/win32/cygnx/README
Normal file
35
packaging/win32/cygnx/README
Normal file
@@ -0,0 +1,35 @@
|
||||
In order to build an OpenNX installer package which
|
||||
uses the original nxssh.exe and nxesd.exe,
|
||||
you can do the following:
|
||||
|
||||
1. Install the Innosetup Quickstart Package from
|
||||
http://www.jrsoftware.org/isdl.php (On Linux, do this inside wine).
|
||||
2. Fetch NoMachine's nxclient windows installer into this directory
|
||||
3. Fetch innounp from http://sourceforge.net/projects/innounp/files/
|
||||
and put the innounp.exe into this directory.
|
||||
4. Run innounp.exe -x nxclient-x.y.z.exe (On Linux, use wine, e.g.:
|
||||
wine innounp.exe -x nxclient-x.y.z.exe)
|
||||
|
||||
After that, you should see a directory named '{app}' which contains
|
||||
the package contents.
|
||||
|
||||
5. Go to the toplevel and configure OpenNX using the option
|
||||
--with-orignx
|
||||
|
||||
Here is the config cmd which I use on my Fedora:
|
||||
|
||||
mingw32-configure \
|
||||
--enable-staticwx \
|
||||
--with-orignx \
|
||||
--with-dllpath=/usr/i686-pc-mingw32/sys-root/mingw/bin \
|
||||
--with-wx-config=/usr/i686-pc-mingw32/sys-root/mingw/bin/wx-config \
|
||||
--with-wine-iscc="$HOME/.wine/drive_c/Program\ Files/Inno\ Setup\ 5/ISCC.exe"
|
||||
|
||||
mingw32-configure is a wrapper from Fedora's mingw32 environment. Please also
|
||||
note the double-quoting of the iscc path.
|
||||
|
||||
6. Run make dist-platform
|
||||
|
||||
When running ISCC in wine during the last build step, sometimes ISCC aborts with a
|
||||
false "out of memory" error. If that happens, simply run make dist-platform again,
|
||||
it should go very quickly, because everything is already built ...
|
||||
114
packaging/win32/findrequires.pl.in
Normal file
114
packaging/win32/findrequires.pl.in
Normal file
@@ -0,0 +1,114 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
use strict;
|
||||
use File::Basename;
|
||||
|
||||
my $DEBUG = $ENV{'DEPDEBUG'};
|
||||
|
||||
my @sysdlls = (
|
||||
'acledit', 'aclui', 'activeds', 'actxprxy', 'advapi32', 'advpack', 'amstream',
|
||||
'atl', 'authz', 'avicap32', 'avifil32', 'browseui', 'cabinet', 'capi2032', 'cards',
|
||||
'cfgmgr32', 'clusapi', 'comcat', 'comctl32', 'comdlg32', 'compstui', 'credui',
|
||||
'crtdll', 'crypt32', 'cryptdlg', 'cryptdll', 'cryptnet', 'cryptui', 'ctapi32',
|
||||
'ctl3d32', 'd3d10', 'd3d10core', 'd3d8', 'd3d9', 'd3dim', 'd3drm', 'd3dx8', 'd3dx9_24',
|
||||
'd3dx9_25', 'd3dx9_26', 'd3dx9_27', 'd3dx9_28', 'd3dx9_29', 'd3dx9_30', 'd3dx9_31',
|
||||
'd3dx9_32', 'd3dx9_33', 'd3dx9_34', 'd3dx9_35', 'd3dx9_36', 'd3dx9_37', 'd3dx9_38',
|
||||
'd3dx9_39', 'd3dx9_40', 'd3dxof', 'dbghelp', 'dciman32', 'ddraw', 'ddrawex', 'devenum',
|
||||
'dinput', 'dinput8', 'dmband', 'dmcompos', 'dmime', 'dmloader', 'dmscript', 'dmstyle',
|
||||
'dmsynth', 'dmusic', 'dmusic32', 'dnsapi', 'dplay', 'dplayx', 'dpnaddr', 'dpnet', 'dpnhpast',
|
||||
'dpnlobby', 'dpwsockx', 'dsound', 'dssenh', 'dswave', 'dwmapi', 'dxdiagn', 'dxgi',
|
||||
'faultrep', 'fusion', 'gdi32', 'gdiplus', 'glu32', 'gpkcsp', 'hal', 'hid', 'hlink',
|
||||
'hnetcfg', 'httpapi', 'iccvid', 'icmp', 'imagehlp', 'imm32', 'inetcomm', 'inetmib1',
|
||||
'infosoft', 'initpki', 'inkobj', 'inseng', 'iphlpapi', 'itircl', 'itss', 'jscript',
|
||||
'kernel32', 'loadperf', 'localspl', 'localui', 'lz32', 'mapi32', 'mciavi32', 'mcicda',
|
||||
'mciqtz32', 'mciseq', 'mciwave', 'midimap', 'mlang', 'mpr', 'mprapi', 'msacm32',
|
||||
'mscat32', 'mscms', 'mscoree', 'msctf', 'msdmo', 'msftedit', 'mshtml', 'msi', 'msimg32',
|
||||
'msimtf', 'msisip', 'msnet32', 'msrle32', 'mssign32', 'mssip32', 'mstask', 'msvcirt',
|
||||
'msvcr71', 'msvcrt', 'msvcrt20', 'msvcrt40', 'msvcrtd', 'msvfw32', 'msvidc32', 'mswsock',
|
||||
'msxml3', 'nddeapi', 'netapi32', 'newdev', 'ntdll', 'ntdsapi', 'ntprint', 'objsel',
|
||||
'odbc32', 'odbccp32', 'ole32', 'oleacc', 'oleaut32', 'olecli32', 'oledlg', 'olepro32',
|
||||
'olesvr32', 'olethk32', 'opengl32', 'pdh', 'pidgen', 'powrprof', 'printui', 'propsys',
|
||||
'psapi', 'pstorec', 'qcap', 'qedit', 'qmgr', 'qmgrprxy', 'quartz', 'query', 'rasapi32',
|
||||
'rasdlg', 'resutils', 'riched20', 'riched32', 'rpcrt4', 'rsabase', 'rsaenh', 'sccbase',
|
||||
'schannel', 'secur32', 'security', 'sensapi', 'serialui', 'setupapi', 'sfc', 'sfc_os',
|
||||
'shdoclc', 'shdocvw', 'shell32', 'shfolder', 'shlwapi', 'slbcsp', 'slc', 'snmpapi',
|
||||
'softpub', 'spoolss', 'sti', 'svrapi', 'sxs', 'tapi32', 'traffic', 'twain_32', 'unicows',
|
||||
'updspapi', 'url', 'urlmon', 'user32', 'userenv', 'usp10', 'uxtheme', 'vdmdbg', 'version',
|
||||
'w32skrnl', 'wined3d', 'winedos', 'wing32', 'winhttp', 'wininet', 'winmm', 'winnls32',
|
||||
'winscard', 'winspool', 'wintab32', 'wintrust', 'wldap32', 'wmi', 'wnaspi32', 'wow32', 'ws2_32',
|
||||
'wsock32', 'wtsapi32', 'wuapi', 'xinput1_1', 'xinput1_2', 'xinput1_3', 'xinput9_1_0',
|
||||
);
|
||||
|
||||
die "Usage: findrequires <syspath> binary1 binary2 ...\n" unless ($#ARGV > 0);
|
||||
my $dllpath = shift(@ARGV);
|
||||
my %required;
|
||||
my %examined;
|
||||
my $dstdir;
|
||||
|
||||
sub dbg {
|
||||
print STDERR @_ if ($DEBUG);
|
||||
}
|
||||
|
||||
sub ncf($$) {
|
||||
my $dir = shift;
|
||||
my $file = shift;
|
||||
my @a = grep { lc("$dir/$file") eq lc($_) } glob("$dir/*");
|
||||
return (scalar(@a)) ? $a[0] : undef;
|
||||
}
|
||||
|
||||
sub finddeps($$);
|
||||
|
||||
sub finddeps($$) {
|
||||
my $target = shift;
|
||||
my $lvl = shift;
|
||||
my %lreq;
|
||||
my $indent = sprintf("%*s", $lvl, "");
|
||||
return if ($examined{$target});
|
||||
$examined{$target} = 1;
|
||||
dbg $indent, "Examining ", $target, "\n";
|
||||
foreach (sort keys %required) {
|
||||
return if ($required{$_} eq $target);
|
||||
}
|
||||
if ($lvl) {
|
||||
$required{basename($target)} = $target;
|
||||
} else {
|
||||
$dstdir = dirname($target) if (!$lvl);
|
||||
}
|
||||
$lvl++;
|
||||
open (P, "@OBJDUMP@ -p $target|sort -u|") || die "Can't run @OBJDUMP@ -p $target: $!\n";
|
||||
while (<P>) {
|
||||
chomp;
|
||||
if (/^\s*DLL\s+Name:\s+(\S+)/) {
|
||||
my $dll = $1;
|
||||
my $cdll = lc($dll);
|
||||
$cdll =~ s/\.dll$//;
|
||||
$cdll =~ s/\.drv$//;
|
||||
next if grep { $cdll eq $_ } @sysdlls;
|
||||
dbg $indent, " Depends on ", $dll, "\n";
|
||||
next if (ncf($dstdir, $dll));
|
||||
my $absdll = '';
|
||||
foreach my $dir (split(/:/, $dllpath)) {
|
||||
if (ncf($dir, $dll)) {
|
||||
$absdll = ncf($dir, $dll);
|
||||
last;
|
||||
}
|
||||
}
|
||||
if ($absdll ne '') {
|
||||
dbg $indent, " $dll found in dllpath\n";
|
||||
$lreq{$cdll} = $absdll;
|
||||
} else {
|
||||
die "Can't find required DLL $dll\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (sort keys %lreq) {
|
||||
finddeps($lreq{$_}, $lvl);
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $p (@ARGV) {
|
||||
finddeps($p, 0);
|
||||
}
|
||||
foreach (sort keys %required) {
|
||||
print $required{$_}, "\n";
|
||||
}
|
||||
34
packaging/win32/isccwrap.sh.in
Normal file
34
packaging/win32/isccwrap.sh.in
Normal file
@@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
|
||||
# ISCC currently crashes with a fake "Out of memory" when running
|
||||
# under wine. This wrapper loops up to MAX times until ISCC finished
|
||||
# successfully.
|
||||
|
||||
CNT=0
|
||||
MAX=5
|
||||
|
||||
EOUT=isccerr.$$
|
||||
WINE_VERSION=`wine --version|sed -e 's/wine-//'|tr . 0`
|
||||
BADWINE=
|
||||
if [ $WINE_VERSION -lt 103021 ] ; then
|
||||
BADWINE=-dBADWINE=1
|
||||
fi
|
||||
while test $CNT -lt $MAX ; do
|
||||
@WINE@ "@ISCC@" "$@" $BADWINE 2>$EOUT
|
||||
R=$?
|
||||
case $R in
|
||||
0)
|
||||
rm -f $EOUT
|
||||
exit 0;
|
||||
;;
|
||||
*)
|
||||
cat $EOUT
|
||||
OMM=`grep "Out of memory" $EOUT`
|
||||
rm -f $EOUT
|
||||
test -z "$OMM" && exit $R
|
||||
echo "ISCC got out of memory, retrying ..."
|
||||
sleep 2
|
||||
CNT=`expr $CNT + 1`
|
||||
;;
|
||||
esac
|
||||
done
|
||||
694
packaging/win32/lgpl.rtf
Normal file
694
packaging/win32/lgpl.rtf
Normal file
@@ -0,0 +1,694 @@
|
||||
{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff31507\deff0\stshfdbch0\stshfloch31506\stshfhich31506\stshfbi31506\deflang1033\deflangfe1033\themelang1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f2\fbidi \fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}
|
||||
{\f34\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria Math;}{\f120\fbidi \fmodern\fcharset0\fprq1{\*\panose 020b0609020204030204}Consolas;}
|
||||
{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
|
||||
{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;}{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
|
||||
{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
|
||||
{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f204\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
|
||||
{\f205\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\f207\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f208\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f209\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
|
||||
{\f210\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f211\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f212\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f224\fbidi \fmodern\fcharset238\fprq1 Courier New CE;}
|
||||
{\f225\fbidi \fmodern\fcharset204\fprq1 Courier New Cyr;}{\f227\fbidi \fmodern\fcharset161\fprq1 Courier New Greek;}{\f228\fbidi \fmodern\fcharset162\fprq1 Courier New Tur;}{\f229\fbidi \fmodern\fcharset177\fprq1 Courier New (Hebrew);}
|
||||
{\f230\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f231\fbidi \fmodern\fcharset186\fprq1 Courier New Baltic;}{\f232\fbidi \fmodern\fcharset163\fprq1 Courier New (Vietnamese);}{\f544\fbidi \froman\fcharset238\fprq2 Cambria Math CE;}
|
||||
{\f545\fbidi \froman\fcharset204\fprq2 Cambria Math Cyr;}{\f547\fbidi \froman\fcharset161\fprq2 Cambria Math Greek;}{\f548\fbidi \froman\fcharset162\fprq2 Cambria Math Tur;}{\f551\fbidi \froman\fcharset186\fprq2 Cambria Math Baltic;}
|
||||
{\f1404\fbidi \fmodern\fcharset238\fprq1 Consolas CE;}{\f1405\fbidi \fmodern\fcharset204\fprq1 Consolas Cyr;}{\f1407\fbidi \fmodern\fcharset161\fprq1 Consolas Greek;}{\f1408\fbidi \fmodern\fcharset162\fprq1 Consolas Tur;}
|
||||
{\f1411\fbidi \fmodern\fcharset186\fprq1 Consolas Baltic;}{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flomajor\f31509\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
|
||||
{\flomajor\f31511\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\flomajor\f31512\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flomajor\f31513\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
|
||||
{\flomajor\f31514\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\flomajor\f31515\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flomajor\f31516\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
|
||||
{\fdbmajor\f31518\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fdbmajor\f31519\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbmajor\f31521\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
|
||||
{\fdbmajor\f31522\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fdbmajor\f31523\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbmajor\f31524\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
|
||||
{\fdbmajor\f31525\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fdbmajor\f31526\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhimajor\f31528\fbidi \froman\fcharset238\fprq2 Cambria CE;}
|
||||
{\fhimajor\f31529\fbidi \froman\fcharset204\fprq2 Cambria Cyr;}{\fhimajor\f31531\fbidi \froman\fcharset161\fprq2 Cambria Greek;}{\fhimajor\f31532\fbidi \froman\fcharset162\fprq2 Cambria Tur;}
|
||||
{\fhimajor\f31535\fbidi \froman\fcharset186\fprq2 Cambria Baltic;}{\fbimajor\f31538\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbimajor\f31539\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
|
||||
{\fbimajor\f31541\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbimajor\f31542\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbimajor\f31543\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
|
||||
{\fbimajor\f31544\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbimajor\f31545\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbimajor\f31546\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
|
||||
{\flominor\f31548\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flominor\f31549\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flominor\f31551\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
|
||||
{\flominor\f31552\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flominor\f31553\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flominor\f31554\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
|
||||
{\flominor\f31555\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flominor\f31556\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbminor\f31558\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
|
||||
{\fdbminor\f31559\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbminor\f31561\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbminor\f31562\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
|
||||
{\fdbminor\f31563\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbminor\f31564\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbminor\f31565\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
|
||||
{\fdbminor\f31566\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhiminor\f31568\fbidi \fswiss\fcharset238\fprq2 Calibri CE;}{\fhiminor\f31569\fbidi \fswiss\fcharset204\fprq2 Calibri Cyr;}
|
||||
{\fhiminor\f31571\fbidi \fswiss\fcharset161\fprq2 Calibri Greek;}{\fhiminor\f31572\fbidi \fswiss\fcharset162\fprq2 Calibri Tur;}{\fhiminor\f31575\fbidi \fswiss\fcharset186\fprq2 Calibri Baltic;}
|
||||
{\fbiminor\f31578\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbiminor\f31579\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fbiminor\f31581\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
|
||||
{\fbiminor\f31582\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbiminor\f31583\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fbiminor\f31584\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
|
||||
{\fbiminor\f31585\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbiminor\f31586\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;
|
||||
\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;
|
||||
\red192\green192\blue192;}{\*\defchp \f31506\fs22 }{\*\defpap \ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 }\noqfpromote {\stylesheet{\ql \li0\ri0\sa200\sl276\slmult1
|
||||
\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs22\alang1025 \ltrch\fcs0 \f31506\fs22\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 \sqformat \spriority0 \styrsid11169331 Normal;}{\*\cs10
|
||||
\additive \ssemihidden \sunhideused \spriority1 Default Paragraph Font;}{\*
|
||||
\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tblind0\tblindtype3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv \ql \li0\ri0\sa200\sl276\slmult1
|
||||
\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31506\afs22\alang1025 \ltrch\fcs0 \f31506\fs22\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext11 \ssemihidden \sunhideused \sqformat Normal Table;}{
|
||||
\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af31507\afs21\alang1025 \ltrch\fcs0 \f120\fs21\lang1033\langfe1033\cgrid\langnp1033\langfenp1033
|
||||
\sbasedon0 \snext15 \slink16 \sunhideused \styrsid14574888 Plain Text;}{\*\cs16 \additive \rtlch\fcs1 \af0\afs21 \ltrch\fcs0 \f120\fs21 \sbasedon10 \slink15 \slocked \styrsid14574888 Plain Text Char;}}{\*\listtable{\list\listtemplateid1802505568
|
||||
\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698711\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li1215\lin1215 }
|
||||
{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li1935\lin1935 }
|
||||
{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li2655\lin2655 }
|
||||
{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li3375\lin3375 }
|
||||
{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li4095\lin4095 }
|
||||
{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li4815\lin4815 }
|
||||
{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li5535\lin5535 }
|
||||
{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li6255\lin6255 }
|
||||
{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li6975\lin6975 }
|
||||
{\listname ;}\listid766193034}{\list\listtemplateid1729506158\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698711\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1
|
||||
\af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-180\li2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-180\li4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0
|
||||
\ltrch\fcs0 \hres0\chhres0 \fi-180\li6480\lin6480 }{\listname ;}\listid1069308851}{\list\listtemplateid1744077890\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext
|
||||
\leveltemplateid158756332\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fbias0\hres0\chhres0 \fi-375\li870\lin870 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li1575\lin1575 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li2295\lin2295 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li3015\lin3015 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li3735\lin3735 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li4455\lin4455 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li5175\lin5175 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li5895\lin5895 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
|
||||
{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li6615\lin6615 }{\listname ;}\listid1308512470}{\list\listtemplateid-1183179082\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc0
|
||||
\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid67698711\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2
|
||||
\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \hres0\chhres0 \fi-180\li6480\lin6480 }{\listname ;}\listid1699813396}}{\*\listoverridetable
|
||||
{\listoverride\listid766193034\listoverridecount0\ls1}{\listoverride\listid1308512470\listoverridecount0\ls2}{\listoverride\listid1069308851\listoverridecount0\ls3}{\listoverride\listid1699813396\listoverridecount0\ls4}}{\*\rsidtbl \rsid87008\rsid459789
|
||||
\rsid998576\rsid1317677\rsid1511762\rsid2100909\rsid3022774\rsid3806151\rsid3948222\rsid4541767\rsid4595952\rsid4806937\rsid5644847\rsid5833046\rsid6114713\rsid6565299\rsid8073659\rsid8456879\rsid8717939\rsid9192088\rsid10708702\rsid10880936\rsid11029523
|
||||
\rsid11169331\rsid11222218\rsid11222345\rsid11683018\rsid11747619\rsid13125735\rsid13435413\rsid14574888\rsid14969541\rsid15205174\rsid15279495\rsid15929603\rsid16656294}{\mmathPr\mmathFont34\mbrkBin0\mbrkBinSub0\msmallFrac0\mdispDef1\mlMargin0\mrMargin0
|
||||
\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\author David Hoyt}{\operator David Hoyt}{\creatim\yr2009\mo7\dy10\hr18\min38}{\revtim\yr2009\mo12\dy2\hr21\min1}{\version33}{\edmins23}{\nofpages10}{\nofwords3902}{\nofchars22244}{\*\company LLNL}
|
||||
{\nofcharsws26094}{\vern32771}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}}\paperw12240\paperh15840\margl1501\margr1502\margt1440\margb1440\gutter0\ltrsect
|
||||
\widowctrl\ftnbj\aenddoc\trackmoves1\trackformatting1\donotembedsysfont1\relyonvml0\donotembedlingdata0\grfdocevents0\validatexml1\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors1\noxlattoyen
|
||||
\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\formshade\horzdoc\dgmargin\dghspace180\dgvspace180\dghorigin1501\dgvorigin1440\dghshow1\dgvshow1
|
||||
\jexpand\viewkind1\viewscale100\pgbrdrhead\pgbrdrfoot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\useltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkrule\nobrkwrptbl\snaptogridincell\allowfieldendsel\wrppunct
|
||||
\asianbrkrule\rsidroot6565299\newtblstyruls\nogrowautofit\usenormstyforlist\noindnmbrts\felnbrelev\nocxsptable\indrlsweleven\noafcnsttbl\afelev\utinl\hwelev\spltpgpar\notcvasp\notbrkcnstfrctbl\notvatxbx\krnprsnet\cachedcolbal \nouicompat \fet0
|
||||
{\*\wgrffmtfilter 2450}\nofeaturethrottle1\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\endnhere\sectlinegrid360\sectdefaultcl\sectrsid14574888\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2
|
||||
\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6
|
||||
\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang
|
||||
{\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid15929603 \rtlch\fcs1 \af31507\afs21\alang1025 \ltrch\fcs0
|
||||
\f120\fs21\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 GNU LESSER GENERAL PUBLIC LICENSE
|
||||
\par Version 2.1, February 1999
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par Copyright (C) 1991, 1999 Free Software Foundation, Inc.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3948222 51 Franklin Street, }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Fifth Floor, Boston, MA 02110-1301 USA}
|
||||
{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid2100909\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Everyone is permitted to copy and distribute verbatim copies}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3948222 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 of this license document, but changing it is not allowed.
|
||||
\par
|
||||
\par [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
|
||||
\par
|
||||
\par }\pard \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid15929603 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 Preamble
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par The licenses for most software are designed to take away your}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3948222 freedom to }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 share and change it. By contrast, the GNU General Public}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Licenses are intended to guarantee your freedom to share and change}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
free software--to make sure the software is free for all its users.
|
||||
\par
|
||||
\par This license, the Lesser General Public License, applies to some}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
specially designated software packages--typically libraries--of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Free Software Foundation a
|
||||
nd other authors who decide to use it. You}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
can use it too, but we suggest you first think carefully about whether}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
this license or the ordinary General Public License is the better}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
\par
|
||||
\par When we speak of free software, we are referring to freedom of use,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
not price. Our General Public Licenses are designed to make sure that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
you have the freedom to distribute copies of free software (and charge}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
for this service if you wish); that you receive source code or can get}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
it if you want it; that you can change the software and use pieces of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
it in new free programs; and that you are informed that you can do}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 these things.
|
||||
\par
|
||||
\par To protect your rights, we need to make restrictions that forbid}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 distributor
|
||||
s to deny you these rights or to ask you to surrender these}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
rights. These restrictions translate to certain responsibilities for}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
\par
|
||||
\par For example, if you distribute copies of the library, whether gratis}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 or }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
for a fee, you must give the recipients all the rights that we gave}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 you. }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
You must make sure that they, too, receive or can get the source}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 code. }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
If you link other code with the library, you must provide}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 complete object files to the recipient
|
||||
s, so that they can relink them}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 with the library after making changes to the library and recompiling}
|
||||
{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 it. And you must show them these terms so they know their rights.
|
||||
\par
|
||||
\par We protect your rights with a two-step method: (1) we copyright the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 library, and (2)
|
||||
we offer you this license, which gives you legal}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
permission to copy, distribute and/or modify the library.
|
||||
\par
|
||||
\par To protect each distributor, we want to make it very clear that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
there is no warranty for the free library. Also, if the library is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 modified by so
|
||||
meone else and passed on, the recipients should know}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
that what they have is not the original version, so that the original}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 author's }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
reputation will not be affected by problems that might be}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid16656294\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 introduced by others.
|
||||
\par
|
||||
\par Finally, software patents pose a constant threat to the existence of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
any free program. We wish to make sure that a company cannot}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
effectively restrict the users of a free program by obtaining a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
restrictive license from a patent holder. Therefore, we insist that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 any pate
|
||||
nt license obtained for a version of the library must be}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
consistent with the full freedom of use specified in this license.
|
||||
\par
|
||||
\par Most GNU software, including some libraries, is covered by the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
ordinary GNU General Public License. This license, the GNU Lesser}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
General Public License, applies to certain designated libraries, and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
is quite different from the ordinary General Public License. We use}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
this license for certain libraries in order to permit linking those}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 libraries into non-free programs.
|
||||
|
||||
\par
|
||||
\par When a program is linked with a library, whether statically or using}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
a shared library, the combination of the two is legally speaking a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
combined work, a derivative of the original library. The ordinary}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
General Public License therefore permits such linking only if the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
entire combination fits its criteria of freedom. The Lesser General}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Public License permits more lax criteria for linking other code with}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the library.
|
||||
\par
|
||||
\par We call this license the "Lesser" General Public License because it}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 does Less to protect the user's f
|
||||
reedom than the ordinary General}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Public License. It also provides other free software developers Less}{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 of an advantage over competing non-free programs. These disadvantages}{\rtlch\fcs1 \af2\afs20
|
||||
\ltrch\fcs0 \f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 are the reason we use the ordinary General Public License for many}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 libraries. However, the Lesser license provides advantages in certain}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid87008\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 special circumstances.
|
||||
\par
|
||||
\par For example, on rare occasions, there may be a special need to}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 encourage the widest possible use o}{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 f a certain library, so that it }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 becomes}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 a de-facto standard. To achieve this, non-free programs must be}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 allowed to use the library. A more frequent case is that a free}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid8456879\charrsid459789 library }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 does the same job as widely used non-free libraries. In this}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 case, there is little to gain by limiting the free library to free}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 software only, so we use the Lesser General Public License.
|
||||
\par
|
||||
\par In other cases, permission to use a particular library in non-free}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
programs enables a greater number of people to use a large body of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 free }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
software. For example, permission to use the GNU C Library in}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 non-free program
|
||||
s enables many more people to use the whole GNU}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
operating system, as well as its variant, the GNU/Linux operating}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8456879\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 system.
|
||||
\par
|
||||
\par Although the Lesser General Public License is Less protective of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
users' freedom, it does ensure that the user of a program that is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 linked }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
with the Library has the freedom and the wherewithal to run}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
that program using a modified version of the Library.
|
||||
\par
|
||||
\par The precise terms and conditions for copying, distribution and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
modification follow. Pay close attention to the difference between a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
"work based on the library" and a "work that uses the library". The}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
former contains code derived from the library, whereas the latter must}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4806937\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
be combined with the library in order to run.
|
||||
\par }\pard \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid15929603 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid4806937\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 GNU LESSER GENERAL PUBLIC LICENSE
|
||||
\par TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par 0. This License Agreement applies to any software library or other}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
program which contains a notice placed by the copyright holder or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 other }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 authorized part
|
||||
y saying it may be distributed under the terms of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 this }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Lesser General Public License (also called "this License").}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Each licensee is addressed as "you".
|
||||
|
||||
\par
|
||||
\par A "library" means a collection of software functions and/or data}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
prepared so as to be conveniently linked with application programs}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
(which use some of those functions and data) to form executables.
|
||||
\par
|
||||
\par The "Library", below, refers to any such software library or work}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
which has been distributed under these terms. A "work based on the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Library" means either
|
||||
the Library or any derivative work under}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
copyright law: that is to say, a work containing the Library or a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
portion of it, either verbatim or with modifications and/or translated}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
straightforwardly into another language. (Hereinafter, translation is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 include
|
||||
d without limitation in the term "modification".)
|
||||
\par
|
||||
\par "Source code" for a work means the preferred form of the work for}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
making modifications to it. For a library, complete source code means}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
all the source code for all modules it contains, plus any associated}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
interface definition files, plus the scripts used to control compilation}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
and installation of the library.
|
||||
\par
|
||||
\par Activities other than copying, distribution and modification are not}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
covered by this License; they are outside its scope. The act of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 running }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 a
|
||||
program using the Library is not restricted, and output from}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
such a program is covered only if its contents constitute a work based}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
on the Library (independent of the use of the Library in a tool for}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
writing it). Whether that is true depends on what the Library does}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid6114713\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
and what the program that uses the Library does.
|
||||
\par
|
||||
\par 1. You may copy and distribute verbatim copies of the Library's}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
complete source code as you receive it, in any medium, provided that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 you }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
conspicuously and appropriately publish on each copy an}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
all the notices that refer to this License and to the absence of any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
warranty; and distribute a copy of this License along with the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Library.
|
||||
\par
|
||||
\par You may charge a fee for the physical act of transferring a copy,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
and you may at your option offer warranty protection in exchange for a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4541767\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 fee.
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 2. You may modify your copy or copies of the Library or any portion}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20
|
||||
\ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 of it, thus forming a work based on the Library, and copy and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 distribute such modifications or work under the terms of Section 1}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 above, provided that you also meet all of these conditions:
|
||||
\par
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 a)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls1\adjustright\rin0\lin720\itap0\pararsid5833046 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 The modified work must itself be a software library.}{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 b)\tab}}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 You mu
|
||||
st cause the files modified to carry prominent notices}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
stating that you changed the files and the date of any change.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 c)\tab}}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
You must cause the whole of the work to be licensed at no}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
charge to all third parties under the terms of this License.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 d)\tab}}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 If a facili
|
||||
ty in the modified Library refers to a function or a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
table of data to be supplied by an application program that uses}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the facility, other than as an argument passed when the facility}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
is invoked, then you must make a good faith effort to ensure that,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
in the event an application does not supply such function or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
table, the facility still operates, and performs whatever part of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
its purpose remains meaningful.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 \line \line }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
(For example, a function in a library to compute square roots has}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 a purpos
|
||||
e that is entirely well-defined independent of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
application. Therefore, Subsection 2d requires that any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
application-supplied function or table used by this function must}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
be optional: if the application does not supply it, the square}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8717939\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 roo
|
||||
t function must still compute square roots.)
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par These requirements apply to the modified work as a whole. If}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
identifiable sections of that work are not derived from the Library,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 and }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
can be reasonably considered independent and separate works in}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 themselves,
|
||||
then this License, and its terms, do not apply to those}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
sections when you distribute them as separate works. But when you}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
distribute the same sections as part of a whole which is a work based}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 on }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the Library, the distribution of the whole must be on the terms of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 this }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
License, whose permissions for other licensees extend to the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
entire whole, and thus to each and every part regardless of who wrote}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 it.
|
||||
\par
|
||||
\par Thus, it is not the intent of this section to claim rights or contest}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
your rights to work written entirely by you; rather, the intent is to}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
exercise the right to control the distribution of derivative or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
collective works based on the Library.
|
||||
\par
|
||||
\par In addition, mere aggregation of another work not based on the Library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
with the Library (or with a work based on the Library) on a volume of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 a }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
storage or distribution medium does not bring the other work under}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10708702\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the scope of this License.
|
||||
\par
|
||||
\par 3. You may opt to apply the terms of the ordinary GNU General Public}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 License
|
||||
instead of this License to a given copy of the Library. To do}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
this, you must alter all the notices that refer to this License, so}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 that }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
they refer to the ordinary GNU General Public License, version 2,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 instead }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
of to this License. (If a newer version than version 2 of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 ordinary }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
GNU General Public License has appeared, then you can specify}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 that }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
version instead if you wish.) Do not make any other change in}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222218\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 these notices.}{\rtlch\fcs1
|
||||
\af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3948222\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Once this change is made in a given copy, it is irreversible for}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20
|
||||
\ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 that copy, so the ordinary GNU General Public License applies to all}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 subsequent copies and derivative works made from that copy.
|
||||
\par
|
||||
\par This option is useful when you wish to copy part of the code of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the Library into a program that is not a library.
|
||||
\par
|
||||
\par 4. You may copy and distribute the Library (or a portion or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
derivative of it, under Section 2) in object code or executable form}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
under the terms of Sections 1 and 2 above provided that you accompany}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
it with the complete corresponding machine-readable source code, which}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 must be d
|
||||
istributed under the terms of Sections 1 and 2 above on a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1317677\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
medium customarily used for software interchange.
|
||||
\par
|
||||
\par If distribution of object code is made by offering access to copy}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
from a designated place, then offering equivalent access to copy the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
source code from the same place satisfies the requirement to}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
distribute the source code, even though third parties are not}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
compelled to copy the source along with the object code.
|
||||
\par
|
||||
\par 5. A program that contains no derivative of any portion of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 Library, }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 b
|
||||
ut is designed to work with the Library by being compiled or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
linked with it, is called a "work that uses the Library". Such a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
work, in isolation, is not a derivative work of the Library, and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11683018\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
therefore falls outside the scope of this License.
|
||||
\par
|
||||
\par However, linking a "work that uses the Library" with the Library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11747619\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
creates an executable that is a derivative of the Library (because it}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11747619\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
contains portions of the Library), rather than a "work that uses the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11747619\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
library". The executable is therefore covered by this License.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11747619\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Section 6 states terms for distribution of such executables.
|
||||
\par
|
||||
\par When a "work that uses the Library" uses material from a header file}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14969541\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
that is part of the Library, the object code for the work may be a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14969541\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
derivative work of the Library even though the source code is not.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14969541\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Whether this is true is especially significant if the work can be}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14969541\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
linked without the Library, or if the work is itself a library. The}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14969541\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
\par
|
||||
\par If such an object file uses only numerical parameters, data}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222345\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
structure layouts and accessors, and small macros and small inline}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222345\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
functions (ten lines or less in length), then the use of the object}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222345\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
file is unrestricted, regardless of whether it is legally a derivative}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222345\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
work. (Executables containing this object code plus portions of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11222345\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Library will still fall under Section 6.)
|
||||
\par
|
||||
\par Otherwise, if the work is a derivative of the Library, you may}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5644847\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
distribute the object code for the work under the terms of Section 6.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5644847\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Any executables containing that work also fall under Section 6,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5644847\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
whether or not they are linked directly with the Library itself.
|
||||
\par \page
|
||||
\par 6. As an exception to the Sections above, you may also combine or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
link a "work that uses the Library" with the Library to produce a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 work }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
containing portions of the Library, and distribute that work}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
under terms of your choice, provided that the terms permit}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
modification of the work for the customer's own use and reverse}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
engineering for debugging such modifications.
|
||||
\par
|
||||
\par You must give prominent notice with each copy of the work that the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Library is used in it and that the Library and its use are covered by}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
this License. You must supply a copy of this License. If the work}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
during execution displays copyright notices, you must include the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
copyright notice for the Library among them, as well as a reference}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
directing the user to the copy of this License. Also, you must do one}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid11029523\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 of these things:
|
||||
\par
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 a)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls3\adjustright\rin0\lin720\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
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}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }
|
||||
{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Sections 1 and 2 above); and, if the work is an executable linked}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 with the Library, with the complete machine-readable "work that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 uses the Library", as object code and/or source code, so that the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 user can modify the Library and then relink to produce a modified}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 executable containing the modified Library. (It is understood}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 that the user who changes the contents of definitions files in the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 Library will not necessarily be able to recompile the application}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 to use the modified definitions.)}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 b)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls3\adjustright\rin0\lin720\itap0\pararsid5833046 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Use a suitable shared library mechanism for linking with the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Library. A suitable mechanism is one that (1) uses at run time a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
copy of the library already present on the user's computer system,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
rather than copying library functions into the executable, and (2)}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
will operate properly with a modified version of the library, if}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the user installs one, as long as the modified version is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 interface-compatible with the version that
|
||||
the work was made with.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 c)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls3\adjustright\rin0\lin720\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Accompany the work with a written offer, valid for at}{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 least three years, to give the same user the materials}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 specified in Subsection 6a, above, for a charge no more}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 than the cost of performing this distribution.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 d)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls3\adjustright\rin0\lin720\itap0\pararsid5833046 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 If distribut
|
||||
ion of the work is made by offering access to copy}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
from a designated place, offer equivalent access to copy the above}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
specified materials from the same place.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid5833046\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 e)\tab}}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par For an executable, the required form of the "work that uses the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Library" must include any data and utility programs needed for}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
reproducing the executable from it. However, as a special exception,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 the }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
materials to be distributed need not include anything that is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
normally distributed (in either source or binary form) with the major}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
components (compiler, kernel, and so on) of the operating system on}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
which the executable runs, unless that component itself accompanies}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the executable.
|
||||
\par
|
||||
\par It may happen that this requirement contradicts the license}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
restrictions of other proprietary libraries that do not normally}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
accompany the operating system. Such a contradiction means you cannot}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 use both them and the Library
|
||||
together in an executable that you}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid1511762\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 distribute.
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 7. You may place library facilities that are a work based on the
|
||||
\par Library side-by-side in a single library together with other library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3022774\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
facilities not covered by this License, and distribute such a combined}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3022774\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
library, provided that the separate distribution of the work based on}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3022774\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the Library and of the other library facilities is otherwise}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3022774\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
permitted, and provided that you do these two things:
|
||||
\par
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 a)\tab}}\pard \ltrpar
|
||||
\s15\ql \fi-360\li720\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\ls4\adjustright\rin0\lin720\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Accompany the combined library with a copy of the same work}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 bas
|
||||
ed on the Library, uncombined with any other library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
facilities. This must be distributed under the terms of the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Sections above.}{\rtlch\fcs1
|
||||
\af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 \line
|
||||
\par {\listtext\pard\plain\ltrpar \s15 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 \hich\af2\dbch\af0\loch\f2 b)\tab}}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Give prominent notice with the combined library of the fact}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
that part of it is a work based on the Library, and explaining}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid3806151\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par 8. You may not copy, modify, sublicense, link with, or distribute}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the Library except as expressly provided under this License. Any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
attempt otherwise to copy, modify, sublicense, link with, or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
distribute the Library is void, and will automatically terminate your}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
rights under this License. However, parties who have received copies,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
or rights, from you under this License will not have their licenses}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
terminated so long as such parties remain in full compliance.
|
||||
\par
|
||||
\par 9. You are not required to accept this License, since you have not}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
signed it. However, nothing else grants you permission to modify or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 distribute the Librar
|
||||
y or its derivative works. These actions are}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
prohibited by law if you do not accept this License. Therefore, by}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
modifying or distributing the Library (or any work based on the
|
||||
\par Library), you indicate your acceptance of this License to do so, and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 all its t
|
||||
erms and conditions for copying, distributing or modifying}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid4595952\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the Library or works based on it.
|
||||
\par
|
||||
\par 10. Each time you redistribute the Library (or any work based on the
|
||||
\par Library), the recipient automatically receives a license from the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15205174\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 original licensor to copy
|
||||
, distribute, link with or modify the Library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15205174\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
subject to these terms and conditions. You may not impose any further}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15205174\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
\par You are not responsible for enforcing compliance by third parties with}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15205174\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 this License.
|
||||
\par \page
|
||||
\par 11. If, as a consequence of a court judgment or allegation of patent}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
infringement or for any other reason (not limited to patent issues),}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
conditions are imposed on you (whether by court order, agreement or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 otherwise) that contradict th
|
||||
e conditions of this License, they do not}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
excuse you from the conditions of this License. If you cannot}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
\par License and any other pertinent obligations, then as a consequence you}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 may not d
|
||||
istribute the Library at all. For example, if a patent}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
license would not permit royalty-free redistribution of the Library by}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
all those who receive copies directly or indirectly through you, then}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the only way you could satisfy both it and this License would be to}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid10880936\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
refrain entirely from distribution of the Library.
|
||||
\par
|
||||
\par If any portion of this section is held invalid or unenforceable under any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
particular circumstance, the balance of the section is intended to apply,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
\par
|
||||
\par It is not the purpose of this section to induce you to infringe any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
patents or other property right claims or to contest validity of any}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
such claims; this section has the sole purpose of protecting the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 integrity of the free softwa
|
||||
re distribution system which is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 implemented by public license practices. Many people have made}{
|
||||
\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 generous contributions to the wide range of software distributed}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 through that system in reliance on consistent application of that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 system; it is up to the author/donor to decide if he or she is willing}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 to distribute software through any other system and a licensee cannot}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 impose that choice.
|
||||
\par
|
||||
\par This section is intended to make thoroughly clear what is believed to}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
be a consequence of the rest of this License.
|
||||
\par
|
||||
\par 12. If the distribution and/or use of the Library is restricted in}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
certain countries either by patents or by copyrighted interfaces, the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
original copyright holder who places the Library under this License may add}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
an explicit geographical distribution limitation excluding those countries,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
so that distribution is permitted only in or among countries not thus}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
excluded. In such case, this License incorporates the limitation as if}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
written in the body of this License.
|
||||
\par
|
||||
\par 13. The Free Software Foundation may publish revised and/or new}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
versions of the Lesser General Public License from time to time.
|
||||
\par Such new versions will be similar in spirit to the present version,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
but may differ in detail to address new problems or concerns.
|
||||
\par
|
||||
\par Each version is given a distinguishing version number. If the Library}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
specifies a version number of this License which applies to it and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
"any later version", you have the option of following the terms and}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
conditions either of that version or of any later version published by}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
the Free Software Foundation. If the Library does not specify a}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
license version number, you may choose any version ever published by}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the Free Software Foundation.
|
||||
|
||||
\par \page
|
||||
\par 14. If you wish to incorporate parts of the Library into other free}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
programs whose distribution conditions are incompatible with these,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
write to the author to ask for permission. For software which is}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
copyrighted by the Free Software Foundation, write to the Free}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Software Foundation; we sometimes make exceptions for this. Our}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
decision will be guided by the two goals of preserving the free status}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
of all derivatives of our free software and of promoting the sharing}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 and reuse of software generally.
|
||||
|
||||
\par
|
||||
\par }\pard \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid15929603 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 NO WARRANTY
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid998576 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 KIND, EITHER EXPRESSE
|
||||
D OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 THE
|
||||
COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
\par
|
||||
\par 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid15279495\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 DAMAGES.
|
||||
\par
|
||||
\par }\pard \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid15929603 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 END OF TERMS AND CONDITIONS
|
||||
\par }\pard \ltrpar\s15\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid13125735 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid15279495\charrsid459789
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \b\f2\fs20\insrsid13125735\charrsid459789 How to Apply These Terms to Your New Libraries
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par If you develop a new library, and you want it to be of the greatest}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
possible use to the public, we recommend making it free software that}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
everyone can redistribute and change. You can do so by permitting}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
redistribution under these terms (or, alternative}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 ly, under the terms of }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 the}{\rtlch\fcs1 \af2\afs20
|
||||
\ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 ordinary General Public License).
|
||||
\par
|
||||
\par To apply these terms, attach the follow}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 ing notices to the library. It }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 is}{\rtlch\fcs1 \af2\afs20
|
||||
\ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 safest to attach them to the st}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789
|
||||
art of each source file to most }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 effectively}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 convey the exclusion of warranty; and each file should have at least the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0
|
||||
\f2\fs20\insrsid13125735\charrsid459789 "copyright" line and a pointer to where the full notice is found.
|
||||
\par
|
||||
\par }\pard \ltrpar\s15\ql \li360\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin360\itap0\pararsid8073659 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 <one line to give the library's n}{\rtlch\fcs1
|
||||
\af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 ame and a brief idea of what it }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 does.>
|
||||
\par Copyright (C) <year> <name of author>
|
||||
\par
|
||||
\par This library is free software; you can redistribute it and/or}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
modify it under the terms of the GNU Lesser General Public}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
License as published by the Free Software Foundation; either}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
\par
|
||||
\par This library is distributed in the hope that it will be useful,}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Lesser General Public License for more details.
|
||||
\par
|
||||
\par You should have received a copy of the GNU Lesser General Public}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789 Li
|
||||
cense along with this library; if not, write to the Free Software}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par Also add information on how to contact you by electronic and paper mail.
|
||||
\par
|
||||
\par You should also get your employer (if you work as a programmer) or your}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
necessary. Here is a sample; alter the names:
|
||||
\par
|
||||
\par }\pard \ltrpar\s15\ql \li360\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin360\itap0\pararsid8073659 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid8073659\charrsid459789 library '}{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
\par
|
||||
\par <signature of Ty Coon>, 1 April 1990
|
||||
\par Ty Coon, President of Vice
|
||||
\par }\pard \ltrpar\s15\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0\pararsid14574888 {\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid13125735\charrsid459789
|
||||
\par That's all there is to it!
|
||||
\par
|
||||
\par
|
||||
\par }{\rtlch\fcs1 \af2\afs20 \ltrch\fcs0 \f2\fs20\insrsid14574888\charrsid459789
|
||||
\par }{\*\themedata 504b030414000600080000002100828abc13fa0000001c020000130000005b436f6e74656e745f54797065735d2e786d6cac91cb6ac3301045f785fe83d0b6d8
|
||||
72ba28a5d8cea249777d2cd20f18e4b12d6a8f843409c9df77ecb850ba082d74231062ce997b55ae8fe3a00e1893f354e9555e6885647de3a8abf4fbee29bbd7
|
||||
2a3150038327acf409935ed7d757e5ee14302999a654e99e393c18936c8f23a4dc072479697d1c81e51a3b13c07e4087e6b628ee8cf5c4489cf1c4d075f92a0b
|
||||
44d7a07a83c82f308ac7b0a0f0fbf90c2480980b58abc733615aa2d210c2e02cb04430076a7ee833dfb6ce62e3ed7e14693e8317d8cd0433bf5c60f53fea2fe7
|
||||
065bd80facb647e9e25c7fc421fd2ddb526b2e9373fed4bb902e182e97b7b461e6bfad3f010000ffff0300504b030414000600080000002100a5d6a7e7c00000
|
||||
00360100000b0000005f72656c732f2e72656c73848fcf6ac3300c87ef85bd83d17d51d2c31825762fa590432fa37d00e1287f68221bdb1bebdb4fc7060abb08
|
||||
84a4eff7a93dfeae8bf9e194e720169aaa06c3e2433fcb68e1763dbf7f82c985a4a725085b787086a37bdbb55fbc50d1a33ccd311ba548b63095120f88d94fbc
|
||||
52ae4264d1c910d24a45db3462247fa791715fd71f989e19e0364cd3f51652d73760ae8fa8c9ffb3c330cc9e4fc17faf2ce545046e37944c69e462a1a82fe353
|
||||
bd90a865aad41ed0b5b8f9d6fd010000ffff0300504b0304140006000800000021006b799616830000008a0000001c0000007468656d652f7468656d652f7468
|
||||
656d654d616e616765722e786d6c0ccc4d0ac3201040e17da17790d93763bb284562b2cbaebbf600439c1a41c7a0d29fdbd7e5e38337cedf14d59b4b0d592c9c
|
||||
070d8a65cd2e88b7f07c2ca71ba8da481cc52c6ce1c715e6e97818c9b48d13df49c873517d23d59085adb5dd20d6b52bd521ef2cdd5eb9246a3d8b4757e8d3f7
|
||||
29e245eb2b260a0238fd010000ffff0300504b03041400060008000000210096b5ade296060000501b0000160000007468656d652f7468656d652f7468656d65
|
||||
312e786d6cec594f6fdb3614bf0fd87720746f6327761a07758ad8b19b2d4d1bc46e871e698996d850a240d2497d1bdae38001c3ba618715d86d87615b8116d8
|
||||
a5fb34d93a6c1dd0afb0475292c5585e9236d88aad3e2412f9e3fbff1e1fa9abd7eec70c1d1221294fda5efd72cd4324f1794093b0eddd1ef62fad79482a9c04
|
||||
98f184b4bd2991deb58df7dfbb8ad755446282607d22d771db8b944ad79796a40fc3585ee62949606ecc458c15bc8a702910f808e8c66c69b9565b5d8a314d3c
|
||||
94e018c8de1a8fa94fd05093f43672e23d06af89927ac06762a049136785c10607758d9053d965021d62d6f6804fc08f86e4bef210c352c144dbab999fb7b471
|
||||
7509af678b985ab0b6b4ae6f7ed9ba6c4170b06c788a705430adf71bad2b5b057d03606a1ed7ebf5babd7a41cf00b0ef83a6569632cd467faddec9699640f671
|
||||
9e76b7d6ac355c7c89feca9cccad4ea7d36c65b258a206641f1b73f8b5da6a6373d9c11b90c537e7f08dce66b7bbeae00dc8e257e7f0fd2badd5868b37a088d1
|
||||
e4600ead1ddaef67d40bc898b3ed4af81ac0d76a197c86826828a24bb318f3442d8ab518dfe3a20f000d6458d104a9694ac6d88728eee2782428d60cf03ac1a5
|
||||
193be4cbb921cd0b495fd054b5bd0f530c1931a3f7eaf9f7af9e3f45c70f9e1d3ff8e9f8e1c3e3073f5a42ceaa6d9c84e5552fbffdeccfc71fa33f9e7ef3f2d1
|
||||
17d57859c6fffac327bffcfc793510d26726ce8b2f9ffcf6ecc98baf3efdfdbb4715f04d814765f890c644a29be408edf3181433567125272371be15c308d3f2
|
||||
8acd249438c19a4b05fd9e8a1cf4cd296699771c393ac4b5e01d01e5a30a787d72cf1178108989a2159c77a2d801ee72ce3a5c545a6147f32a99793849c26ae6
|
||||
6252c6ed637c58c5bb8b13c7bfbd490a75330f4b47f16e441c31f7184e140e494214d273fc80900aedee52ead87597fa824b3e56e82e451d4c2b4d32a423279a
|
||||
668bb6690c7e9956e90cfe766cb37b077538abd27a8b1cba48c80acc2a841f12e698f13a9e281c57911ce298950d7e03aba84ac8c154f8655c4f2af074481847
|
||||
bd804859b5e696007d4b4edfc150b12addbecba6b18b148a1e54d1bc81392f23b7f84137c2715a851dd0242a633f900710a218ed715505dfe56e86e877f0034e
|
||||
16bafb0e258ebb4faf06b769e888340b103d3311da9750aa9d0a1cd3e4efca31a3508f6d0c5c5c398602f8e2ebc71591f5b616e24dd893aa3261fb44f95d843b
|
||||
5974bb5c04f4edafb95b7892ec1108f3f98de75dc97d5772bdff7cc95d94cf672db4b3da0a6557f70db629362d72bcb0431e53c6066acac80d699a6409fb44d0
|
||||
8741bdce9c0e4971624a2378cceaba830b05366b90e0ea23aaa241845368b0eb9e2612ca8c742851ca251ceccc70256d8d87265dd96361531f186c3d9058edf2
|
||||
c00eafe8e1fc5c509031bb4d680e9f39a3154de0accc56ae644441edd76156d7429d995bdd88664a9dc3ad50197c38af1a0c16d684060441db02565e85f3b966
|
||||
0d0713cc48a0ed6ef7dedc2dc60b17e92219e180643ed27acffba86e9c94c78ab90980d8a9f0913ee49d62b512b79626fb06dccee2a432bbc60276b9f7dec44b
|
||||
7904cfbca4f3f6443ab2a49c9c2c41476dafd55c6e7ac8c769db1bc399161ee314bc2e75cf8759081743be1236ec4f4d6693e5336fb672c5dc24a8c33585b5fb
|
||||
9cc24e1d4885545b58463634cc5416022cd19cacfccb4d30eb45296023fd35a458598360f8d7a4003bbaae25e331f155d9d9a5116d3bfb9a95523e51440ca2e0
|
||||
088dd844ec6370bf0e55d027a012ae264c45d02f708fa6ad6da6dce29c255df9f6cae0ec38666984b372ab5334cf640b37795cc860de4ae2816e95b21be5ceaf
|
||||
8a49f90b52a51cc6ff3355f47e0237052b81f6800fd7b802239daf6d8f0b1571a8426944fdbe80c6c1d40e8816b88b8569082ab84c36ff0539d4ff6dce591a26
|
||||
ade1c0a7f669880485fd484582903d284b26fa4e2156cff62e4b9265844c4495c495a9157b440e091bea1ab8aaf7760f4510eaa69a6465c0e04ec69ffb9e65d0
|
||||
28d44d4e39df9c1a52ecbd3607fee9cec7263328e5d661d3d0e4f62f44acd855ed7ab33cdf7bcb8ae889599bd5c8b3029895b6825696f6af29c239b75a5bb1e6
|
||||
345e6ee6c28117e73586c1a2214ae1be07e93fb0ff51e133fb65426fa843be0fb515c187064d0cc206a2fa926d3c902e907670048d931db4c1a44959d366ad93
|
||||
b65abe595f70a75bf03d616c2dd959fc7d4e6317cd99cbcec9c58b34766661c7d6766ca1a9c1b327531486c6f941c638c67cd22a7f75e2a37be0e82db8df9f30
|
||||
254d30c1372581a1f51c983c80e4b71ccdd28dbf000000ffff0300504b0304140006000800000021000dd1909fb60000001b010000270000007468656d652f74
|
||||
68656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73848f4d0ac2301484f78277086f6fd3ba109126dd88d0add40384e4350d363f24
|
||||
51eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8ec8e4052164e89d93b64b060828e6f37ed1567914b284d262452282e3198
|
||||
720e274a939cd08a54f980ae38a38f56e422a3a641c8bbd048f7757da0f19b017cc524bd62107bd5001996509affb3fd381a89672f1f165dfe514173d9850528
|
||||
a2c6cce0239baa4c04ca5bbabac4df000000ffff0300504b01022d0014000600080000002100828abc13fa0000001c0200001300000000000000000000000000
|
||||
000000005b436f6e74656e745f54797065735d2e786d6c504b01022d0014000600080000002100a5d6a7e7c0000000360100000b000000000000000000000000
|
||||
002b0100005f72656c732f2e72656c73504b01022d00140006000800000021006b799616830000008a0000001c00000000000000000000000000140200007468
|
||||
656d652f7468656d652f7468656d654d616e616765722e786d6c504b01022d001400060008000000210096b5ade296060000501b000016000000000000000000
|
||||
00000000d10200007468656d652f7468656d652f7468656d65312e786d6c504b01022d00140006000800000021000dd1909fb60000001b010000270000000000
|
||||
00000000000000009b0900007468656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73504b050600000000050005005d010000960a00000000}
|
||||
{\*\colorschememapping 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d22796573223f3e0d0a3c613a636c724d
|
||||
617020786d6c6e733a613d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f64726177696e676d6c2f323030362f6d6169
|
||||
6e22206267313d226c743122207478313d22646b3122206267323d226c743222207478323d22646b322220616363656e74313d22616363656e74312220616363
|
||||
656e74323d22616363656e74322220616363656e74333d22616363656e74332220616363656e74343d22616363656e74342220616363656e74353d22616363656e74352220616363656e74363d22616363656e74362220686c696e6b3d22686c696e6b2220666f6c486c696e6b3d22666f6c486c696e6b222f3e}
|
||||
{\*\latentstyles\lsdstimax267\lsdlockeddef0\lsdsemihiddendef1\lsdunhideuseddef1\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 \lsdlocked0 Normal;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 1;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 2;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 3;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 4;
|
||||
\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 5;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 6;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 7;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 8;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 9;
|
||||
\lsdpriority39 \lsdlocked0 toc 1;\lsdpriority39 \lsdlocked0 toc 2;\lsdpriority39 \lsdlocked0 toc 3;\lsdpriority39 \lsdlocked0 toc 4;\lsdpriority39 \lsdlocked0 toc 5;\lsdpriority39 \lsdlocked0 toc 6;\lsdpriority39 \lsdlocked0 toc 7;
|
||||
\lsdpriority39 \lsdlocked0 toc 8;\lsdpriority39 \lsdlocked0 toc 9;\lsdqformat1 \lsdpriority35 \lsdlocked0 caption;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority10 \lsdlocked0 Title;\lsdpriority1 \lsdlocked0 Default Paragraph Font;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority11 \lsdlocked0 Subtitle;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority22 \lsdlocked0 Strong;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority20 \lsdlocked0 Emphasis;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority59 \lsdlocked0 Table Grid;\lsdunhideused0 \lsdlocked0 Placeholder Text;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority1 \lsdlocked0 No Spacing;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 1;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 1;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 1;\lsdunhideused0 \lsdlocked0 Revision;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority34 \lsdlocked0 List Paragraph;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority29 \lsdlocked0 Quote;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority30 \lsdlocked0 Intense Quote;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 1;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 1;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 2;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 3;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 3;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 3;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 3;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 3;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 4;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 4;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 4;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 4;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 5;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 5;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 5;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 5;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 5;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 6;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 6;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 6;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 6;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 6;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority19 \lsdlocked0 Subtle Emphasis;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority21 \lsdlocked0 Intense Emphasis;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority31 \lsdlocked0 Subtle Reference;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority32 \lsdlocked0 Intense Reference;
|
||||
\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority33 \lsdlocked0 Book Title;\lsdpriority37 \lsdlocked0 Bibliography;\lsdqformat1 \lsdpriority39 \lsdlocked0 TOC Heading;}}{\*\datastore 010500000200000018000000
|
||||
4d73786d6c322e534158584d4c5265616465722e352e3000000000000000000000060000
|
||||
d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff090006000000000000000000000001000000010000000000000000100000feffffff00000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
fffffffffffffffffdfffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffffffffffffec69d9888b8b3d4c859eaf6cd158be0f0000000000000000000000006057
|
||||
38b4d573ca01feffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000
|
||||
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000000000000
|
||||
0000000000000000000000000000000000000000000000000105000000000000}}
|
||||
109
packaging/win32/nx/Makefile.am
Normal file
109
packaging/win32/nx/Makefile.am
Normal file
@@ -0,0 +1,109 @@
|
||||
NXESD = nxesd
|
||||
NXCOMP = nxcomp
|
||||
NXPROXY = nxproxy
|
||||
AUDIOFILE = audiofile
|
||||
AUDIOFILE_VERSION = 0.2.6
|
||||
LIBJPEG = libjpeg
|
||||
LIBJPEG_VERSION = turbo-1.1.1
|
||||
TMPDIST = $(abs_builddir)/dist
|
||||
|
||||
CFG_GENERIC = \
|
||||
--prefix=/ --libdir=/lib --bindir=/bin --mandir=/share/man \
|
||||
--includedir=/include --datadir=/share --exec-prefix=/libexec \
|
||||
--libexecdir=/libexec --sysconfdir=/etc
|
||||
CFG_audiofile = $(CFG_GENERIC) --disable-shared --enable-static
|
||||
CFG_nxesd = $(CFG_GENERIC) --disable-audiofiletest --with-audiofile=yes --program-transform-name='s/i686-pc-mingw32-//'
|
||||
CFG_nxcomp = $(CFG_GENERIC) \
|
||||
--x-includes=$(abs_top_builddir)/packaging/win32/xming/xc/exports/include \
|
||||
--x-libraries=$(abs_top_builddir)/packaging/win32/xming/dist/usr/X11R6/lib
|
||||
CFG_nxproxy = $(CFG_GENERIC) --program-transform-name='s/i686-pc-mingw32-//'
|
||||
CFG_nxssh = $(CFG_GENERIC)
|
||||
CFG_libjpeg = $(CFG_GENERIC) --disable-static --enable-shared
|
||||
CFG_libpng = $(CFG_GENERIC) --disable-static --enable-shared --with-libpng-compat
|
||||
CFG_jpeg = --prefix=$(TMPDIST) --libdir=$(TMPDIST)/lib --bindir=$(TMPDIST)/bin \
|
||||
--mandir=$(TMPDIST)/share/man --includedir=$(TMPDIST)/include \
|
||||
--datadir=$(TMPDIST)/share --exec-prefix=$(TMPDIST) \
|
||||
--libexecdir=$(TMPDIST)/libexec --sysconfdir=$(TMPDIST)/etc --enable-shared --disable-static
|
||||
|
||||
ENV_GENERIC = CPPFLAGS="-I$(TMPDIST)/include" LDFLAGS="-L$(TMPDIST)/lib"
|
||||
ENV_audiofile =
|
||||
ENV_libpng =
|
||||
ENV_jpeg =
|
||||
ENV_nxproxy = env $(ENV_GENERIC)
|
||||
ENV_nxcomp = env $(ENV_GENERIC)
|
||||
ENV_nxesd = env $(ENV_GENERIC) LIBS=-laudiofile
|
||||
|
||||
EXTRA_DIST = urls.txt patches $(AUDIOFILE).md5sum $(NXESD).md5sum \
|
||||
$(NXCOMP).md5sum $(LIBJPEG).md5sum
|
||||
|
||||
CLEANFILES = -r $(TMPDIST) \
|
||||
$(AUDIOFILE)-$(AUDIOFILE_VERSION) $(AUDIOFILE)-build-$(NX_BTYPE) \
|
||||
$(AUDIOFILE)-srcdir $(AUDIOFILE)-checkarchive \
|
||||
$(NXESD) $(NXESD)-build-$(NX_BTYPE) $(NXESD)-srcdir $(NXESD)-checkarchive \
|
||||
$(NXCOMP) $(NXCOMP)-build-$(NX_BTYPE) $(NXCOMP)-srcdir $(NXCOMP)-checkarchive \
|
||||
$(NXPROXY) $(NXPROXY)-build-$(NX_BTYPE) $(NXPROXY)-srcdir $(NXPROXY)-checkarchive \
|
||||
$(LIBJPEG)-$(LIBJPEG_VERSION) $(LIBJPEG)-build-$(NX_BTYPE) $(LIBJPEG)-srcdir $(LIBJPEG)-checkarchive
|
||||
|
||||
DISTCLEANFILES = -r $(CLEANFILES) \
|
||||
$(LIBJPEG)-$(LIBJPEG_VERSION).tar.gz \
|
||||
$(AUDIOFILE)-$(AUDIOFILE_VERSION).tar.gz \
|
||||
$(NXESD)*.tar.gz \
|
||||
$(NXCOMP)*.tar.gz \
|
||||
$(NXPROXY)*.tar.gz
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
tmpinstall:
|
||||
mkdir -p $(TMPDIST)/man/man1
|
||||
$(MAKE) subtarget=$(LIBJPEG) subsrc=$(LIBJPEG)-$(LIBJPEG_VERSION) build-$(NX_BTYPE)
|
||||
$(MAKE) subtarget=$(AUDIOFILE) subsrc=$(AUDIOFILE)-$(AUDIOFILE_VERSION) build-$(NX_BTYPE)
|
||||
$(MAKE) subtarget=$(NXESD) subsrc=$(NXESD) build-$(NX_BTYPE)
|
||||
$(MAKE) subtarget=$(NXCOMP) subsrc=$(NXCOMP) build-$(NX_BTYPE)
|
||||
$(MAKE) subtarget=$(NXPROXY) subsrc=$(NXPROXY) build-$(NX_BTYPE)
|
||||
rm -f \
|
||||
$(TMPDIST)/bin/esd{cat,ctl,filt,loop,mon,play,rec,sample}.exe \
|
||||
$(TMPDIST)/bin/[cd]jpeg.exe $(TMPDIST)/bin/jpegtran.exe \
|
||||
$(TMPDIST)/bin/jpgtest.exe $(TMPDIST)/bin/libturbojpeg.dll \
|
||||
$(TMPDIST)/bin/rdjpgcom.exe $(TMPDIST)/bin/sfconvert.exe \
|
||||
$(TMPDIST)/bin/sfinfo.exe $(TMPDIST)/bin/wrjpgcom.exe
|
||||
|
||||
build-cross: $(subtarget)-build-cross
|
||||
|
||||
build-native: $(subtarget)-build-native
|
||||
|
||||
$(subtarget)-build-cross: $(subtarget)-srcdir
|
||||
@echo Building $(subtarget)
|
||||
@cd $(subsrc) && $(ENV_$(subtarget)) mingw32-configure $(CFG_$(subtarget))
|
||||
@$(MAKE) -C $(subsrc) DESTDIR=$(TMPDIST) install
|
||||
@touch $@
|
||||
|
||||
$(subtarget)-build-native: $(subtarget)-srcdir
|
||||
@echo Building $(subtarget)
|
||||
@cd $(subsrc) && $(ENV_$(subtarget)) ./configure $(CFG_$(subtarget))
|
||||
@$(MAKE) -C $(subsrc) DESTDIR=$(TMPDIST) install
|
||||
@touch $@
|
||||
|
||||
$(subtarget)-srcdir: $(subtarget)-checkarchive
|
||||
@$(RM) -rf $(subsrc)
|
||||
@echo Unpacking $(subsrc).tar.gz
|
||||
@tar xzf $(subsrc).tar.gz
|
||||
@shopt -s nullglob; for p in $(srcdir)/patches/$(subtarget)-*.patch ; do \
|
||||
echo Applying `basename $$p`; \
|
||||
(cd $(subsrc) && patch -p1 < ../$$p) ; \
|
||||
done
|
||||
@touch $@
|
||||
|
||||
$(subtarget)-checkarchive: $(subsrc).tar.gz
|
||||
@echo Checking tarball $(subsrc).tar.gz
|
||||
@md5sum --status -c $(srcdir)/$(subtarget).md5sum
|
||||
@touch $@
|
||||
|
||||
$(subsrc).tar.gz: $(srcdir)/urls.txt
|
||||
@echo Downloading $@
|
||||
@rm -f $@
|
||||
@if grep -q $(subtarget) $(srcdir)/urls.txt ; then \
|
||||
$(WGET) -O $@ $(shell grep $(subtarget) $(srcdir)/urls.txt | grep -v '#') ; \
|
||||
else \
|
||||
$(top_srcdir)/getnxsrcpkg $(subsrc) && $(LN_S) $(subsrc)-*.tar.gz $(subsrc).tar.gz ; \
|
||||
fi
|
||||
@touch $@
|
||||
1
packaging/win32/nx/audiofile.md5sum
Normal file
1
packaging/win32/nx/audiofile.md5sum
Normal file
@@ -0,0 +1 @@
|
||||
9c1049876cd51c0f1b12c2886cce4d42 audiofile-0.2.6.tar.gz
|
||||
1
packaging/win32/nx/libjpeg.md5sum
Normal file
1
packaging/win32/nx/libjpeg.md5sum
Normal file
@@ -0,0 +1 @@
|
||||
03b9c1406c7bfdc204313c2917ce6962 libjpeg-turbo-1.1.1.tar.gz
|
||||
1
packaging/win32/nx/nxcomp.md5sum
Normal file
1
packaging/win32/nx/nxcomp.md5sum
Normal file
@@ -0,0 +1 @@
|
||||
ad8c0f133122c6d07732ca69c8759410 nxcomp.tar.gz
|
||||
1
packaging/win32/nx/nxesd.md5sum
Normal file
1
packaging/win32/nx/nxesd.md5sum
Normal file
@@ -0,0 +1 @@
|
||||
2bbb27be1bf495032cdd3dbd683fa335 nxesd.tar.gz
|
||||
15
packaging/win32/nx/patches/libpng-exports.patch
Normal file
15
packaging/win32/nx/patches/libpng-exports.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff -urwN libpng-1.2.40-orig/configure libpng-1.2.40/configure
|
||||
--- libpng-1.2.40-orig/configure 2009-09-10 13:39:04.000000000 +0200
|
||||
+++ libpng-1.2.40/configure 2010-10-25 01:29:18.782195099 +0200
|
||||
@@ -11447,10 +11447,7 @@
|
||||
if test "$have_ld_version_script" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
|
||||
$as_echo_n "checking for symbol prefix... " >&6; }
|
||||
- SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
|
||||
- | ${CPP-${CC-gcc} -E} - 2>&1 \
|
||||
- | ${EGREP-grep} "^PREFIX=" \
|
||||
- | ${SED-sed} "s:^PREFIX=::"`
|
||||
+ SYMBOL_PREFIX=""
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
|
||||
$as_echo "$SYMBOL_PREFIX" >&6; }
|
||||
55004
packaging/win32/nx/patches/nxcomp-win32.patch
Normal file
55004
packaging/win32/nx/patches/nxcomp-win32.patch
Normal file
File diff suppressed because it is too large
Load Diff
92998
packaging/win32/nx/patches/nxesd-win32.patch
Normal file
92998
packaging/win32/nx/patches/nxesd-win32.patch
Normal file
File diff suppressed because it is too large
Load Diff
47591
packaging/win32/nx/patches/nxproxy-win32.patch
Normal file
47591
packaging/win32/nx/patches/nxproxy-win32.patch
Normal file
File diff suppressed because it is too large
Load Diff
3
packaging/win32/nx/urls.txt
Normal file
3
packaging/win32/nx/urls.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
http://www.68k.org/~michael/audiofile/audiofile-0.2.6.tar.gz
|
||||
http://prdownloads.sourceforge.net/libpng/libpng-1.2.40.tar.gz?download
|
||||
http://sourceforge.net/projects/libjpeg-turbo/files/1.1.1/libjpeg-turbo-1.1.1.tar.gz/download
|
||||
223
packaging/win32/opennx.iss
Normal file
223
packaging/win32/opennx.iss
Normal file
@@ -0,0 +1,223 @@
|
||||
;
|
||||
; $Id: opennx.iss 674 2012-02-05 05:55:40Z felfert $
|
||||
;
|
||||
#undef DEBUG
|
||||
|
||||
#define APPNAME "OpenNXCE"
|
||||
; Automatically get version from executable resp. dll
|
||||
#define APPEXE "setupdir\bin\opennx.exe"
|
||||
#include "version.iss"
|
||||
|
||||
#define MSWU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
|
||||
#define APPIDSTR "{56D797D7-543C-408F-BBEB-B56787873D2F}"
|
||||
#define APPIDVAL "{" + APPIDSTR
|
||||
|
||||
[Setup]
|
||||
AppName={#=APPNAME}
|
||||
AppVersion={#=APPFULLVER}
|
||||
AppVerName={#=APPFULLVERNAME}
|
||||
AppPublisher=OpenNX Community Edition
|
||||
AppPublisherURL=Community from http://unixforum.org
|
||||
AppCopyright=(C) 2011 The OpenNX Team, CE 2020
|
||||
;VersionInfoVersion={#=APPFULLVER}
|
||||
DefaultDirName={pf}\{#=APPNAME}
|
||||
DefaultGroupName={#=APPNAME}
|
||||
#ifdef DEBUG
|
||||
PrivilegesRequired=none
|
||||
#endif
|
||||
DisableStartupPrompt=true
|
||||
ChangesAssociations=yes
|
||||
OutputDir=.
|
||||
OutputBaseFileName={#=SETUPFVNAME}
|
||||
ShowLanguageDialog=no
|
||||
MinVersion=0,5.0.2195sp3
|
||||
AppID={#=APPIDVAL}
|
||||
UninstallFilesDir={app}\uninstall
|
||||
Compression=lzma/ultra64
|
||||
SolidCompression=yes
|
||||
SetupLogging=yes
|
||||
WizardImageFile=compiler:wizmodernimage-IS.bmp
|
||||
WizardSmallImageFile=compiler:wizmodernsmallimage-IS.bmp
|
||||
; The following breaks in older wine versions, so we
|
||||
; check the wine version in the invoking script and
|
||||
; define BADWINE, if we are crossbuilding and have a
|
||||
; broken wine version.
|
||||
#ifndef BADWINE
|
||||
SetupIconFile=setupdir\bin\nx.ico
|
||||
#endif
|
||||
UninstallDisplayIcon={app}\bin\opennx.exe
|
||||
LicenseFile=lgpl.rtf
|
||||
|
||||
[Languages]
|
||||
Name: "en"; MessagesFile: "compiler:Default.isl"
|
||||
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
||||
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||
Name: "fr"; MessagesFile: "compiler:Languages\French.isl"
|
||||
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||
|
||||
[CustomMessages]
|
||||
dticon=Create a &desktop icon
|
||||
dticon_group=Additional icons:
|
||||
cwizard=OpenNX Connection Wizard
|
||||
sadmin=OpenNX Session Administrator
|
||||
uninst_opennx=Uninstall OpenNX
|
||||
fwadd=Adding firewall rules
|
||||
doc_pconnect=Pconnect Manual
|
||||
|
||||
de.dticon=Desktop-Verkn<6B>pfung &anlegen
|
||||
de.dticon_group=Zus<75>tzliche Verkn<6B>pfungen:
|
||||
de.cwizard=OpenNX Verbindungs-Assistent
|
||||
de.sadmin=OpenNX Sitzungsverwaltung
|
||||
de.uninst_opennx=Deinstalliere OpenNX
|
||||
de.fwadd=Erstelle Firewall-Regeln
|
||||
de.doc_pconnect=Pconnect Handbuch
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:dticon}"; GroupDescription: "{cm:dticon_group}";
|
||||
|
||||
[Files]
|
||||
Source: setupdir\*; DestDir: {app}; Flags: recursesubdirs restartreplace replacesameversion uninsrestartdelete
|
||||
#if BUILDXMING == "no"
|
||||
Source: setupdir\bin\opennx.exe; DestDir: {app}; DestName: nxclient.exe; Flags: restartreplace replacesameversion uninsrestartdelete
|
||||
#endif
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\OpenNX"; Filename: "{app}\bin\opennx.exe";
|
||||
Name: "{group}\{cm:cwizard}"; Filename: "{app}\bin\opennx.exe"; Parameters: "--wizard"; IconFilename: "{app}\bin\opennx.exe"; IconIndex: 2;
|
||||
Name: "{group}\{cm:sadmin}"; Filename: "{app}\bin\opennx.exe"; Parameters: "--admin"; IconFilename: "{app}\bin\opennx.exe"; IconIndex: 3
|
||||
Name: "{group}\{cm:doc_pconnect}"; Filename: "{app}\share\pconnect.html";
|
||||
Name: "{group}\{cm:uninst_opennx}"; Filename: "{uninstallexe}";
|
||||
Name: "{commondesktop}\OpenNX"; Filename: "{app}\bin\opennx.exe"; Tasks: "desktopicon";
|
||||
|
||||
[Registry]
|
||||
; Delete original NXClient file global associations
|
||||
Root: HKLM; Subkey: "Software\Classes\.nxs"; ValueType: none; Flags: deletekey
|
||||
Root: HKLM; Subkey: "Software\Classes\NXClient.session"; ValueType: none; Flags: deletekey;
|
||||
;
|
||||
Root: HKLM; Subkey: "Software\Classes\.nxs"; ValueType: String; ValueData: "OpenNX.session"; Flags: deletekey uninsdeletekey;
|
||||
Root: HKLM; Subkey: "Software\Classes\.nxs"; ValueName: "Content Type"; ValueType: String; ValueData: "application/nx-session";
|
||||
Root: HKLM; Subkey: "Software\Classes\OpenNX.session"; ValueType: String; ValueData: "OpenNX session file"; Flags: deletekey uninsdeletekey;
|
||||
Root: HKLM; Subkey: "Software\Classes\OpenNX.session\DefaultIcon"; ValueType: String; ValueData: "{app}\bin\opennx.exe,1";
|
||||
Root: HKLM; Subkey: "Software\Classes\OpenNX.session\shell\open\command"; ValueType: String; ValueData: """{app}\bin\opennx.exe"" --session ""%1""";
|
||||
; Delete original NXClient class regs in HKCU
|
||||
Root: HKCU; Subkey: "Software\Classes\.nxs"; ValueName: ""; ValueType: none; Flags: deletekey deletevalue
|
||||
Root: HKCU; Subkey: "Software\Classes\.nxs"; ValueName: "Content Type"; ValueType: none; Flags: deletekey deletevalue
|
||||
Root: HKCU; Subkey: "Software\Classes\NXClient.session"; ValueName: ""; ValueType: none; Flags: deletekey deletevalue
|
||||
Root: HKCU; Subkey: "Software\Classes\OpenNX.session\DefaultIcon"; ValueType: none; Flags: deletekey deletevalue
|
||||
Root: HKCU; Subkey: "Software\Classes\OpenNX.session\shell\open\command"; ValueType: none; Flags: deletekey deletevalue
|
||||
|
||||
[Run]
|
||||
; Allow nxssh, nxesd, pulseaudio, Xming and NXWin in Windows firewall
|
||||
#if FileExists("setupdir\bin\nxssh.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\nxssh.exe"" ""OpenNX nxssh"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\nxesd.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\nxesd.exe"" ""OpenNX nxesd"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\tracelog.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\tracelog.exe"" ""OpenNX tracelog"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\pulseaudio.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\pulseaudio.exe"" ""OpenNX pulseaudio"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\Xming.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\Xming.exe"" ""OpenNX Xming"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\NXWin.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall add allowedprogram ""{app}\bin\NXWin.exe"" ""OpenNX NXWin"" ENABLE"; StatusMsg: {cm:fwadd}; Flags: runhidden skipifdoesntexist
|
||||
#endif
|
||||
|
||||
[UninstallRun]
|
||||
; Remove firewall exceptions
|
||||
#if FileExists("setupdir\bin\nxssh.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\nxssh.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelnxssh
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\nxesd.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\nxesd.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelnxesd
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\tracelog.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\tracelog.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelnxesd
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\pulseaudio.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\pulseaudio.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelnxesd
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\Xming.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\Xming.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelxming
|
||||
#endif
|
||||
#if FileExists("setupdir\bin\NXWin.exe")
|
||||
Filename: "{sys}\netsh.exe"; Parameters: "firewall delete allowedprogram ""{app}\bin\NXWin.exe"" ALL"; Flags: runhidden skipifdoesntexist; RunOnceId: fwdelnxwin
|
||||
#endif
|
||||
|
||||
#if BUILDXMING == "yes"
|
||||
[UninstallDelete]
|
||||
Type: files; Name: "{app}\share\Xming\font-dirs"
|
||||
|
||||
[Code]
|
||||
|
||||
procedure CurStepChanged(step: TSetupStep);
|
||||
var
|
||||
fontDir, mkfsexe, s: String;
|
||||
i, r: Integer;
|
||||
FindRec: TFindRec;
|
||||
fontDirs: TStringList;
|
||||
|
||||
begin
|
||||
if step = ssPostInstall then begin
|
||||
(* Create {app}\share\Xming\font-dirs *)
|
||||
fontDir := ExpandConstant('{app}\share\Xming\fonts');
|
||||
fontDirs := TStringList.Create;
|
||||
(* First, create a list of all subdirs in fonts *)
|
||||
if DirExists(fontDir) then begin
|
||||
if FindFirst(fontDir + '\*', FindRec) then begin
|
||||
try
|
||||
repeat
|
||||
if FindRec.Attributes and FILE_ATTRIBUTE_DIRECTORY <> 0 then
|
||||
fontDirs.Append(fontDir + '\' + FindRec.Name);
|
||||
until not FindNext(FindRec);
|
||||
finally
|
||||
FindClose(FindRec);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
(* Add the windows font dir to the list *)
|
||||
fontDirs.Append(ExpandConstant('{fonts}'));
|
||||
(* Create the file, containing the comma-separated directory list. *)
|
||||
s := ExpandConstant('{app}\share\Xming\font-dirs');
|
||||
Log('Creating ' + s);
|
||||
SaveStringToFile(s, fontDirs.CommaText, false);
|
||||
(* Finally, run mkfontscale for all font directories *)
|
||||
mkfsexe := ExpandConstant('{app}\bin\mkfontscale.exe');
|
||||
for i := 0 to fontDirs.Count - 1 do begin
|
||||
s := AddQuotes(fontDirs[i]);
|
||||
Log('Creating fonts.scale and fonts.dir in ' + s);
|
||||
Exec(mkfsexe, s, '', SW_HIDE, ewWaitUntilTerminated, r);
|
||||
Exec(mkfsexe, '-b -s -l ' + s, '', SW_HIDE, ewWaitUntilTerminated, r);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure CurUninstallStepChanged(ustep: TUninstallStep);
|
||||
var
|
||||
s, txt, wfonts: String;
|
||||
i: Integer;
|
||||
fontDirs: TStringList;
|
||||
|
||||
begin
|
||||
if ustep = usUninstall then begin
|
||||
s := ExpandConstant('{app}\share\Xming\font-dirs');
|
||||
wfonts := ExpandConstant('{fonts}');
|
||||
if LoadStringFromFile(s, txt) then begin
|
||||
fontDirs := TStringList.Create;
|
||||
fontDirs.CommaText := txt;
|
||||
for i := 0 to fontDirs.Count - 1 do begin
|
||||
s := fontDirs[i];
|
||||
if s <> wfonts then begin
|
||||
s := AddBackSlash(s);
|
||||
DeleteFile(s + 'fonts.scale');
|
||||
DeleteFile(s + 'fonts.dir');
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
#endif
|
||||
22
packaging/win32/pulse/Makefile.am
Normal file
22
packaging/win32/pulse/Makefile.am
Normal file
@@ -0,0 +1,22 @@
|
||||
PULSEAUDIO = pa-win32
|
||||
PULSEAUDIO_VERSION = 6.0-11.1
|
||||
OURPA = $(PULSEAUDIO)-$(PULSEAUDIO_VERSION)
|
||||
|
||||
TMPDIST = $(abs_builddir)/dist
|
||||
|
||||
EXTRA_DIST = urls.txt
|
||||
CLEANFILES = -r $(TMPDIST) $(OURPA)
|
||||
DISTCLEANFILES=$(OURPA).tar.gz
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
|
||||
tmpdist: tmpinstall
|
||||
cp -av $(OURPA) $(TMPDIST)
|
||||
|
||||
tmpinstall: $(OURPA)
|
||||
|
||||
$(OURPA): $(OURPA).tar.gz
|
||||
$(vunpack__$(AM_DEFAULT_VERBOSITY)$(V))tar xzf $(OURPA).tar.gz
|
||||
|
||||
$(OURPA).tar.gz:
|
||||
$(WGET) -O $@ -q 'http://unixforum.org/up/nxman/opennx/$(OURPA).tar.gz'
|
||||
44
packaging/win32/version.iss
Normal file
44
packaging/win32/version.iss
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef _VERSION_ISS_
|
||||
#define _VERSION_ISS_
|
||||
|
||||
#ifndef __POPT_P__
|
||||
# define private CStrings
|
||||
# pragma parseroption -p+
|
||||
#endif
|
||||
|
||||
#define ExeVersion(Str FileName) \
|
||||
Local[0] = 0, Local[1] = 0, Local[2] = 0, Local[3] = 0, \
|
||||
ParseVersion(FileName, Local[0], Local[1], Local[2], Local[3]), \
|
||||
DecodeVer(EncodeVer(Local[0], Local[1], Local[2], Local[3]), 2 + (((Local[2] + Local[3]) > 0) ? 1 : 0) + ((Local[3] > 0) ? 1 : 0))
|
||||
|
||||
#define ExeFullVersion(Str FileName) \
|
||||
Local[0] = GetFileVersion(FileName), Local[0]
|
||||
|
||||
#define APPVERSION "1.0.5-r15.6"
|
||||
#ifdef APPNAME
|
||||
# ifdef APPVERSION
|
||||
# define APPVERNAME APPNAME + ' ' + APPVERSION
|
||||
# define APPFULLVER APPVERSION
|
||||
# define APPFULLVERNAME APPNAME + ' ' + APPFULLVER
|
||||
# else
|
||||
# ifdef APPEXE
|
||||
# define APPVERSION ExeVersion(APPEXE)
|
||||
# define APPFULLVER ExeFullVersion(APPEXE)
|
||||
# define APPVERNAME APPNAME + ' ' + APPVERSION
|
||||
# define APPFULLVERNAME APPNAME + ' ' + APPFULLVER
|
||||
# endif
|
||||
# endif
|
||||
# ifdef APPVERSION
|
||||
# define SETUPVNAME APPNAME + '-' + APPVERSION
|
||||
# endif
|
||||
# ifdef APPFULLVER
|
||||
# define SETUPFVNAME APPNAME + '-' + APPFULLVER
|
||||
# endif
|
||||
# define SETUPNAME APPNAME
|
||||
#endif
|
||||
|
||||
#ifdef CStrings
|
||||
# pragma parseroption -p-
|
||||
#endif
|
||||
|
||||
#endif
|
||||
89
packaging/win32/xming/Makefile.am
Normal file
89
packaging/win32/xming/Makefile.am
Normal file
@@ -0,0 +1,89 @@
|
||||
TARBALL = Xming_69031_source.tar.bz2
|
||||
DLURL = http://sourceforge.net/projects/xming/files/Xming-source/6.9.0.31/$(TARBALL)/download
|
||||
TMPDIST = $(abs_builddir)/dist
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
CLEANFILES = -rf tmpinstall build-$(XMING_BTYPE) patchedsrc srcdir checktarball ccdir \
|
||||
xc ccbin include
|
||||
DISTCLEANFILES = -rf dist $(TARBALL)
|
||||
EXTRA_DIST = version.def Xming_69031_source.tar.bz2.md5sum patches
|
||||
XMING_GENERIC_PATCHES = xming-build.patch xming-build-subsys.patch \
|
||||
xming-build-xauth.patch xming-build-xset.patch xming-build-nls.patch \
|
||||
xming-envbasedir.patch xming-optionhide.patch xming-mutex.patch \
|
||||
xming-terminate.patch xming-build-fontutils.patch xming-logdebug.patch \
|
||||
xming-clipfilter.patch xming-kbhook.patch xming-kioskhack.patch
|
||||
|
||||
buildfromscratch: distclean tmpinstall
|
||||
|
||||
install-cross: build-cross
|
||||
@$(MAKE) -C xc install DESTDIR=$(TMPDIST) \
|
||||
CROSSCOMPILEDIR=$(abs_builddir)/ccbin
|
||||
install-native: build-native
|
||||
@$(MAKE) -C xc install DESTDIR=$(TMPDIST)
|
||||
|
||||
xming-distdir:
|
||||
@echo installing Xming to $(TMPDIST)
|
||||
@rm -rf $(TMPDIST)
|
||||
@mkdir $(TMPDIST)
|
||||
|
||||
tmpinstall: xming-distdir install-$(XMING_BTYPE)
|
||||
@echo applying post install fixes
|
||||
@for f in $(TMPDIST)/usr/X11R6/bin/* ; do \
|
||||
FT="`file $$f`" ; \
|
||||
case "$$FT" in \
|
||||
*symbolic?link*) rm -f $$f ;; \
|
||||
*script*) rm -f $$f ;; \
|
||||
esac ; \
|
||||
done
|
||||
@touch $@
|
||||
|
||||
build-cross: ccdir patchedsrc
|
||||
@echo building Xming
|
||||
@$(MAKE) -C xc World CROSSCOMPILEDIR=$(abs_builddir)/ccbin
|
||||
@touch $@
|
||||
|
||||
build-native: patchedsrc
|
||||
@echo building Xming
|
||||
@$(MAKE) -C xc World CC=$(CC) PREPROCESS_CMD="$(CC) -E" \
|
||||
BOOTSTRAPCFLAGS="-DCROSSCOMPILE_CPP"
|
||||
@touch $@
|
||||
|
||||
patchedsrc: srcdir version.def
|
||||
@echo applying build fixes
|
||||
@for p in $(XMING_GENERIC_PATCHES) $(XMING_PLATFORM_PATCHES) ; do \
|
||||
if test -f $(srcdir)/patches/$$p ; then \
|
||||
echo applying $$p ; \
|
||||
patch -p0 < $(srcdir)/patches/$$p ; \
|
||||
fi \
|
||||
done
|
||||
@cp $(top_srcdir)/extres/nx.ico xc/programs/Xserver/hw/xwin/X.ico
|
||||
@cp $(top_srcdir)/extres/nx.ico xc/programs/xkbcomp/X.ico
|
||||
@touch $@
|
||||
|
||||
srcdir: checktarball
|
||||
@rm -rf xc
|
||||
@echo unpacking tarball
|
||||
@tar xjf $(TARBALL)
|
||||
@touch $@
|
||||
|
||||
checktarball: $(TARBALL)
|
||||
@echo checking tarball $(TARBALL)
|
||||
@md5sum --status -c $(srcdir)/$(TARBALL).md5sum 2>/dev/null
|
||||
@touch $@
|
||||
|
||||
$(TARBALL):
|
||||
@echo downloading tarball $(TARBALL)
|
||||
@$(WGET) -O $@ "$(DLURL)"
|
||||
|
||||
ccdir:
|
||||
@echo creating CROSSCOMPILEDIR
|
||||
@rm -rf ccbin include
|
||||
@mkdir ccbin
|
||||
@for f in /usr/bin/$(target_alias)-* ; do \
|
||||
bn=`basename $$f|sed -e 's/$(target_alias)-//'` ; \
|
||||
$(LN_S) $$f ccbin/$$bn ; \
|
||||
done
|
||||
$(LN_S) gcc ccbin/cc
|
||||
$(LN_S) $(includedir) include
|
||||
@touch $@
|
||||
|
||||
1
packaging/win32/xming/Xming_69031_source.tar.bz2.md5sum
Normal file
1
packaging/win32/xming/Xming_69031_source.tar.bz2.md5sum
Normal file
@@ -0,0 +1 @@
|
||||
f8d063d040b1b598c6f1f6c0e5d46d6c Xming_69031_source.tar.bz2
|
||||
31
packaging/win32/xming/patches/xming-build-cross.patch
Normal file
31
packaging/win32/xming/patches/xming-build-cross.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff -urw xc-orig/config/cf/mingw.cf xc/config/cf/mingw.cf
|
||||
--- xc-orig/config/cf/mingw.cf 2009-03-18 18:13:23.000000000 +0100
|
||||
+++ xc/config/cf/mingw.cf 2009-08-10 16:54:59.594459842 +0200
|
||||
@@ -145,7 +145,8 @@
|
||||
#define HasShm NO
|
||||
|
||||
/* snprintf from windows runtime does return -1 if the buffer is to small */
|
||||
-#define HasSnprintf NO
|
||||
+/* FE: However, latest MinGW provides the correct ones ... */
|
||||
+#define HasSnprintf YES
|
||||
|
||||
#define HasFfs NO
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
#define HasSockets NO
|
||||
#define GzipFontCompression YES
|
||||
-#define HasZlib NO
|
||||
+#define HasZlib YES
|
||||
#define HasFreetype2 NO
|
||||
|
||||
/* We don't need -lm */
|
||||
@@ -256,7 +256,7 @@
|
||||
#endif
|
||||
#ifndef ExtraIncDir
|
||||
# ifdef CrossCompileDir
|
||||
-# define ExtraIncDir CrossCompileDir/../../include
|
||||
+# define ExtraIncDir CrossCompileDir/../include
|
||||
# else
|
||||
# define ExtraIncDir /usr/include/w32api
|
||||
# endif
|
||||
25
packaging/win32/xming/patches/xming-build-fontutils.patch
Normal file
25
packaging/win32/xming/patches/xming-build-fontutils.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
diff -urw xc-orig/config/cf/mingw.cf xc/config/cf/mingw.cf
|
||||
--- xc-orig/config/cf/mingw.cf 2010-03-01 04:25:56.919914196 +0100
|
||||
+++ xc/config/cf/mingw.cf 2010-03-01 04:41:59.976930858 +0100
|
||||
@@ -329,6 +329,9 @@
|
||||
#ifndef BuildXkbcomp
|
||||
# define BuildXkbcomp YES
|
||||
#endif
|
||||
+#ifndef BuildFontEncLib
|
||||
+# define BuildFontEncLib YES
|
||||
+#endif
|
||||
|
||||
/* XWin Server specific build flags */
|
||||
#ifndef GlxUseWindows
|
||||
diff -urw xc-orig/programs/Imakefile xc/programs/Imakefile
|
||||
--- xc-orig/programs/Imakefile 2010-03-01 04:25:56.882162887 +0100
|
||||
+++ xc/programs/Imakefile 2010-03-01 04:38:13.110914496 +0100
|
||||
@@ -129,7 +129,7 @@
|
||||
#endif
|
||||
|
||||
#if BuildServersOnly || !BuildClients
|
||||
-SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR) xauth xset
|
||||
+SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR) $(MKFONTSCALEDIR) xauth xset
|
||||
#else
|
||||
SUBDIRS = \
|
||||
appres bdftopcf bitmap \
|
||||
155
packaging/win32/xming/patches/xming-build-native.patch
Normal file
155
packaging/win32/xming/patches/xming-build-native.patch
Normal file
@@ -0,0 +1,155 @@
|
||||
diff -urw xc-orig/config/imake/imake.c xc/config/imake/imake.c
|
||||
--- xc-orig/config/imake/imake.c 2009-03-18 18:13:23 +0100
|
||||
+++ xc/config/imake/imake.c 2009-08-03 23:03:20 +0200
|
||||
@@ -280,7 +280,7 @@
|
||||
#include <sys/utsname.h>
|
||||
#endif
|
||||
|
||||
-#if !(defined(Lynx) || defined(__Lynx__) || (defined(SVR4) && !defined(sun))) && !defined (__CYGWIN__)
|
||||
+#if !(defined(Lynx) || defined(__Lynx__) || (defined(SVR4) && !defined(sun))) && !(defined (__CYGWIN__) || defined(__MINGW32__))
|
||||
#define HAS_MKSTEMP
|
||||
#endif
|
||||
|
||||
diff -urw xc-orig/config/util/lndir.c xc/config/util/lndir.c
|
||||
--- xc-orig/config/util/lndir.c 2009-03-18 18:13:23 +0100
|
||||
+++ xc/config/util/lndir.c 2009-08-04 00:18:18 +0200
|
||||
@@ -62,6 +62,9 @@
|
||||
#ifdef USG
|
||||
#include <dirent.h>
|
||||
#else
|
||||
+# ifdef __MINGW32__
|
||||
+# include <dirent.h>
|
||||
+# else
|
||||
#include <sys/dir.h>
|
||||
#ifndef dirent
|
||||
#define dirent direct
|
||||
@@ -69,6 +72,7 @@
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
+#endif
|
||||
#ifndef MAXPATHLEN
|
||||
#define MAXPATHLEN 2048
|
||||
#endif
|
||||
@@ -141,6 +145,9 @@
|
||||
return !strcmp(lname, rname);
|
||||
}
|
||||
|
||||
+#ifdef __MINGW32__
|
||||
+extern __declspec(dllimport) int __stdcall CopyFileA(const char *, const char *, int);
|
||||
+#endif
|
||||
|
||||
/* Recursively create symbolic links from the current directory to the "from"
|
||||
directory. Assumes that files described by fs and ts are directories. */
|
||||
@@ -231,18 +238,25 @@
|
||||
if (!silent)
|
||||
printf ("%s:\n", buf);
|
||||
if ((stat (dp->d_name, &sc) < 0) && (errno == ENOENT)) {
|
||||
+#ifdef __MINGW32__
|
||||
+ if (mkdir (dp->d_name) < 0 ||
|
||||
+ stat (dp->d_name, &sc) < 0) {
|
||||
+#else
|
||||
if (mkdir (dp->d_name, 0777) < 0 ||
|
||||
stat (dp->d_name, &sc) < 0) {
|
||||
+#endif
|
||||
mperror (dp->d_name);
|
||||
curdir = rcurdir = ocurdir;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
+#ifndef __MINGW32__
|
||||
if (readlink (dp->d_name, symbuf, sizeof(symbuf) - 1) >= 0) {
|
||||
msg ("%s: is a link instead of a directory", dp->d_name);
|
||||
curdir = rcurdir = ocurdir;
|
||||
continue;
|
||||
}
|
||||
+#endif
|
||||
if (chdir (dp->d_name) < 0) {
|
||||
mperror (dp->d_name);
|
||||
curdir = rcurdir = ocurdir;
|
||||
@@ -256,6 +270,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#ifdef __MINGW32__
|
||||
+ symlen = -1;
|
||||
+#else
|
||||
/* non-directory */
|
||||
symlen = readlink (dp->d_name, symbuf, sizeof(symbuf) - 1);
|
||||
if (symlen >= 0)
|
||||
@@ -270,6 +287,7 @@
|
||||
if (basesymlen >= 0)
|
||||
basesym[basesymlen] = '\0';
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (symlen >= 0) {
|
||||
/* Link exists in new tree. Print message if it doesn't match. */
|
||||
@@ -324,7 +342,11 @@
|
||||
}
|
||||
else
|
||||
sympath = buf;
|
||||
+#ifdef __MINGW32__
|
||||
+ if (CopyFileA(sympath, dp->d_name, 1) != 0)
|
||||
+#else
|
||||
if (symlink (sympath, dp->d_name) < 0)
|
||||
+#endif
|
||||
mperror (dp->d_name);
|
||||
}
|
||||
}
|
||||
diff -urw xcorig/config/cf/mingw.cf xc/config/cf/mingw.cf
|
||||
--- xcorig/config/cf/mingw.cf 2009-03-18 18:13:23 +0100
|
||||
+++ xc/config/cf/mingw.cf 2009-08-09 13:26:26 +0200
|
||||
@@ -145,7 +145,8 @@
|
||||
#define HasShm NO
|
||||
|
||||
/* snprintf from windows runtime does return -1 if the buffer is to small */
|
||||
-#define HasSnprintf NO
|
||||
+/* FE: However, latest MinGW provides the correct ones ... */
|
||||
+#define HasSnprintf YES
|
||||
|
||||
#define HasFfs NO
|
||||
|
||||
@@ -158,7 +159,7 @@
|
||||
|
||||
#define HasSockets NO
|
||||
#define GzipFontCompression YES
|
||||
-#define HasZlib NO
|
||||
+#define HasZlib YES
|
||||
#define HasFreetype2 NO
|
||||
|
||||
/* We don't need -lm */
|
||||
@@ -258,7 +259,7 @@
|
||||
# ifdef CrossCompileDir
|
||||
# define ExtraIncDir CrossCompileDir/../../include
|
||||
# else
|
||||
-# define ExtraIncDir /usr/include/w32api
|
||||
+# define ExtraIncDir /mingw/include
|
||||
# endif
|
||||
#endif
|
||||
|
||||
diff -urw xc-orig/extras/rman/rman.c xc/extras/rman/rman.c
|
||||
--- xc-orig/extras/rman/rman.c 2009-03-18 18:13:28 +0100
|
||||
+++ xc/extras/rman/rman.c 2009-08-07 04:21:06 +0200
|
||||
@@ -268,21 +268,6 @@
|
||||
/* case insensitive versions of strcmp and strncmp */
|
||||
|
||||
static int
|
||||
-stricmp(const char *s1, const char *s2)
|
||||
-{
|
||||
- assert(s1!=NULL && s2!=NULL);
|
||||
- /*strincmp(s1, s2, strlen(s1)+1);*/
|
||||
-
|
||||
- while (tolower(*s1)==tolower(*s2)) {
|
||||
- if (*s1=='\0' /*&& *s2=='\0'*/) return 0;
|
||||
- s1++; s2++;
|
||||
- }
|
||||
-
|
||||
- if (tolower(*s1)<tolower(*s2)) return -1;
|
||||
- else return 1;
|
||||
-}
|
||||
-
|
||||
-static int
|
||||
lcexceptionscmp(const void *a, const void *b)
|
||||
{
|
||||
return stricmp(*(char **)a, *(char **)b);
|
||||
69
packaging/win32/xming/patches/xming-build-nls.patch
Normal file
69
packaging/win32/xming/patches/xming-build-nls.patch
Normal file
@@ -0,0 +1,69 @@
|
||||
diff -urw xc-orig/Imakefile xc/Imakefile
|
||||
--- xc-orig/Imakefile 2009-03-18 18:13:23.000000000 +0100
|
||||
+++ xc/Imakefile 2010-02-20 16:30:25.965264944 +0100
|
||||
@@ -18,12 +18,16 @@
|
||||
#if BuildFonts
|
||||
FONTSDIR = fonts
|
||||
#endif
|
||||
-#ifndef Win32Architecture
|
||||
+#if defined(mingwArchitecture) || !defined(Win32Architecture)
|
||||
#if BuildDocs
|
||||
DOCSDIR = doc
|
||||
#endif
|
||||
NLSSUBDIR = nls
|
||||
#endif
|
||||
+#else
|
||||
+#ifdef mingwArchitecture
|
||||
+ NLSSUBDIR = nls
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
SUBDIRS = include config lib $(NLSSUBDIR) \
|
||||
diff -urw xc-orig/nls/Compose/Imakefile xc/nls/Compose/Imakefile
|
||||
--- xc-orig/nls/Compose/Imakefile 2009-03-18 18:13:20.000000000 +0100
|
||||
+++ xc/nls/Compose/Imakefile 2010-02-20 16:24:42.442511645 +0100
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
XCOMM $XFree86: xc/nls/Compose/Imakefile,v 1.20 2002/05/31 18:45:52 dawes Exp $
|
||||
|
||||
-#ifndef Win32Architecture
|
||||
+#if defined(mingwArchitecture) || !defined(Win32Architecture)
|
||||
# define ComposeTarget(name) @@\
|
||||
all:: name.ct @@\
|
||||
MakeDir($(BUILDI18NDIR)/name) @@\
|
||||
diff -urw xc-orig/nls/Imakefile xc/nls/Imakefile
|
||||
--- xc-orig/nls/Imakefile 2009-03-18 18:13:20.000000000 +0100
|
||||
+++ xc/nls/Imakefile 2010-02-20 16:24:42.443510864 +0100
|
||||
@@ -28,7 +28,7 @@
|
||||
#define R63Compat YES
|
||||
#endif
|
||||
|
||||
-#ifndef Win32Architecture
|
||||
+#if defined(mingwArchitecture) || !defined(Win32Architecture)
|
||||
#if R63Compat
|
||||
# define LTarget(name) @@\
|
||||
CppFileTarget(name.l1,name,$(DEFINES),NullParameter) @@\
|
||||
diff -urw xc-orig/nls/XI18N_OBJS/Imakefile xc/nls/XI18N_OBJS/Imakefile
|
||||
--- xc-orig/nls/XI18N_OBJS/Imakefile 2009-03-18 18:13:20.000000000 +0100
|
||||
+++ xc/nls/XI18N_OBJS/Imakefile 2010-02-20 16:24:42.443510864 +0100
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
XCOMM $XFree86: xc/nls/XI18N_OBJS/Imakefile,v 1.6 2002/12/17 03:41:53 dawes Exp $
|
||||
|
||||
-#ifndef Win32Architecture
|
||||
+#if defined(mingwArchitecture) || !defined(Win32Architecture)
|
||||
# define XI18NTarget(name) @@\
|
||||
all:: name @@\
|
||||
MakeDir($(BUILDI18NDIR)/name) @@\
|
||||
diff -urw xc-orig/nls/XLC_LOCALE/Imakefile xc/nls/XLC_LOCALE/Imakefile
|
||||
--- xc-orig/nls/XLC_LOCALE/Imakefile 2009-03-18 18:13:20.000000000 +0100
|
||||
+++ xc/nls/XLC_LOCALE/Imakefile 2010-02-20 16:24:42.443510864 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
WCHAR32 = HasWChar32
|
||||
|
||||
-#ifndef Win32Architecture
|
||||
+#if defined(mingwArchitecture) || !defined(Win32Architecture)
|
||||
# define LTarget(name) @@\
|
||||
all:: name.lt @@\
|
||||
@@\
|
||||
12
packaging/win32/xming/patches/xming-build-subsys.patch
Normal file
12
packaging/win32/xming/patches/xming-build-subsys.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -urwN xc-orig/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile
|
||||
--- xc-orig/programs/Xserver/Imakefile 2009-03-18 18:13:47.000000000 +0100
|
||||
+++ xc/programs/Xserver/Imakefile 2009-07-28 02:47:19.754745601 +0200
|
||||
@@ -1052,7 +1052,7 @@
|
||||
#endif
|
||||
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XWINX11) $(SYSLIBS) $(XWINW32)
|
||||
|
||||
-EXTRA_LDOPTIONS = -e _mainCRTStartup
|
||||
+EXTRA_LDOPTIONS = -Wl,--subsystem,windows -mwindows
|
||||
|
||||
#if HasParallelMake
|
||||
MakeMutex($(XWINDIRS) $(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS))
|
||||
93
packaging/win32/xming/patches/xming-build-xauth.patch
Normal file
93
packaging/win32/xming/patches/xming-build-xauth.patch
Normal file
@@ -0,0 +1,93 @@
|
||||
diff -urw xc-noauth/programs/Imakefile xc/programs/Imakefile
|
||||
--- xc-noauth/programs/Imakefile 2009-03-18 18:13:38.000000000 +0100
|
||||
+++ xc/programs/Imakefile 2009-08-02 16:40:15.951112896 +0200
|
||||
@@ -129,7 +129,7 @@
|
||||
#endif
|
||||
|
||||
#if BuildServersOnly || !BuildClients
|
||||
-SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR)
|
||||
+SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR) xauth
|
||||
#else
|
||||
SUBDIRS = \
|
||||
appres bdftopcf bitmap \
|
||||
diff -urw xc-noauth/programs/xauth/Imakefile xc/programs/xauth/Imakefile
|
||||
--- xc-noauth/programs/xauth/Imakefile 2009-03-18 18:13:37.000000000 +0100
|
||||
+++ xc/programs/xauth/Imakefile 2009-08-02 16:57:42.506366577 +0200
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
XCOMM $XFree86: xc/programs/xauth/Imakefile,v 3.5tsi Exp $
|
||||
|
||||
- DEPLIBS = $(DEPXAUTHLIB) $(DEPXMUULIB) $(DEPXLIB)
|
||||
-LOCAL_LIBRARIES = $(XAUTHLIB) $(XMUULIB) $(XLIB)
|
||||
+ DEPLIBS = $(DEPXAUTHLIB) $(DEPXLIB)
|
||||
+LOCAL_LIBRARIES = $(XAUTHLIB) $(XLIB)
|
||||
SRCS = xauth.c gethost.c process.c parsedpy.c
|
||||
OBJS = xauth.o gethost.o process.o parsedpy.o
|
||||
CONN_DEFINES = $(CONNECTION_FLAGS)
|
||||
diff -urw xc-noauth/programs/xauth/parsedpy.c xc/programs/xauth/parsedpy.c
|
||||
--- xc-noauth/programs/xauth/parsedpy.c 2009-03-18 18:13:37.000000000 +0100
|
||||
+++ xc/programs/xauth/parsedpy.c 2009-08-02 16:56:03.724365404 +0200
|
||||
@@ -44,7 +44,48 @@
|
||||
#include <sys/utsname.h> /* for struct utsname */
|
||||
#endif
|
||||
#include <X11/Xauth.h> /* for FamilyLocal */
|
||||
+#ifdef __MINGW32__
|
||||
+# include <X11/Xosdefs.h>
|
||||
+# include <X11/Xmd.h>
|
||||
+# include <string.h>
|
||||
+# include <unistd.h>
|
||||
+
|
||||
+# ifdef WIN32
|
||||
+# include <X11/Xwinsock.h>
|
||||
+# endif
|
||||
+int
|
||||
+XmuGetHostname(char *buf, int maxlen)
|
||||
+{
|
||||
+ int len;
|
||||
+# ifdef WIN32
|
||||
+ static WSADATA wsadata;
|
||||
+
|
||||
+ if (!wsadata.wVersion && WSAStartup(MAKEWORD(1,1), &wsadata))
|
||||
+ return -1;
|
||||
+# endif
|
||||
+
|
||||
+# ifdef NEED_UTSNAME
|
||||
+ /*
|
||||
+ * same host name crock as in server and xinit.
|
||||
+ */
|
||||
+ struct utsname name;
|
||||
+
|
||||
+ uname (&name);
|
||||
+ len = strlen (name.nodename);
|
||||
+ if (len >= maxlen) len = maxlen - 1;
|
||||
+ strncpy (buf, name.nodename, len);
|
||||
+ buf[len] = '\0';
|
||||
+# else
|
||||
+ buf[0] = '\0';
|
||||
+ (void) gethostname (buf, maxlen);
|
||||
+ buf [maxlen - 1] = '\0';
|
||||
+ len = strlen(buf);
|
||||
+# endif /* hpux */
|
||||
+ return len;
|
||||
+}
|
||||
+#else
|
||||
#include <X11/Xmu/SysUtil.h>
|
||||
+#endif
|
||||
|
||||
#if defined(UNIXCONN) || defined(LOCALCONN)
|
||||
#define UNIX_CONNECTION "unix"
|
||||
diff -urw xc-noauth/programs/xauth/process.c xc/programs/xauth/process.c
|
||||
--- xc-noauth/programs/xauth/process.c 2009-03-18 18:13:37.000000000 +0100
|
||||
+++ xc/programs/xauth/process.c 2009-08-02 16:40:15.952112883 +0200
|
||||
@@ -41,7 +41,11 @@
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
+#ifdef __MINGW32__
|
||||
+# define RETSIGTYPE void
|
||||
+#else
|
||||
#include <sys/socket.h>
|
||||
+#endif
|
||||
|
||||
#include <signal.h>
|
||||
#include <X11/X.h> /* for Family constants */
|
||||
629
packaging/win32/xming/patches/xming-build-xset.patch
Normal file
629
packaging/win32/xming/patches/xming-build-xset.patch
Normal file
@@ -0,0 +1,629 @@
|
||||
diff -urwN xc-orig/config/cf/host.def xc/config/cf/host.def
|
||||
--- xc-orig/config/cf/host.def 1970-01-01 01:00:00 +0100
|
||||
+++ xc/config/cf/host.def 2009-08-05 13:36:23 +0200
|
||||
@@ -0,0 +1 @@
|
||||
+
|
||||
diff -urwN xc-orig/lib/X11/XlibConf.h xc/lib/X11/XlibConf.h
|
||||
--- xc-orig/lib/X11/XlibConf.h 1970-01-01 01:00:00 +0100
|
||||
+++ xc/lib/X11/XlibConf.h 2009-08-05 13:37:03 +0200
|
||||
@@ -0,0 +1,7 @@
|
||||
+/* Defines needed to use Xlib from non-imake projects */
|
||||
+#ifndef XTHREADS
|
||||
+#define XTHREADS
|
||||
+#endif
|
||||
+#ifndef XUSE_MTSAFE_API
|
||||
+#define XUSE_MTSAFE_API
|
||||
+#endif
|
||||
diff -urwN xc-orig/programs/Imakefile xc/programs/Imakefile
|
||||
--- xc-orig/programs/Imakefile 2009-08-05 13:01:30 +0200
|
||||
+++ xc/programs/Imakefile 2009-08-05 13:36:22 +0200
|
||||
@@ -129,7 +129,7 @@
|
||||
#endif
|
||||
|
||||
#if BuildServersOnly || !BuildClients
|
||||
-SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR) xauth
|
||||
+SUBDIRS = $(XSSRCDIR) $(XKBCOMPDIR) xauth xset
|
||||
#else
|
||||
SUBDIRS = \
|
||||
appres bdftopcf bitmap \
|
||||
diff -urwN xc-orig/programs/xset/CharSet.h xc/programs/xset/CharSet.h
|
||||
--- xc-orig/programs/xset/CharSet.h 1970-01-01 01:00:00 +0100
|
||||
+++ xc/programs/xset/CharSet.h 2009-08-05 13:36:22 +0200
|
||||
@@ -0,0 +1,77 @@
|
||||
+/* $Xorg: CharSet.h,v 1.4 2001/02/09 02:03:51 xorgcvs Exp $ */
|
||||
+
|
||||
+/*
|
||||
+
|
||||
+Copyright 1988, 1998 The Open Group
|
||||
+
|
||||
+Permission to use, copy, modify, distribute, and sell this software and its
|
||||
+documentation for any purpose is hereby granted without fee, provided that
|
||||
+the above copyright notice appear in all copies and that both that
|
||||
+copyright notice and this permission notice appear in supporting
|
||||
+documentation.
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+Except as contained in this notice, the name of The Open Group shall not be
|
||||
+used in advertising or otherwise to promote the sale, use or other dealings
|
||||
+in this Software without prior written authorization from The Open Group.
|
||||
+
|
||||
+*/
|
||||
+
|
||||
+/* $XFree86: xc/lib/Xmu/CharSet.h,v 1.7 2001/01/17 19:42:53 dawes Exp $ */
|
||||
+
|
||||
+/*
|
||||
+ * The interfaces described by this header file are for miscellaneous utilities
|
||||
+ * and are not part of the Xlib standard.
|
||||
+ */
|
||||
+
|
||||
+#ifndef _XMU_CHARSET_H_
|
||||
+#define _XMU_CHARSET_H_
|
||||
+
|
||||
+#include <X11/Xfuncproto.h>
|
||||
+
|
||||
+_XFUNCPROTOBEGIN
|
||||
+
|
||||
+void XmuCopyISOLatin1Lowered
|
||||
+(
|
||||
+ char *dst_return,
|
||||
+ _Xconst char *src
|
||||
+ );
|
||||
+
|
||||
+void XmuCopyISOLatin1Uppered
|
||||
+(
|
||||
+ char *dst_return,
|
||||
+ _Xconst char *src
|
||||
+ );
|
||||
+
|
||||
+int XmuCompareISOLatin1
|
||||
+(
|
||||
+ _Xconst char *first,
|
||||
+ _Xconst char *second
|
||||
+ );
|
||||
+
|
||||
+void XmuNCopyISOLatin1Lowered
|
||||
+(
|
||||
+ char *dst_return,
|
||||
+ _Xconst char *src,
|
||||
+ int size
|
||||
+ );
|
||||
+
|
||||
+void XmuNCopyISOLatin1Uppered
|
||||
+(
|
||||
+ char *dst_return,
|
||||
+ _Xconst char *src,
|
||||
+ int size
|
||||
+ );
|
||||
+
|
||||
+_XFUNCPROTOEND
|
||||
+
|
||||
+#endif /* _XMU_CHARSET_H_ */
|
||||
diff -urwN xc-orig/programs/xset/DefErrMsg.c xc/programs/xset/DefErrMsg.c
|
||||
--- xc-orig/programs/xset/DefErrMsg.c 1970-01-01 01:00:00 +0100
|
||||
+++ xc/programs/xset/DefErrMsg.c 2009-08-05 13:36:22 +0200
|
||||
@@ -0,0 +1,173 @@
|
||||
+/* $Xorg: DefErrMsg.c,v 1.4 2001/02/09 02:03:52 xorgcvs Exp $ */
|
||||
+
|
||||
+/*
|
||||
+
|
||||
+Copyright 1988, 1998 The Open Group
|
||||
+
|
||||
+Permission to use, copy, modify, distribute, and sell this software and its
|
||||
+documentation for any purpose is hereby granted without fee, provided that
|
||||
+the above copyright notice appear in all copies and that both that
|
||||
+copyright notice and this permission notice appear in supporting
|
||||
+documentation.
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+Except as contained in this notice, the name of The Open Group shall not be
|
||||
+used in advertising or otherwise to promote the sale, use or other dealings
|
||||
+in this Software without prior written authorization from The Open Group.
|
||||
+
|
||||
+*/
|
||||
+/* $XFree86: xc/lib/Xmu/DefErrMsg.c,v 1.7 2001/01/17 19:42:54 dawes Exp $ */
|
||||
+
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include <config.h>
|
||||
+#endif
|
||||
+#include <stdio.h>
|
||||
+#define NEED_EVENTS
|
||||
+#include <X11/Xlibint.h>
|
||||
+#include <X11/Xproto.h>
|
||||
+#include "Error.h"
|
||||
+#include "SysUtil.h"
|
||||
+
|
||||
+/*
|
||||
+ * XmuPrintDefaultErrorMessage - print a nice error that looks like the usual
|
||||
+ * message. Returns 1 if the caller should consider exitting else 0.
|
||||
+ */
|
||||
+int
|
||||
+XmuPrintDefaultErrorMessage(Display *dpy, XErrorEvent *event, FILE *fp)
|
||||
+{
|
||||
+ char buffer[BUFSIZ];
|
||||
+ char mesg[BUFSIZ];
|
||||
+ char number[32];
|
||||
+ char *mtype = "XlibMessage";
|
||||
+ register _XExtension *ext = (_XExtension *)NULL;
|
||||
+ _XExtension *bext = (_XExtension *)NULL;
|
||||
+ XGetErrorText(dpy, event->error_code, buffer, BUFSIZ);
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "XError", "X Error", mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, "%s: %s\n ", mesg, buffer);
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d",
|
||||
+ mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, mesg, event->request_code);
|
||||
+ if (event->request_code < 128) {
|
||||
+ XmuSnprintf(number, sizeof(number), "%d", event->request_code);
|
||||
+ XGetErrorDatabaseText(dpy, "XRequest", number, "", buffer, BUFSIZ);
|
||||
+ } else {
|
||||
+ /* XXX this is non-portable */
|
||||
+ for (ext = dpy->ext_procs;
|
||||
+ ext && (ext->codes.major_opcode != event->request_code);
|
||||
+ ext = ext->next)
|
||||
+ ;
|
||||
+ if (ext)
|
||||
+ XmuSnprintf(buffer, sizeof(buffer), "%s", ext->name);
|
||||
+ else
|
||||
+ buffer[0] = '\0';
|
||||
+ }
|
||||
+ (void) fprintf(fp, " (%s)", buffer);
|
||||
+ fputs("\n ", fp);
|
||||
+ if (event->request_code >= 128) {
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "MinorCode", "Request Minor code %d",
|
||||
+ mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, mesg, event->minor_code);
|
||||
+ if (ext) {
|
||||
+ XmuSnprintf(mesg, sizeof(mesg),
|
||||
+ "%s.%d", ext->name, event->minor_code);
|
||||
+ XGetErrorDatabaseText(dpy, "XRequest", mesg, "", buffer, BUFSIZ);
|
||||
+ (void) fprintf(fp, " (%s)", buffer);
|
||||
+ }
|
||||
+ fputs("\n ", fp);
|
||||
+ }
|
||||
+ if (event->error_code >= 128) {
|
||||
+ /* kludge, try to find the extension that caused it */
|
||||
+ buffer[0] = '\0';
|
||||
+ for (ext = dpy->ext_procs; ext; ext = ext->next) {
|
||||
+ if (ext->error_string)
|
||||
+ (*ext->error_string)(dpy, event->error_code, &ext->codes,
|
||||
+ buffer, BUFSIZ);
|
||||
+ if (buffer[0]) {
|
||||
+ bext = ext;
|
||||
+ break;
|
||||
+ }
|
||||
+ if (ext->codes.first_error &&
|
||||
+ ext->codes.first_error < event->error_code &&
|
||||
+ (!bext || ext->codes.first_error > bext->codes.first_error))
|
||||
+ bext = ext;
|
||||
+ }
|
||||
+ if (bext)
|
||||
+ XmuSnprintf(buffer, sizeof(buffer), "%s.%d", bext->name,
|
||||
+ event->error_code - bext->codes.first_error);
|
||||
+ else
|
||||
+ strcpy(buffer, "Value");
|
||||
+ XGetErrorDatabaseText(dpy, mtype, buffer, "", mesg, BUFSIZ);
|
||||
+ if (mesg[0]) {
|
||||
+ fputs(" ", fp);
|
||||
+ (void) fprintf(fp, mesg, event->resourceid);
|
||||
+ fputs("\n", fp);
|
||||
+ }
|
||||
+ /* let extensions try to print the values */
|
||||
+ for (ext = dpy->ext_procs; ext; ext = ext->next) {
|
||||
+ if (ext->error_values)
|
||||
+ (*ext->error_values)(dpy, event, fp);
|
||||
+ }
|
||||
+ } else if ((event->error_code == BadWindow) ||
|
||||
+ (event->error_code == BadPixmap) ||
|
||||
+ (event->error_code == BadCursor) ||
|
||||
+ (event->error_code == BadFont) ||
|
||||
+ (event->error_code == BadDrawable) ||
|
||||
+ (event->error_code == BadColor) ||
|
||||
+ (event->error_code == BadGC) ||
|
||||
+ (event->error_code == BadIDChoice) ||
|
||||
+ (event->error_code == BadValue) ||
|
||||
+ (event->error_code == BadAtom)) {
|
||||
+ if (event->error_code == BadValue)
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "Value", "Value 0x%x",
|
||||
+ mesg, BUFSIZ);
|
||||
+ else if (event->error_code == BadAtom)
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "AtomID", "AtomID 0x%x",
|
||||
+ mesg, BUFSIZ);
|
||||
+ else
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "ResourceID", "ResourceID 0x%x",
|
||||
+ mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, mesg, event->resourceid);
|
||||
+ fputs("\n ", fp);
|
||||
+ }
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "ErrorSerial", "Error Serial #%d",
|
||||
+ mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, mesg, event->serial);
|
||||
+ fputs("\n ", fp);
|
||||
+ XGetErrorDatabaseText(dpy, mtype, "CurrentSerial", "Current Serial #%d",
|
||||
+ mesg, BUFSIZ);
|
||||
+ (void) fprintf(fp, mesg, NextRequest(dpy)-1);
|
||||
+ fputs("\n", fp);
|
||||
+ if (event->error_code == BadImplementation) return 0;
|
||||
+ return 1;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+/*
|
||||
+ * XmuSimpleErrorHandler - ignore errors for XQueryTree, XGetWindowAttributes,
|
||||
+ * and XGetGeometry; print a message for everything else. In all case, do
|
||||
+ * not exit.
|
||||
+ */
|
||||
+int
|
||||
+XmuSimpleErrorHandler(Display *dpy, XErrorEvent *errorp)
|
||||
+{
|
||||
+ switch (errorp->request_code) {
|
||||
+ case X_QueryTree:
|
||||
+ case X_GetWindowAttributes:
|
||||
+ if (errorp->error_code == BadWindow) return 0;
|
||||
+ break;
|
||||
+ case X_GetGeometry:
|
||||
+ if (errorp->error_code == BadDrawable) return 0;
|
||||
+ break;
|
||||
+ }
|
||||
+ /* got a "real" X error */
|
||||
+ return XmuPrintDefaultErrorMessage (dpy, errorp, stderr);
|
||||
+}
|
||||
diff -urwN xc-orig/programs/xset/Error.h xc/programs/xset/Error.h
|
||||
--- xc-orig/programs/xset/Error.h 1970-01-01 01:00:00 +0100
|
||||
+++ xc/programs/xset/Error.h 2009-08-05 13:36:22 +0200
|
||||
@@ -0,0 +1,59 @@
|
||||
+/* $Xorg: Error.h,v 1.5 2001/02/09 02:03:52 xorgcvs Exp $ */
|
||||
+
|
||||
+/*
|
||||
+
|
||||
+Copyright 1988, 1998 The Open Group
|
||||
+
|
||||
+Permission to use, copy, modify, distribute, and sell this software and its
|
||||
+documentation for any purpose is hereby granted without fee, provided that
|
||||
+the above copyright notice appear in all copies and that both that
|
||||
+copyright notice and this permission notice appear in supporting
|
||||
+documentation.
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+Except as contained in this notice, the name of The Open Group shall not be
|
||||
+used in advertising or otherwise to promote the sale, use or other dealings
|
||||
+in this Software without prior written authorization from The Open Group.
|
||||
+
|
||||
+*/
|
||||
+/* $XFree86: xc/lib/Xmu/Error.h,v 1.5 2001/01/17 19:42:55 dawes Exp $ */
|
||||
+
|
||||
+/*
|
||||
+ * The interfaces described by this header file are for miscellaneous utilities
|
||||
+ * and are not part of the Xlib standard.
|
||||
+ */
|
||||
+
|
||||
+#ifndef _XMU_ERROR_H_
|
||||
+#define _XMU_ERROR_H_
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+#include <X11/Xlib.h>
|
||||
+#include <X11/Xfuncproto.h>
|
||||
+
|
||||
+_XFUNCPROTOBEGIN
|
||||
+
|
||||
+int XmuPrintDefaultErrorMessage
|
||||
+(
|
||||
+ Display *dpy,
|
||||
+ XErrorEvent *event,
|
||||
+ FILE *fp
|
||||
+ );
|
||||
+
|
||||
+int XmuSimpleErrorHandler
|
||||
+(
|
||||
+ Display *dpy,
|
||||
+ XErrorEvent *errorp
|
||||
+ );
|
||||
+
|
||||
+_XFUNCPROTOEND
|
||||
+
|
||||
+#endif /* _XMU_ERROR_H_ */
|
||||
diff -urwN xc-orig/programs/xset/Imakefile xc/programs/xset/Imakefile
|
||||
--- xc-orig/programs/xset/Imakefile 2009-03-18 18:13:34 +0100
|
||||
+++ xc/programs/xset/Imakefile 2009-08-05 21:18:27 +0200
|
||||
@@ -19,10 +19,19 @@
|
||||
XPRINTDEFINES = -DBUILD_PRINTSUPPORT
|
||||
#endif
|
||||
|
||||
+#if HasSnprintf
|
||||
+ MISC_DEFINES = -DHAS_SNPRINTF
|
||||
+#else
|
||||
+ MISC_INCLUDES = -I$(LIBSRC)/misc
|
||||
+#endif
|
||||
+
|
||||
+ SRCS = xset.c DefErrMsg.c Lower.c
|
||||
+ OBJS = xset.o DefErrMsg.o Lower.o
|
||||
+ INCLUDES = $(MISC_INCLUDES)
|
||||
DEFINES = ExtensionDefines DPMSDefines \
|
||||
FontCacheExtensionDefines \
|
||||
- XkbDefines $(XPRINTDEFINES)
|
||||
- DEPLIBS = $(DEPXMUULIB) $(DEPXLIB) $(DEPXF86LIBS) $(DEPFONTLIBS)
|
||||
-LOCAL_LIBRARIES = $(XMUULIB) $(XF86LIBS) $(FONTLIBS) $(XPRINTLIBS) $(XLIB)
|
||||
+ XkbDefines $(XPRINTDEFINES) $(MISC_DEFINES)
|
||||
+ DEPLIBS = $(DEPXLIB) $(DEPXF86LIBS) $(DEPFONTLIBS)
|
||||
+LOCAL_LIBRARIES = $(XF86LIBS) $(FONTLIBS) $(XPRINTLIBS) $(XLIB)
|
||||
|
||||
-SimpleProgramTarget(xset)
|
||||
+ComplexProgramTarget(xset)
|
||||
diff -urwN xc-orig/programs/xset/Lower.c xc/programs/xset/Lower.c
|
||||
--- xc-orig/programs/xset/Lower.c 1970-01-01 01:00:00 +0100
|
||||
+++ xc/programs/xset/Lower.c 2009-08-05 13:36:22 +0200
|
||||
@@ -0,0 +1,164 @@
|
||||
+/* $Xorg: Lower.c,v 1.4 2001/02/09 02:03:53 xorgcvs Exp $ */
|
||||
+
|
||||
+/*
|
||||
+
|
||||
+Copyright 1988, 1998 The Open Group
|
||||
+
|
||||
+Permission to use, copy, modify, distribute, and sell this software and its
|
||||
+documentation for any purpose is hereby granted without fee, provided that
|
||||
+the above copyright notice appear in all copies and that both that
|
||||
+copyright notice and this permission notice appear in supporting
|
||||
+documentation.
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+Except as contained in this notice, the name of The Open Group shall not be
|
||||
+used in advertising or otherwise to promote the sale, use or other dealings
|
||||
+in this Software without prior written authorization from The Open Group.
|
||||
+
|
||||
+*/
|
||||
+
|
||||
+/* $XFree86: xc/lib/Xmu/Lower.c,v 1.11 2001/07/25 15:04:50 dawes Exp $ */
|
||||
+
|
||||
+#define XK_LATIN1
|
||||
+#ifdef HAVE_CONFIG_H
|
||||
+#include <config.h>
|
||||
+#endif
|
||||
+#include <X11/keysymdef.h>
|
||||
+#include "CharSet.h"
|
||||
+#include "SysUtil.h"
|
||||
+
|
||||
+#include <stdio.h>
|
||||
+
|
||||
+#ifndef HAS_SNPRINTF
|
||||
+#undef SCOPE
|
||||
+#define SCOPE static
|
||||
+#include "snprintf.c"
|
||||
+#endif
|
||||
+
|
||||
+#include <stdarg.h>
|
||||
+
|
||||
+/*
|
||||
+ * ISO Latin-1 case conversion routine
|
||||
+ */
|
||||
+#define XmuTolower(c) \
|
||||
+((c) >= XK_a && (c) <= XK_z ? \
|
||||
+ (c) : (c) >= XK_A && (c) <= XK_Z ? \
|
||||
+ (c) + (XK_a - XK_A) : (c) >= XK_Agrave && (c) <= XK_Odiaeresis ? \
|
||||
+ (c) + (XK_agrave - XK_Agrave) : (c) >= XK_Ooblique && (c) <= XK_Thorn ? \
|
||||
+ (c) + (XK_oslash - XK_Ooblique) : \
|
||||
+ (c))
|
||||
+
|
||||
+#define XmuToupper(c) \
|
||||
+((c) >= XK_A && (c) <= XK_Z ? \
|
||||
+ (c) : (c) >= XK_a && (c) <= XK_z ? \
|
||||
+ (c) - (XK_a - XK_A) : (c) >= XK_agrave && (c) <= XK_odiaeresis ? \
|
||||
+ (c) - (XK_agrave - XK_Agrave) : (c) >= XK_oslash && (c) <= XK_thorn ? \
|
||||
+ (c) - (XK_oslash - XK_Ooblique) : \
|
||||
+ (c))
|
||||
+
|
||||
+/*
|
||||
+ * Implementation
|
||||
+ */
|
||||
+void
|
||||
+XmuCopyISOLatin1Lowered(char *dst, _Xconst char *src)
|
||||
+{
|
||||
+ register unsigned char *dest, *source;
|
||||
+
|
||||
+ for (dest = (unsigned char *)dst, source = (unsigned char *)src;
|
||||
+ *source;
|
||||
+ source++, dest++)
|
||||
+ *dest = XmuTolower(*source);
|
||||
+ *dest = '\0';
|
||||
+}
|
||||
+
|
||||
+void
|
||||
+XmuCopyISOLatin1Uppered(char *dst, _Xconst char *src)
|
||||
+{
|
||||
+ register unsigned char *dest, *source;
|
||||
+
|
||||
+ for (dest = (unsigned char *)dst, source = (unsigned char *)src;
|
||||
+ *source;
|
||||
+ source++, dest++)
|
||||
+ *dest = XmuToupper(*source);
|
||||
+ *dest = '\0';
|
||||
+}
|
||||
+
|
||||
+int
|
||||
+XmuCompareISOLatin1(_Xconst char *first, _Xconst char *second)
|
||||
+{
|
||||
+ register unsigned char *ap, *bp;
|
||||
+
|
||||
+ for (ap = (unsigned char *)first, bp = (unsigned char *)second;
|
||||
+ *ap && *bp && XmuTolower(*ap) == XmuTolower(*bp);
|
||||
+ ap++, bp++)
|
||||
+ ;
|
||||
+
|
||||
+ return ((int)XmuTolower(*ap) - (int)XmuTolower(*bp));
|
||||
+}
|
||||
+
|
||||
+void
|
||||
+XmuNCopyISOLatin1Lowered(char *dst, _Xconst char *src, register int size)
|
||||
+{
|
||||
+ register unsigned char *dest, *source;
|
||||
+
|
||||
+ if (size > 0)
|
||||
+ {
|
||||
+ for (dest = (unsigned char *)dst, source = (unsigned char *)src;
|
||||
+ *source && size > 1;
|
||||
+ source++, dest++, size--)
|
||||
+ *dest = XmuTolower(*source);
|
||||
+ *dest = '\0';
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+void
|
||||
+XmuNCopyISOLatin1Uppered(char *dst, _Xconst char *src, register int size)
|
||||
+{
|
||||
+ register unsigned char *dest, *source;
|
||||
+
|
||||
+ if (size > 0)
|
||||
+ {
|
||||
+ for (dest = (unsigned char *)dst, source = (unsigned char *)src;
|
||||
+ *source && size > 1;
|
||||
+ source++, dest++, size--)
|
||||
+ *dest = XmuToupper(*source);
|
||||
+ *dest = '\0';
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+int
|
||||
+XmuSnprintf(char *str, int size, _Xconst char *fmt, ...)
|
||||
+{
|
||||
+ va_list ap;
|
||||
+ int retval;
|
||||
+
|
||||
+ if (size <= 0)
|
||||
+ return (size);
|
||||
+
|
||||
+ va_start(ap, fmt);
|
||||
+
|
||||
+#if 0
|
||||
+ retval = vsprintf(str, fmt, ap);
|
||||
+ if (retval >= size)
|
||||
+ {
|
||||
+ fprintf(stderr, "WARNING: buffer overflow detected!\n");
|
||||
+ fflush(stderr);
|
||||
+ abort();
|
||||
+ }
|
||||
+#else
|
||||
+ retval = vsnprintf(str, size, fmt, ap);
|
||||
+#endif
|
||||
+
|
||||
+ va_end(ap);
|
||||
+
|
||||
+ return (retval);
|
||||
+}
|
||||
diff -urwN xc-orig/programs/xset/SysUtil.h xc/programs/xset/SysUtil.h
|
||||
--- xc-orig/programs/xset/SysUtil.h 1970-01-01 01:00:00 +0100
|
||||
+++ xc/programs/xset/SysUtil.h 2009-08-05 13:50:56 +0200
|
||||
@@ -0,0 +1,60 @@
|
||||
+/* $Xorg: SysUtil.h,v 1.4 2001/02/09 02:03:53 xorgcvs Exp $ */
|
||||
+
|
||||
+/*
|
||||
+
|
||||
+Copyright 1989, 1998 The Open Group
|
||||
+
|
||||
+Permission to use, copy, modify, distribute, and sell this software and its
|
||||
+documentation for any purpose is hereby granted without fee, provided that
|
||||
+the above copyright notice appear in all copies and that both that
|
||||
+copyright notice and this permission notice appear in supporting
|
||||
+documentation.
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+Except as contained in this notice, the name of The Open Group shall not be
|
||||
+used in advertising or otherwise to promote the sale, use or other dealings
|
||||
+in this Software without prior written authorization from The Open Group.
|
||||
+
|
||||
+*/
|
||||
+/* $XFree86: xc/lib/Xmu/SysUtil.h,v 1.9 2001/12/14 19:55:55 dawes Exp $ */
|
||||
+
|
||||
+#ifndef _SYSUTIL_H_
|
||||
+#define _SYSUTIL_H_
|
||||
+
|
||||
+#include <X11/Xfuncproto.h>
|
||||
+
|
||||
+_XFUNCPROTOBEGIN
|
||||
+
|
||||
+int XmuGetHostname
|
||||
+(
|
||||
+ char *buf_return,
|
||||
+ int maxlen
|
||||
+);
|
||||
+
|
||||
+#ifndef _XMU_H_
|
||||
+int XmuSnprintf
|
||||
+(
|
||||
+ char *str,
|
||||
+ int size,
|
||||
+ _Xconst char *fmt,
|
||||
+ ...
|
||||
+ )
|
||||
+#if defined(__GNUC__) && \
|
||||
+ ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ > 4)))
|
||||
+__attribute((format(printf,3,4)))
|
||||
+#endif
|
||||
+;
|
||||
+#endif
|
||||
+
|
||||
+_XFUNCPROTOEND
|
||||
+
|
||||
+#endif /* _SYSUTIL_H_ */
|
||||
diff -urwN xc-orig/programs/xset/xset.c xc/programs/xset/xset.c
|
||||
--- xc-orig/programs/xset/xset.c 2009-03-18 18:13:34 +0100
|
||||
+++ xc/programs/xset/xset.c 2009-08-05 13:36:22 +0200
|
||||
@@ -68,7 +68,7 @@
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/Xutil.h>
|
||||
-#include <X11/Xmu/Error.h>
|
||||
+#include "Error.h"
|
||||
#ifdef MITMISC
|
||||
#include <X11/extensions/MITMisc.h>
|
||||
#endif
|
||||
@@ -98,7 +98,7 @@
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include <X11/Xutil.h>
|
||||
-#include <X11/Xmu/Error.h>
|
||||
+#include "Error.h"
|
||||
#ifdef MITMISC
|
||||
#include <X11/extensions/MITMisc.h>
|
||||
#endif
|
||||
220
packaging/win32/xming/patches/xming-build.patch
Normal file
220
packaging/win32/xming/patches/xming-build.patch
Normal file
@@ -0,0 +1,220 @@
|
||||
diff -urwN xc-orig/config/cf/mingw.cf xc/config/cf/mingw.cf
|
||||
--- xc-orig/config/cf/mingw.cf 2009-03-18 18:13:23.000000000 +0100
|
||||
+++ xc/config/cf/mingw.cf 2010-03-14 16:43:58.971671393 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef XVendorString
|
||||
-# define XVendorString "Colin Harrison"
|
||||
+# define XVendorString "The OpenNX Project"
|
||||
#endif
|
||||
#ifndef XVendorRelease
|
||||
# define XVendorRelease CygxVersion
|
||||
@@ -39,10 +39,10 @@
|
||||
# define XVendorManVersionString CygxManVersionString
|
||||
#endif
|
||||
#ifndef XVendorManNameString
|
||||
-# define XVendorManNameString "Xming"
|
||||
+# define XVendorManNameString "OpenNX Xming"
|
||||
#endif
|
||||
#ifndef XVendorContact
|
||||
-# define XVendorContact "http://sourceforge.net/forum/?group_id=156984"
|
||||
+# define XVendorContact "http://sourceforge.net/projects/opennx/"
|
||||
#endif
|
||||
|
||||
/* Operating system strings and version */
|
||||
@@ -118,9 +118,9 @@
|
||||
# endif
|
||||
# ifndef DefaultCCOptions
|
||||
# if defined(UseInstalled)
|
||||
-# define DefaultCCOptions
|
||||
+# define DefaultCCOptions -fno-strict-aliasing
|
||||
# else
|
||||
-# define DefaultCCOptions GccWarningOptions
|
||||
+# define DefaultCCOptions GccWarningOptions -fno-strict-aliasing
|
||||
# endif
|
||||
# endif
|
||||
# if defined(UseInstalled)
|
||||
diff -urwN xc-orig/lib/font/fc/fsconvert.c xc/lib/font/fc/fsconvert.c
|
||||
--- xc-orig/lib/font/fc/fsconvert.c 2009-03-18 18:13:18.000000000 +0100
|
||||
+++ xc/lib/font/fc/fsconvert.c 2010-03-14 16:43:58.972672079 +0100
|
||||
@@ -30,6 +30,7 @@
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
+#include <stdint.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xtrans/Xtrans.h>
|
||||
#include <X11/Xpoll.h>
|
||||
diff -urwN xc-orig/programs/Xserver/fb/fbcompose.c xc/programs/Xserver/fb/fbcompose.c
|
||||
--- xc-orig/programs/Xserver/fb/fbcompose.c 2009-03-18 18:13:39.000000000 +0100
|
||||
+++ xc/programs/Xserver/fb/fbcompose.c 2010-03-14 16:43:58.975671483 +0100
|
||||
@@ -26,6 +26,7 @@
|
||||
#ifdef HAVE_DIX_CONFIG_H
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
+#include <stdint.h>
|
||||
|
||||
#include "fb.h"
|
||||
|
||||
diff -urwN xc-orig/programs/Xserver/hw/xwin/Imakefile xc/programs/Xserver/hw/xwin/Imakefile
|
||||
--- xc-orig/programs/Xserver/hw/xwin/Imakefile 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/Imakefile 2010-03-14 16:45:44.949905456 +0100
|
||||
@@ -23,7 +23,7 @@
|
||||
EXTRADEFINES += -DREAD_FONTDIRS
|
||||
|
||||
#if defined(mingwArchitecture)
|
||||
-PROJECT_NAME = Xming
|
||||
+PROJECT_NAME = OpenNX
|
||||
#elif defined(cygwinArchitecture)
|
||||
PROJECT_NAME = Cygwin/X
|
||||
#else
|
||||
diff -urwN xc-orig/programs/Xserver/hw/xwin/winmultiwindowicons.c xc/programs/Xserver/hw/xwin/winmultiwindowicons.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winmultiwindowicons.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winmultiwindowicons.c 2010-03-14 16:43:58.977654347 +0100
|
||||
@@ -31,6 +31,7 @@
|
||||
#ifdef HAVE_XWIN_CONFIG_H
|
||||
#include <xwin-config.h>
|
||||
#endif
|
||||
+#include <stdint.h>
|
||||
#include "win.h"
|
||||
#include "dixevents.h"
|
||||
#include "winmultiwindowclass.h"
|
||||
diff -urwN xc-orig/programs/Xserver/hw/xwin/winprocarg.c xc/programs/Xserver/hw/xwin/winprocarg.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winprocarg.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winprocarg.c 2010-03-14 16:56:55.234654504 +0100
|
||||
@@ -1483,7 +1483,7 @@
|
||||
|| strlen (argv[i]) > CHARS_PER_LINE)
|
||||
{
|
||||
iCurrLen = 0;
|
||||
- ++iSize;
|
||||
+ iSize += 2;
|
||||
}
|
||||
|
||||
/* Add space for item and trailing space */
|
||||
@@ -1494,7 +1494,7 @@
|
||||
}
|
||||
|
||||
/* Allocate memory for concatenated command line */
|
||||
- g_pszCommandLine = malloc (iSize + 1);
|
||||
+ g_pszCommandLine = malloc (iSize + 2);
|
||||
if (!g_pszCommandLine)
|
||||
FatalError ("winLogCommandLine - Could not allocate memory for "
|
||||
"command line string. Exiting.\n");
|
||||
@@ -1547,7 +1547,9 @@
|
||||
ErrorF ("FreeType2: %d.%d.%d\n", amajor, aminor, apatch);
|
||||
FT_Done_FreeType(library);
|
||||
ErrorF ("Contact: %s\n\n", VENDOR_CONTACT);
|
||||
- if (g_pszCommandLine) ErrorF ("%s\n\n", g_pszCommandLine);
|
||||
+ if (g_pszCommandLine)
|
||||
+ ErrorF ("%s was started with the following command line...\n"
|
||||
+ "%s\n\n", PROJECT_NAME, g_pszCommandLine);
|
||||
}
|
||||
|
||||
/*
|
||||
diff -urwN xc-orig/programs/Xserver/hw/xwin/XWin.rc xc/programs/Xserver/hw/xwin/XWin.rc
|
||||
--- xc-orig/programs/Xserver/hw/xwin/XWin.rc 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/XWin.rc 2010-03-14 16:43:58.978653706 +0100
|
||||
@@ -39,8 +39,8 @@
|
||||
#include <winver.h>
|
||||
|
||||
#include "../../../../../version.def"
|
||||
-#define XW32_VERSIONINFO_NAME "Xming\0"
|
||||
-#define XW32_VERSIONINFO_COMMENT "Xming X Server\0"
|
||||
+#define XW32_VERSIONINFO_NAME "OpenNX Xming\0"
|
||||
+#define XW32_VERSIONINFO_COMMENT "OpenNX X Server\0"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION XW32_VERSION
|
||||
@@ -59,9 +59,9 @@
|
||||
VALUE "FileVersion", XW32_VERSION_STRING
|
||||
VALUE "InternalName", XW32_VERSIONINFO_NAME
|
||||
VALUE "OriginalFilename", "Xming.exe\0"
|
||||
- VALUE "CompanyName", "Colin Harrison\0"
|
||||
+ VALUE "CompanyName", "The OpenNX Project\0"
|
||||
VALUE "LegalCopyright", "Copyright \251 2005-2007 Colin Harrison\0"
|
||||
- VALUE "Info", "http://www.StraightRunning.com/XmingNotes/\0"
|
||||
+ VALUE "Info", "http://sourceforge.net/projects/opennx/\0"
|
||||
VALUE "Comment", XW32_VERSIONINFO_COMMENT
|
||||
END
|
||||
END
|
||||
@@ -154,5 +154,4 @@
|
||||
*/
|
||||
|
||||
IDI_XWIN ICON DISCARDABLE "X.ico"
|
||||
-IDB_XWIN BITMAP "X.bmp"
|
||||
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "Xming.exe.manifest"
|
||||
diff -urwN xc-orig/programs/Xserver/miext/rootless/accel/rlAccel.c xc/programs/Xserver/miext/rootless/accel/rlAccel.c
|
||||
--- xc-orig/programs/Xserver/miext/rootless/accel/rlAccel.c 2009-03-18 18:13:47.000000000 +0100
|
||||
+++ xc/programs/Xserver/miext/rootless/accel/rlAccel.c 2010-03-14 16:43:58.979653414 +0100
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
s = xalloc(sizeof(rlAccelScreenRec));
|
||||
if (!s) return FALSE;
|
||||
- RLACCELREC(pScreen) = s;
|
||||
+ memcpy(RLACCELREC(pScreen), s, sizeof(rlAccelScreenRec));
|
||||
|
||||
// Wrap the screen functions we need
|
||||
s->CreateGC = pScreen->CreateGC;
|
||||
diff -urwN xc-orig/programs/Xserver/miext/rootless/rootlessScreen.c xc/programs/Xserver/miext/rootless/rootlessScreen.c
|
||||
--- xc-orig/programs/Xserver/miext/rootless/rootlessScreen.c 2009-03-18 18:13:47.000000000 +0100
|
||||
+++ xc/programs/Xserver/miext/rootless/rootlessScreen.c 2010-03-14 16:43:58.980653890 +0100
|
||||
@@ -568,7 +568,7 @@
|
||||
|
||||
s = xalloc(sizeof(RootlessScreenRec));
|
||||
if (! s) return FALSE;
|
||||
- SCREENREC(pScreen) = s;
|
||||
+ memcpy(SCREENREC(pScreen), s, sizeof(RootlessScreenRec));
|
||||
|
||||
s->pixmap_data = NULL;
|
||||
s->pixmap_data_size = 0;
|
||||
diff -urwN xc-orig/programs/Xserver/miext/rootless/rootlessWindow.c xc/programs/Xserver/miext/rootless/rootlessWindow.c
|
||||
--- xc-orig/programs/Xserver/miext/rootless/rootlessWindow.c 2009-03-18 18:13:47.000000000 +0100
|
||||
+++ xc/programs/Xserver/miext/rootless/rootlessWindow.c 2010-03-14 16:43:58.981653529 +0100
|
||||
@@ -66,7 +66,7 @@
|
||||
Bool result;
|
||||
RegionRec saveRoot;
|
||||
|
||||
- WINREC(pWin) = NULL;
|
||||
+ memset(WINREC(pWin), 0, sizeof(WindowRec));
|
||||
|
||||
SCREEN_UNWRAP(pWin->drawable.pScreen, CreateWindow);
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
#endif
|
||||
|
||||
xfree(winRec);
|
||||
- WINREC(pWin) = NULL;
|
||||
+ memset(WINREC(pWin), 0, sizeof(WindowRec));
|
||||
}
|
||||
|
||||
|
||||
@@ -353,7 +353,7 @@
|
||||
winRec->pixmap = NULL;
|
||||
winRec->wid = NULL;
|
||||
|
||||
- WINREC(pWin) = winRec;
|
||||
+ memcpy(WINREC(pWin), winRec, sizeof(RootlessWindowRec));
|
||||
|
||||
#ifdef SHAPE
|
||||
// Set the frame's shape if the window is shaped
|
||||
@@ -370,7 +370,7 @@
|
||||
{
|
||||
RL_DEBUG_MSG("implementation failed to create frame!\n");
|
||||
xfree(winRec);
|
||||
- WINREC(pWin) = NULL;
|
||||
+ memset(WINREC(pWin), 0, sizeof(WindowRec));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1298,8 +1298,8 @@
|
||||
|
||||
/* Switch the frame record from one to the other. */
|
||||
|
||||
- WINREC(pWin) = NULL;
|
||||
- WINREC(pTopWin) = winRec;
|
||||
+ memset(WINREC(pWin), 0, sizeof(WindowRec));
|
||||
+ memcpy(WINREC(pTopWin), winRec, sizeof(WindowRec));
|
||||
|
||||
RootlessInitializeFrame(pTopWin, winRec);
|
||||
RootlessReshapeFrame(pTopWin);
|
||||
220
packaging/win32/xming/patches/xming-clipfilter.patch
Normal file
220
packaging/win32/xming/patches/xming-clipfilter.patch
Normal file
@@ -0,0 +1,220 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboard.h xc/programs/Xserver/hw/xwin/winclipboard.h
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboard.h 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboard.h 2011-12-11 22:25:09.726239465 +0100
|
||||
@@ -72,8 +72,8 @@
|
||||
|
||||
|
||||
/* Clipboard module constants */
|
||||
-#define WIN_CLIPBOARD_WINDOW_CLASS "xwinclip"
|
||||
-#define WIN_CLIPBOARD_WINDOW_TITLE "xwinclip"
|
||||
+#define WIN_CLIPBOARD_WINDOW_CLASS "OpenNXWinClip"
|
||||
+#define WIN_CLIPBOARD_WINDOW_TITLE "OpenNXWinClip"
|
||||
#ifdef HAS_DEVWINDOWS
|
||||
# define WIN_MSG_QUEUE_FNAME "/dev/windows"
|
||||
#endif
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboardwndproc.c xc/programs/Xserver/hw/xwin/winclipboardwndproc.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboardwndproc.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboardwndproc.c 2011-12-11 22:25:09.727239465 +0100
|
||||
@@ -60,6 +60,8 @@
|
||||
/* BPS - g_hwndClipboard needed for X app->Windows paste fix */
|
||||
extern HWND g_hwndClipboard;
|
||||
|
||||
+extern int g_iClipFilter;
|
||||
+
|
||||
/*
|
||||
* Local function prototypes
|
||||
*/
|
||||
@@ -155,6 +157,7 @@
|
||||
* Windows app. TODO - Perhaps move to win.h with the other WM_USER messages.
|
||||
*/
|
||||
#define WM_USER_PASTE_COMPLETE (WM_USER + 1003)
|
||||
+#define WM_USER_SET_FILTER (WM_USER + 1004)
|
||||
|
||||
LRESULT CALLBACK
|
||||
winClipboardWindowProc (HWND hwnd, UINT message,
|
||||
@@ -166,6 +169,12 @@
|
||||
/* Branch on message type */
|
||||
switch (message)
|
||||
{
|
||||
+ case WM_USER_SET_FILTER:
|
||||
+ if ((0 < wParam) && (4 > wParam)) {
|
||||
+ g_iClipFilter = (int)wParam;
|
||||
+ ErrorF ("Setting ClipFilter to %d\n", g_iClipFilter);
|
||||
+ }
|
||||
+ return 0;
|
||||
case WM_DESTROY:
|
||||
{
|
||||
winDebug ("winClipboardWindowProc - WM_DESTROY\n");
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboardwrappers.c xc/programs/Xserver/hw/xwin/winclipboardwrappers.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboardwrappers.c 2011-12-11 02:06:30.189499447 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboardwrappers.c 2011-12-11 22:25:09.728239464 +0100
|
||||
@@ -74,6 +74,7 @@
|
||||
extern winDispatchProcPtr winProcQueryTreeOrig;
|
||||
extern winDispatchProcPtr winProcSetSelectionOwnerOrig;
|
||||
|
||||
+extern int g_iClipFilter;
|
||||
|
||||
/*
|
||||
* Wrapper for internal QueryTree function.
|
||||
@@ -530,7 +531,21 @@
|
||||
SetClipboardData (CF_TEXT, NULL);
|
||||
|
||||
/* Save handle to last owned selection */
|
||||
+ switch (g_iClipFilter) {
|
||||
+ case CLIPFILTER_PRIMARY:
|
||||
+ if (XA_PRIMARY == stuff->selection) {
|
||||
g_atomLastOwnedSelection = stuff->selection;
|
||||
+ }
|
||||
+ break;
|
||||
+ case CLIPFILTER_CLIPBOARD:
|
||||
+ if (MakeAtom ("CLIPBOARD", 9, TRUE) == stuff->selection) {
|
||||
+ g_atomLastOwnedSelection = stuff->selection;
|
||||
+ }
|
||||
+ break;
|
||||
+ case CLIPFILTER_BOTH:
|
||||
+ g_atomLastOwnedSelection = stuff->selection;
|
||||
+ break;
|
||||
+ }
|
||||
|
||||
/* Release the clipboard */
|
||||
if (!CloseClipboard ())
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboardxevents.c xc/programs/Xserver/hw/xwin/winclipboardxevents.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboardxevents.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboardxevents.c 2011-12-11 22:25:09.730239464 +0100
|
||||
@@ -33,6 +33,8 @@
|
||||
#endif
|
||||
#include "winclipboard.h"
|
||||
|
||||
+#define CLPDEBUG 0
|
||||
+
|
||||
|
||||
/*
|
||||
* References to external symbols
|
||||
@@ -100,7 +102,7 @@
|
||||
*/
|
||||
|
||||
case SelectionRequest:
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
{
|
||||
char *pszAtomName = NULL;
|
||||
|
||||
@@ -445,7 +447,7 @@
|
||||
*/
|
||||
|
||||
case SelectionNotify:
|
||||
-#if 0
|
||||
+#if 1
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionNotify\n");
|
||||
{
|
||||
char *pszAtomName;
|
||||
@@ -468,7 +470,7 @@
|
||||
{
|
||||
if (event.xselection.target == XA_STRING)
|
||||
{
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
|
||||
"XA_STRING\n");
|
||||
#endif
|
||||
@@ -476,7 +478,7 @@
|
||||
}
|
||||
else if (event.xselection.target == atomUTF8String)
|
||||
{
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
|
||||
"Requesting conversion of UTF8 target.\n");
|
||||
#endif
|
||||
@@ -502,7 +504,7 @@
|
||||
#ifdef X_HAVE_UTF8_STRING
|
||||
else if (event.xselection.target == atomCompoundText)
|
||||
{
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionNotify - "
|
||||
"Requesting conversion of CompoundText target.\n");
|
||||
#endif
|
||||
@@ -556,7 +558,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
ErrorF ("SelectionNotify - returned data %d left %d\n",
|
||||
xtpText.nitems, ulReturnBytesLeft);
|
||||
#endif
|
||||
@@ -582,7 +584,7 @@
|
||||
break;
|
||||
}
|
||||
|
||||
-#if 0
|
||||
+#if CLPDEBUG
|
||||
{
|
||||
char *pszAtomName = NULL;
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winglobals.c xc/programs/Xserver/hw/xwin/winglobals.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winglobals.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winglobals.c 2011-12-11 22:25:09.731239464 +0100
|
||||
@@ -115,6 +115,7 @@
|
||||
void *g_pClipboardDisplay = NULL;
|
||||
Window g_iClipboardWindow = None;
|
||||
Atom g_atomLastOwnedSelection = None;
|
||||
+int g_iClipFilter = CLIPFILTER_BOTH;
|
||||
#endif
|
||||
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/win.h xc/programs/Xserver/hw/xwin/win.h
|
||||
--- xc-orig/programs/Xserver/hw/xwin/win.h 2011-12-11 02:06:30.192499447 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/win.h 2011-12-11 22:25:09.733239464 +0100
|
||||
@@ -808,6 +808,10 @@
|
||||
|
||||
void
|
||||
winFixClipboardChain (void);
|
||||
+
|
||||
+# define CLIPFILTER_PRIMARY 1
|
||||
+# define CLIPFILTER_CLIPBOARD 2
|
||||
+# define CLIPFILTER_BOTH 3
|
||||
#endif
|
||||
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winprocarg.c xc/programs/Xserver/hw/xwin/winprocarg.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winprocarg.c 2011-12-11 02:06:30.194499447 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winprocarg.c 2011-12-12 12:29:43.119998361 +0100
|
||||
@@ -50,6 +50,7 @@
|
||||
#ifdef XWIN_CLIPBOARD
|
||||
extern Bool g_fUnicodeClipboard;
|
||||
extern Bool g_fClipboard;
|
||||
+extern int g_iClipFilter;
|
||||
#endif
|
||||
extern int g_iLogVerbose;
|
||||
extern char * g_pszLogFile;
|
||||
@@ -917,9 +918,27 @@
|
||||
if (IS_OPTION ("-clipboard"))
|
||||
{
|
||||
g_fClipboard = TRUE;
|
||||
+ int iArgsProcessed = 1;
|
||||
|
||||
+ /* Grab the optional filter value */
|
||||
+ if (i + 1 < argc) {
|
||||
+ iArgsProcessed++;
|
||||
+ sscanf (argv[i + 1], "%d", &g_iClipFilter);
|
||||
+ if ((CLIPFILTER_PRIMARY > g_iClipFilter) || (CLIPFILTER_BOTH < g_iClipFilter)) {
|
||||
+ g_iClipFilter = CLIPFILTER_BOTH;
|
||||
+ }
|
||||
+ if (0 == strcmp(argv[i + 1], "primary")) {
|
||||
+ g_iClipFilter = CLIPFILTER_PRIMARY;
|
||||
+ }
|
||||
+ if (0 == strcmp(argv[i + 1], "clipboard")) {
|
||||
+ g_iClipFilter = CLIPFILTER_CLIPBOARD;
|
||||
+ }
|
||||
+ if (0 == strcmp(argv[i + 1], "both")) {
|
||||
+ g_iClipFilter = CLIPFILTER_BOTH;
|
||||
+ }
|
||||
+ }
|
||||
/* Indicate that we have processed this argument */
|
||||
- return 1;
|
||||
+ return iArgsProcessed;
|
||||
}
|
||||
#endif
|
||||
|
||||
70
packaging/win32/xming/patches/xming-envbasedir.patch
Normal file
70
packaging/win32/xming/patches/xming-envbasedir.patch
Normal file
@@ -0,0 +1,70 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitOutput.c xc/programs/Xserver/hw/xwin/InitOutput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitOutput.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitOutput.c 2010-02-23 01:08:11.897702327 +0100
|
||||
@@ -130,7 +130,7 @@
|
||||
|
||||
#ifdef RELOCATE_PROJECTROOT
|
||||
const char *
|
||||
-winGetBaseDir(void);
|
||||
+winGetBaseDir(int getreal);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -384,17 +384,26 @@
|
||||
|
||||
#ifdef RELOCATE_PROJECTROOT
|
||||
const char *
|
||||
-winGetBaseDir(void)
|
||||
+winGetBaseDir(int getreal)
|
||||
{
|
||||
static BOOL inited = FALSE;
|
||||
static char buffer[MAX_PATH];
|
||||
+ static char buffer2[MAX_PATH];
|
||||
if (!inited)
|
||||
{
|
||||
char *fendptr;
|
||||
+ DWORD size = 0;
|
||||
+ buffer[0] = '\0';
|
||||
+ if (NULL != getenv("XMING_BASEDIR"))
|
||||
+ strncpy(buffer2, getenv("XMING_BASEDIR"), sizeof(buffer2));
|
||||
+ if ('\0' == buffer[0]) {
|
||||
HMODULE module = GetModuleHandle(NULL);
|
||||
- DWORD size = GetModuleFileName(module, buffer, sizeof(buffer));
|
||||
- if (sizeof(buffer) > 0)
|
||||
- buffer[sizeof(buffer)-1] = 0;
|
||||
+ size = GetModuleFileName(module, buffer, sizeof(buffer));
|
||||
+ }
|
||||
+ if (0 < sizeof(buffer))
|
||||
+ buffer[sizeof(buffer)-1] = '\0';
|
||||
+ if (0 < sizeof(buffer2))
|
||||
+ buffer2[sizeof(buffer2)-1] = '\0';
|
||||
|
||||
fendptr = buffer + size;
|
||||
while (fendptr > buffer)
|
||||
@@ -408,7 +417,7 @@
|
||||
}
|
||||
inited = TRUE;
|
||||
}
|
||||
- return buffer;
|
||||
+ return getreal ? buffer : buffer2;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -418,7 +427,7 @@
|
||||
BOOL changed_fontpath = FALSE;
|
||||
MessageType font_from = X_DEFAULT;
|
||||
#ifdef RELOCATE_PROJECTROOT
|
||||
- const char *basedir = winGetBaseDir();
|
||||
+ const char *basedir = winGetBaseDir(0);
|
||||
size_t basedirlen = strlen(basedir);
|
||||
#endif
|
||||
|
||||
@@ -724,7 +733,7 @@
|
||||
if (sizeof(xkbbasedir) > 0)
|
||||
xkbbasedir[sizeof(xkbbasedir)-1] = 0;
|
||||
XkbBaseDirectory = xkbbasedir;
|
||||
- XkbBinDirectory = basedir;
|
||||
+ XkbBinDirectory = winGetBaseDir(1);
|
||||
}
|
||||
#endif /* XKB */
|
||||
#endif /* RELOCATE_PROJECTROOT */
|
||||
185
packaging/win32/xming/patches/xming-kbhook.patch
Normal file
185
packaging/win32/xming/patches/xming-kbhook.patch
Normal file
@@ -0,0 +1,185 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/win.h xc/programs/Xserver/hw/xwin/win.h
|
||||
--- xc-orig/programs/Xserver/hw/xwin/win.h 2012-02-22 02:29:25.022775626 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/win.h 2012-02-22 04:33:57.949268146 +0100
|
||||
@@ -448,6 +448,7 @@
|
||||
/* Did the user requested to nitially hide our window? */
|
||||
Bool fHideInitial;
|
||||
DWORD origShowWindowMode;
|
||||
+ Bool fGrabKeyboard;
|
||||
} winScreenInfo, *winScreenInfoPtr;
|
||||
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winkeyhook.c xc/programs/Xserver/hw/xwin/winkeyhook.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winkeyhook.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winkeyhook.c 2012-02-22 04:35:47.073275339 +0100
|
||||
@@ -85,8 +85,7 @@
|
||||
/* Get pointers to our screen privates and screen info */
|
||||
pScreenPriv = pWinPriv->pScreenPriv;
|
||||
pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
-
|
||||
- if (pScreenInfo->fMultiWindow)
|
||||
+ if (!pScreenInfo->fGrabKeyboard)
|
||||
fPassAltTab = FALSE;
|
||||
}
|
||||
#endif
|
||||
@@ -171,11 +170,13 @@
|
||||
}
|
||||
|
||||
/* Install the hook only once */
|
||||
- if (!g_hhookKeyboardLL)
|
||||
+ if (!g_hhookKeyboardLL) {
|
||||
g_hhookKeyboardLL = SetWindowsHookEx (WH_KEYBOARD_LL,
|
||||
winKeyboardMessageHookLL,
|
||||
g_hInstance,
|
||||
0);
|
||||
+ ErrorF ("Installing keyboard hook %s\n", ((g_hhookKeyboardLL) ? "ok" : "failed"));;
|
||||
+ }
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -188,7 +189,9 @@
|
||||
void
|
||||
winRemoveKeyboardHookLL ()
|
||||
{
|
||||
- if (g_hhookKeyboardLL)
|
||||
+ if (g_hhookKeyboardLL) {
|
||||
UnhookWindowsHookEx (g_hhookKeyboardLL);
|
||||
+ ErrorF ("Uninstalled keyboard hook\n");
|
||||
+ }
|
||||
g_hhookKeyboardLL = NULL;
|
||||
}
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winprefs.c xc/programs/Xserver/hw/xwin/winprefs.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winprefs.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winprefs.c 2012-02-22 04:33:58.316268169 +0100
|
||||
@@ -48,6 +48,8 @@
|
||||
/* Where will the custom menu commands start counting from? */
|
||||
#define STARTMENUID WM_USER
|
||||
|
||||
+#define ID_TOGGLE_KBGRAB STARTMENUID
|
||||
+
|
||||
/* External global variables */
|
||||
#ifdef XWIN_MULTIWINDOW
|
||||
extern DWORD g_dwCurrentThreadID;
|
||||
@@ -66,12 +68,14 @@
|
||||
extern HICON g_hSmallIconX;
|
||||
|
||||
/* Currently in use command ID, incremented each new menu item created */
|
||||
-static int g_cmdid = STARTMENUID;
|
||||
+static int g_cmdid = STARTMENUID + 10;
|
||||
|
||||
|
||||
/* Defined in DIX */
|
||||
extern char *display;
|
||||
|
||||
+extern Bool g_fKeyboardHookLL;
|
||||
+
|
||||
/* Local function to handle comma-ified icon names */
|
||||
static HICON
|
||||
LoadImageComma (char *fname, int sx, int sy, int flags);
|
||||
@@ -276,7 +280,7 @@
|
||||
DestroyIcon (g_hSmallIconX);
|
||||
|
||||
/* Reset the custom command IDs */
|
||||
- g_cmdid = STARTMENUID;
|
||||
+ g_cmdid = STARTMENUID + 10;
|
||||
|
||||
/* Load the updated resource file */
|
||||
LoadPreferences();
|
||||
@@ -323,6 +327,18 @@
|
||||
if (pref.menu[i].menuItem[j].cmd==CMD_ALWAYSONTOP)
|
||||
CheckMenuItem (hmenu, pref.menu[i].menuItem[j].commandID, dwExStyle );
|
||||
|
||||
+ if (hwnd && g_fKeyboardHookLL) {
|
||||
+ WindowPtr pWin = GetProp (hwnd, WIN_WINDOW_PROP);
|
||||
+ winPrivWinPtr pWinPriv = winGetWindowPriv(pWin);
|
||||
+ /* Get pointers to our screen privates and screen info */
|
||||
+ winPrivScreenPtr pScreenPriv = pWinPriv->pScreenPriv;
|
||||
+ winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
+ if (pScreenInfo->fGrabKeyboard)
|
||||
+ dwExStyle = MF_BYCOMMAND | MF_CHECKED;
|
||||
+ else
|
||||
+ dwExStyle = MF_BYCOMMAND | MF_UNCHECKED;
|
||||
+ CheckMenuItem (hmenu, ID_TOGGLE_KBGRAB, dwExStyle );
|
||||
+ }
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -343,6 +359,18 @@
|
||||
if (!command)
|
||||
return FALSE;
|
||||
|
||||
+ if (command == ID_TOGGLE_KBGRAB) {
|
||||
+ if (hwnd) {
|
||||
+ WindowPtr pWin = GetProp (hwnd, WIN_WINDOW_PROP);
|
||||
+ winPrivWinPtr pWinPriv = winGetWindowPriv(pWin);
|
||||
+ /* Get pointers to our screen privates and screen info */
|
||||
+ winPrivScreenPtr pScreenPriv = pWinPriv->pScreenPriv;
|
||||
+ winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
+ pScreenInfo->fGrabKeyboard = !pScreenInfo->fGrabKeyboard;
|
||||
+ }
|
||||
+ return TRUE;
|
||||
+ }
|
||||
+
|
||||
for (i=0; i<pref.menuItems; i++)
|
||||
{
|
||||
m = &(pref.menu[i]);
|
||||
@@ -447,6 +475,7 @@
|
||||
|
||||
|
||||
#ifdef XWIN_MULTIWINDOW
|
||||
+
|
||||
/*
|
||||
* Add the default or a custom menu depending on the class match
|
||||
*/
|
||||
@@ -492,6 +521,12 @@
|
||||
free(res_name);
|
||||
free(res_class);
|
||||
} /* Found wm_class */
|
||||
+
|
||||
+ /* Our internal hardcoded stuff .. */
|
||||
+ if (g_fKeyboardHookLL) {
|
||||
+ InsertMenu (sys, 0, MF_BYPOSITION|MF_ENABLED|MF_STRING,
|
||||
+ ID_TOGGLE_KBGRAB, "Grab Alt-TAB");
|
||||
+ }
|
||||
} /* if pwin */
|
||||
|
||||
/* Fallback to system default */
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winscrinit.c xc/programs/Xserver/hw/xwin/winscrinit.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winscrinit.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winscrinit.c 2012-02-22 04:33:58.316268169 +0100
|
||||
@@ -77,6 +77,7 @@
|
||||
extern miPointerScreenFuncRec g_winPointerCursorFuncs;
|
||||
extern int g_iScreenPrivateIndex;
|
||||
extern Bool g_fSoftwareCursor;
|
||||
+extern Bool g_fKeyboardHookLL;
|
||||
|
||||
|
||||
/*
|
||||
@@ -229,6 +230,7 @@
|
||||
pScreenInfo->dwPaddedWidth = PixmapBytePad (pScreenInfo->dwWidth,
|
||||
pScreenInfo->dwBPP);
|
||||
|
||||
+ pScreenInfo->fGrabKeyboard = g_fKeyboardHookLL;
|
||||
/* Call the engine dependent screen initialization procedure */
|
||||
if (!((*pScreenPriv->pwinFinishScreenInit) (index, pScreen, argc, argv)))
|
||||
{
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitInput.c xc/programs/Xserver/hw/xwin/InitInput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitInput.c 2012-03-19 16:31:21.080040361 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitInput.c 2012-03-19 16:33:36.773034311 +0100
|
||||
@@ -72,6 +72,7 @@
|
||||
#ifdef XKB
|
||||
void XkbSetExtension(DeviceIntPtr device, ProcessInputProc proc);
|
||||
#endif
|
||||
+extern Bool g_fKeyboardHookLL;
|
||||
|
||||
static void
|
||||
winRegisterPointerDevice(DeviceIntPtr device)
|
||||
@@ -190,6 +191,8 @@
|
||||
SetForegroundWindow(hwnd);
|
||||
LockSetForegroundWindow(LSFW_LOCK);
|
||||
SetFocus(hwnd);
|
||||
+ if (g_fKeyboardHookLL)
|
||||
+ g_fKeyboardHookLL = winInstallKeyboardHookLL ();
|
||||
}
|
||||
}
|
||||
}
|
||||
99
packaging/win32/xming/patches/xming-kioskhack.patch
Normal file
99
packaging/win32/xming/patches/xming-kioskhack.patch
Normal file
@@ -0,0 +1,99 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitOutput.c xc/programs/Xserver/hw/xwin/InitOutput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitOutput.c 2012-03-16 14:45:50.640342810 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitOutput.c 2012-03-16 16:11:04.331114818 +0100
|
||||
@@ -97,6 +97,7 @@
|
||||
extern FARPROC g_fpTrackMouseEvent;
|
||||
extern Bool g_fNoHelpMessageBox;
|
||||
extern Bool g_fSilentDupError;
|
||||
+extern int g_iKioskX;
|
||||
|
||||
|
||||
/*
|
||||
@@ -797,6 +798,10 @@
|
||||
/* We have to flag this as an explicit screen, even though it isn't */
|
||||
g_ScreenInfo[0].fExplicitScreen = TRUE;
|
||||
}
|
||||
+ if (getenv("NX_KIOSK_X") != NULL)
|
||||
+ {
|
||||
+ g_iKioskX = atoi(getenv("NX_KIOSK_X"));
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winglobals.c xc/programs/Xserver/hw/xwin/winglobals.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winglobals.c 2012-03-16 14:45:50.650342808 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winglobals.c 2012-03-16 16:11:04.332114818 +0100
|
||||
@@ -79,6 +79,7 @@
|
||||
Bool g_fSilentDupError = FALSE;
|
||||
Bool g_fNoIcons = FALSE;
|
||||
|
||||
+int g_iKioskX = 0;
|
||||
|
||||
/*
|
||||
* Global variables for dynamically loaded libraries and
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/win.h xc/programs/Xserver/hw/xwin/win.h
|
||||
--- xc-orig/programs/Xserver/hw/xwin/win.h 2012-03-16 14:45:50.653342808 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/win.h 2012-03-16 16:11:04.334114818 +0100
|
||||
@@ -206,6 +206,9 @@
|
||||
#define WM_TRAYICON (WM_USER + 1000)
|
||||
#define WM_INIT_SYS_MENU (WM_USER + 1001)
|
||||
#define WM_GIVEUP (WM_USER + 1002)
|
||||
+/* defined in winclipboardwndproc.c #define WM_USER_PASTE_COMPLETE (WM_USER + 1003) */
|
||||
+/* defined in winclipboardwndproc.c #define WM_USER_SET_FILTER (WM_USER + 1004) */
|
||||
+#define WM_USER_SET_KIOSK (WM_USER + 1005)
|
||||
|
||||
|
||||
/* Local includes */
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winmouse.c xc/programs/Xserver/hw/xwin/winmouse.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winmouse.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winmouse.c 2012-03-16 16:11:04.335114818 +0100
|
||||
@@ -218,11 +218,26 @@
|
||||
* Enqueue a mouse button event
|
||||
*/
|
||||
|
||||
+extern winScreenInfo g_ScreenInfo[];
|
||||
+extern int g_iLastScreen;
|
||||
+extern int g_iKioskX;
|
||||
+
|
||||
void
|
||||
winMouseButtonsSendEvent (int iEventType, int iButton)
|
||||
{
|
||||
xEvent xCurrentEvent;
|
||||
|
||||
+ if (g_iKioskX) {
|
||||
+ int FS = (-1 == g_iLastScreen) ? g_ScreenInfo[0].fFullScreen : g_ScreenInfo[g_iLastScreen].fFullScreen;
|
||||
+ if (FS) {
|
||||
+ int x = -1;
|
||||
+ int y = -1;
|
||||
+ miPointerPosition(&x, &y);
|
||||
+ if ((0 == y) && ((g_iKioskX - 1) == x))
|
||||
+ return;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
/* Load an xEvent and enqueue the event */
|
||||
xCurrentEvent.u.u.type = iEventType;
|
||||
#if defined(XFree86Server) && defined(XINPUT)
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winwndproc.c xc/programs/Xserver/hw/xwin/winwndproc.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winwndproc.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winwndproc.c 2012-03-16 16:12:07.167112017 +0100
|
||||
@@ -66,6 +66,7 @@
|
||||
extern HWND g_hwndKeyboardFocus;
|
||||
extern Bool g_fSoftwareCursor;
|
||||
extern DWORD g_dwCurrentThreadID;
|
||||
+extern int g_iKioskX;
|
||||
|
||||
|
||||
/*
|
||||
@@ -1234,6 +1235,11 @@
|
||||
}
|
||||
break;
|
||||
|
||||
+ case WM_USER_SET_KIOSK:
|
||||
+ g_iKioskX = (int)wParam;
|
||||
+ ErrorF ("Setting Kiosk X to %d\n", g_iKioskX);
|
||||
+ return 0;
|
||||
+
|
||||
case WM_ENDSESSION:
|
||||
case WM_GIVEUP:
|
||||
/* Delete the tray Icon */
|
||||
34
packaging/win32/xming/patches/xming-logdebug.patch
Normal file
34
packaging/win32/xming/patches/xming-logdebug.patch
Normal file
@@ -0,0 +1,34 @@
|
||||
diff -urw xc-orig/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile
|
||||
--- xc-orig/programs/Xserver/Imakefile 2011-12-11 01:39:54.142570606 +0100
|
||||
+++ xc/programs/Xserver/Imakefile 2011-12-11 01:50:12.251543048 +0100
|
||||
@@ -1046,7 +1046,7 @@
|
||||
# if defined(GlxUseWindows) && GlxUseWindows
|
||||
XWINGL32 = -lopengl32
|
||||
# endif
|
||||
-XWINW32 = -luser32 -lgdi32 -lws2_32 $(XWINGL32) $(PTHREADLIB)
|
||||
+XWINW32 = -lkernel32 -luser32 -lgdi32 -lws2_32 $(XWINGL32) $(PTHREADLIB)
|
||||
#else
|
||||
XWINW32 = -luser32 -lgdi32
|
||||
#endif
|
||||
diff -urw xc-orig/programs/Xserver/os/log.c xc/programs/Xserver/os/log.c
|
||||
--- xc-orig/programs/Xserver/os/log.c 2009-03-18 18:13:46.000000000 +0100
|
||||
+++ xc/programs/Xserver/os/log.c 2011-12-11 01:56:18.599526714 +0100
|
||||
@@ -95,6 +95,7 @@
|
||||
|
||||
#ifdef WIN32
|
||||
#include <process.h>
|
||||
+#include <windows.h>
|
||||
#define getpid(x) _getpid(x)
|
||||
#endif
|
||||
|
||||
@@ -270,6 +271,10 @@
|
||||
if ((verb < 0 || logVerbosity >= verb) && len > 0)
|
||||
fwrite(tmpBuffer, len, 1, stderr);
|
||||
if ((verb < 0 || logFileVerbosity >= verb) && len > 0) {
|
||||
+#ifdef WIN32
|
||||
+ // Copy everything to windows debug buffer
|
||||
+ OutputDebugStringA(tmpBuffer);
|
||||
+#endif
|
||||
if (logFile) {
|
||||
fwrite(tmpBuffer, len, 1, logFile);
|
||||
if (logFlush) {
|
||||
29
packaging/win32/xming/patches/xming-mutex.patch
Normal file
29
packaging/win32/xming/patches/xming-mutex.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitOutput.c xc/programs/Xserver/hw/xwin/InitOutput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitOutput.c 2010-02-26 01:08:16.471542311 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitOutput.c 2010-02-26 01:25:24.370543791 +0100
|
||||
@@ -1180,8 +1180,10 @@
|
||||
winCheckDisplayNumber ()
|
||||
{
|
||||
int nDisp;
|
||||
+ int i;
|
||||
HANDLE mutex;
|
||||
char name[MAX_PATH];
|
||||
+ char * fs = "";
|
||||
char * pszPrefix = '\0';
|
||||
OSVERSIONINFO osvi = {0};
|
||||
|
||||
@@ -1207,8 +1209,13 @@
|
||||
pszPrefix = "Global\\";
|
||||
}
|
||||
|
||||
+ for (i = 0; i < g_iNumScreens; ++i)
|
||||
+ if (g_ScreenInfo[i].fFullScreen) {
|
||||
+ fs = "FS";
|
||||
+ break;
|
||||
+ }
|
||||
/* Setup Cygwin/X specific part of name */
|
||||
- snprintf (name, sizeof(name), "%sCYGWINX_DISPLAY:%d", pszPrefix, nDisp);
|
||||
+ snprintf (name, sizeof(name), "%sXMING_DISPLAY%s:%d", pszPrefix, fs, nDisp);
|
||||
|
||||
/* Windows automatically releases the mutex when this process exits */
|
||||
mutex = CreateMutex (NULL, FALSE, name);
|
||||
254
packaging/win32/xming/patches/xming-optionhide.patch
Normal file
254
packaging/win32/xming/patches/xming-optionhide.patch
Normal file
@@ -0,0 +1,254 @@
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitInput.c xc/programs/Xserver/hw/xwin/InitInput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitInput.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitInput.c 2010-02-23 03:52:52.416690572 +0100
|
||||
@@ -42,8 +42,8 @@
|
||||
* Local function prototypes
|
||||
*/
|
||||
|
||||
-#ifdef XWIN_CLIPBOARD
|
||||
DISPATCH_PROC(winProcEstablishConnection);
|
||||
+#ifdef XWIN_CLIPBOARD
|
||||
DISPATCH_PROC(winProcQueryTree);
|
||||
DISPATCH_PROC(winProcSetSelectionOwner);
|
||||
#endif
|
||||
@@ -60,12 +60,13 @@
|
||||
* References to external symbols
|
||||
*/
|
||||
|
||||
+extern int g_iNumScreens;
|
||||
#ifdef HAS_DEVWINDOWS
|
||||
extern int g_fdMessageQueue;
|
||||
#endif
|
||||
extern Bool g_fXdmcpEnabled;
|
||||
-#ifdef XWIN_CLIPBOARD
|
||||
extern winDispatchProcPtr winProcEstablishConnectionOrig;
|
||||
+#ifdef XWIN_CLIPBOARD
|
||||
extern winDispatchProcPtr winProcQueryTreeOrig;
|
||||
#endif
|
||||
#ifdef XKB
|
||||
@@ -176,6 +177,41 @@
|
||||
}
|
||||
|
||||
|
||||
+void
|
||||
+winDelayedShowWindow()
|
||||
+{
|
||||
+ int i;
|
||||
+ ErrorF ("winDelayedShowWindow\n");
|
||||
+ for (i = 0; i < g_iNumScreens; ++i) {
|
||||
+ if ((g_ScreenInfo[i].pScreen) && g_ScreenInfo[i].fHideInitial) {
|
||||
+ HWND hwnd = (winGetScreenPriv(g_ScreenInfo[i].pScreen))->hwndScreen;
|
||||
+ ErrorF ("winDelayedShowWindow FG %d\n", i);
|
||||
+ ShowWindow(hwnd, g_ScreenInfo[i].origShowWindowMode);
|
||||
+ SetForegroundWindow(hwnd);
|
||||
+ LockSetForegroundWindow(LSFW_LOCK);
|
||||
+ SetFocus(hwnd);
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+#ifndef XWIN_CLIPBOARD
|
||||
+int
|
||||
+winProcEstablishConnection (ClientPtr client)
|
||||
+{
|
||||
+ int ret;
|
||||
+
|
||||
+ ErrorF ("winProcEstablishConnection - Hello\n");
|
||||
+
|
||||
+ winDelayedShowWindow();
|
||||
+
|
||||
+ /* Unwrap the original function, call it, and return */
|
||||
+ InitialVector[2] = winProcEstablishConnectionOrig;
|
||||
+ ret = (*winProcEstablishConnectionOrig) (client);
|
||||
+ winProcEstablishConnectionOrig = NULL;
|
||||
+ return ret;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
/* See Porting Layer Definition - p. 17 */
|
||||
void
|
||||
InitInput (int argc, char *argv[])
|
||||
@@ -186,7 +222,6 @@
|
||||
winDebug ("InitInput\n");
|
||||
#endif
|
||||
|
||||
-#ifdef XWIN_CLIPBOARD
|
||||
/*
|
||||
* Wrap some functions at every generation of the server.
|
||||
*/
|
||||
@@ -195,6 +230,7 @@
|
||||
winProcEstablishConnectionOrig = InitialVector[2];
|
||||
InitialVector[2] = winProcEstablishConnection;
|
||||
}
|
||||
+#ifdef XWIN_CLIPBOARD
|
||||
if (g_fXdmcpEnabled
|
||||
&& ProcVector[X_QueryTree] != winProcQueryTree)
|
||||
{
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/InitOutput.c xc/programs/Xserver/hw/xwin/InitOutput.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/InitOutput.c 2010-02-23 03:37:20.167701044 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/InitOutput.c 2010-02-23 03:51:21.386686516 +0100
|
||||
@@ -856,6 +856,10 @@
|
||||
"\tEXPERIMENTAL: Run the internal window manager.\n");
|
||||
#endif
|
||||
|
||||
+ ErrorF ("-hide\n"
|
||||
+ "\tInitially hide root window, then show it on first X11 client connect.\n"
|
||||
+ "\tUsed only in fullscreen and windowed mode.\n");
|
||||
+
|
||||
ErrorF ("-[no]keyhook\n"
|
||||
"\tGrab special windows key combinations like Alt-Tab or the Menu\n"
|
||||
"\tkey. These keys are discarded by default.\n");
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboardwrappers.c xc/programs/Xserver/hw/xwin/winclipboardwrappers.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboardwrappers.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboardwrappers.c 2010-02-23 03:51:21.387687551 +0100
|
||||
@@ -177,6 +177,8 @@
|
||||
* an external client has connected.
|
||||
*/
|
||||
|
||||
+extern void winDelayedShowWindow();
|
||||
+
|
||||
int
|
||||
winProcEstablishConnection (ClientPtr client)
|
||||
{
|
||||
@@ -186,6 +188,8 @@
|
||||
|
||||
ErrorF ("winProcEstablishConnection - Hello\n");
|
||||
|
||||
+ winDelayedShowWindow();
|
||||
+
|
||||
/* Do nothing if clipboard is not enabled */
|
||||
if (!g_fClipboard)
|
||||
{
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/wincreatewnd.c xc/programs/Xserver/hw/xwin/wincreatewnd.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/wincreatewnd.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/wincreatewnd.c 2010-02-23 03:51:21.388687818 +0100
|
||||
@@ -120,13 +120,15 @@
|
||||
#ifdef XWIN_NATIVEGDI
|
||||
case WIN_SERVER_SHADOW_GDI:
|
||||
/* Show the window */
|
||||
- ShowWindow (*phwnd, SW_SHOWMAXIMIZED);
|
||||
+ ShowWindow (*phwnd, pScreenInfo->fHideInitial ? SW_HIDE : SW_SHOWMAXIMIZED);
|
||||
+ pScreenInfo->origShowWindowMode = SW_SHOWMAXIMIZED;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
/* Hide the window */
|
||||
- ShowWindow (*phwnd, SW_SHOWNORMAL);
|
||||
+ ShowWindow (*phwnd, pScreenInfo->fHideInitial ? SW_HIDE : SW_SHOWNORMAL);
|
||||
+ pScreenInfo->origShowWindowMode = SW_SHOWNORMAL;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -134,6 +136,7 @@
|
||||
UpdateWindow (*phwnd);
|
||||
|
||||
/* Attempt to bring our window to the top of the display */
|
||||
+ if (!pScreenInfo->fHideInitial)
|
||||
BringWindowToTop (*phwnd);
|
||||
|
||||
return TRUE;
|
||||
@@ -373,7 +376,8 @@
|
||||
if (fForceShowWindow)
|
||||
{
|
||||
ErrorF("winCreateBoundingWindowWindowed - Setting normal windowstyle\n");
|
||||
- ShowWindow(*phwnd, SW_SHOW);
|
||||
+ ShowWindow(*phwnd, pScreenInfo->fHideInitial ? SW_HIDE : SW_SHOW);
|
||||
+ pScreenInfo->origShowWindowMode = SW_SHOW;
|
||||
}
|
||||
|
||||
/* Get the client area coordinates */
|
||||
@@ -468,8 +472,10 @@
|
||||
#endif
|
||||
ShowWindow (*phwnd, SW_HIDE);
|
||||
}
|
||||
- else
|
||||
- ShowWindow (*phwnd, SW_SHOWNORMAL);
|
||||
+ else {
|
||||
+ ShowWindow(*phwnd, pScreenInfo->fHideInitial ? SW_HIDE : SW_SHOWNORMAL);
|
||||
+ pScreenInfo->origShowWindowMode = SW_SHOWNORMAL;
|
||||
+ }
|
||||
if (!UpdateWindow (*phwnd))
|
||||
{
|
||||
ErrorF ("winCreateBoundingWindowWindowed - UpdateWindow () failed\n");
|
||||
@@ -485,6 +491,7 @@
|
||||
#ifdef XWIN_MULTIWINDOW
|
||||
&& !pScreenInfo->fMultiWindow
|
||||
#endif
|
||||
+ && !pScreenInfo->fHideInitial
|
||||
)
|
||||
{
|
||||
if (!BringWindowToTop (*phwnd))
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/win.h xc/programs/Xserver/hw/xwin/win.h
|
||||
--- xc-orig/programs/Xserver/hw/xwin/win.h 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/win.h 2010-02-23 03:51:21.388687818 +0100
|
||||
@@ -444,6 +444,10 @@
|
||||
|
||||
/* Did the user explicitly set this screen? */
|
||||
Bool fExplicitScreen;
|
||||
+
|
||||
+ /* Did the user requested to nitially hide our window? */
|
||||
+ Bool fHideInitial;
|
||||
+ DWORD origShowWindowMode;
|
||||
} winScreenInfo, *winScreenInfoPtr;
|
||||
|
||||
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winprocarg.c xc/programs/Xserver/hw/xwin/winprocarg.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winprocarg.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winprocarg.c 2010-02-23 03:51:21.389687596 +0100
|
||||
@@ -209,6 +209,7 @@
|
||||
g_ScreenInfo[i].fUseUnixKillKey = WIN_DEFAULT_UNIX_KILL;
|
||||
g_ScreenInfo[i].fIgnoreInput = FALSE;
|
||||
g_ScreenInfo[i].fExplicitScreen = FALSE;
|
||||
+ g_ScreenInfo[i].fHideInitial = FALSE;
|
||||
}
|
||||
|
||||
/* Signal that the default screens have been initialized */
|
||||
@@ -597,6 +598,32 @@
|
||||
}
|
||||
|
||||
/*
|
||||
+ * Look for the '-hide' argument
|
||||
+ */
|
||||
+ if (IS_OPTION ("-hide"))
|
||||
+ {
|
||||
+ /* Is this parameter attached to a screen or is it global? */
|
||||
+ if (-1 == g_iLastScreen)
|
||||
+ {
|
||||
+ int j;
|
||||
+
|
||||
+ /* Parameter is for all screens */
|
||||
+ for (j = 0; j < MAXSCREENS; j++)
|
||||
+ {
|
||||
+ g_ScreenInfo[j].fHideInitial = TRUE;
|
||||
+ }
|
||||
+ }
|
||||
+ else
|
||||
+ {
|
||||
+ /* Parameter is for a single screen */
|
||||
+ g_ScreenInfo[g_iLastScreen].fHideInitial = TRUE;
|
||||
+ }
|
||||
+
|
||||
+ /* Indicate that we have processed this argument */
|
||||
+ return 1;
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
* Look for the '-lesspointer' argument
|
||||
*/
|
||||
if (IS_OPTION ("-lesspointer"))
|
||||
diff -urw xc-orig/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile
|
||||
--- xc-orig/programs/Xserver/Imakefile 2010-02-23 03:37:20.151687345 +0100
|
||||
+++ xc/programs/Xserver/Imakefile 2010-02-23 03:51:21.389687596 +0100
|
||||
@@ -1046,9 +1046,9 @@
|
||||
# if defined(GlxUseWindows) && GlxUseWindows
|
||||
XWINGL32 = -lopengl32
|
||||
# endif
|
||||
-XWINW32 = -lgdi32 -lws2_32 $(XWINGL32) $(PTHREADLIB)
|
||||
+XWINW32 = -luser32 -lgdi32 -lws2_32 $(XWINGL32) $(PTHREADLIB)
|
||||
#else
|
||||
-XWINW32 = -lgdi32
|
||||
+XWINW32 = -luser32 -lgdi32
|
||||
#endif
|
||||
XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XWINX11) $(SYSLIBS) $(XWINW32)
|
||||
|
||||
41
packaging/win32/xming/patches/xming-terminate.patch
Normal file
41
packaging/win32/xming/patches/xming-terminate.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
diff -urw xc-orig/programs/Xserver/dix/dispatch.c xc/programs/Xserver/dix/dispatch.c
|
||||
--- xc-orig/programs/Xserver/dix/dispatch.c 2009-03-18 18:13:47.000000000 +0100
|
||||
+++ xc/programs/Xserver/dix/dispatch.c 2010-03-01 02:03:20.986914924 +0100
|
||||
@@ -188,7 +188,7 @@
|
||||
|
||||
static int nextFreeClientID; /* always MIN free client ID */
|
||||
|
||||
-static int nClients; /* number of authorized clients */
|
||||
+volatile int nClients; /* number of authorized clients */
|
||||
|
||||
_X_EXPORT CallbackListPtr ClientStateCallback;
|
||||
|
||||
@@ -3617,6 +3617,7 @@
|
||||
if (client->clientState != ClientStateInitial &&
|
||||
client->clientState != ClientStateAuthenticating )
|
||||
{
|
||||
+ if (nClients > 0)
|
||||
--nClients;
|
||||
}
|
||||
}
|
||||
diff -urw xc-orig/programs/Xserver/hw/xwin/winclipboardthread.c xc/programs/Xserver/hw/xwin/winclipboardthread.c
|
||||
--- xc-orig/programs/Xserver/hw/xwin/winclipboardthread.c 2009-03-18 18:13:40.000000000 +0100
|
||||
+++ xc/programs/Xserver/hw/xwin/winclipboardthread.c 2010-03-01 02:03:47.160183052 +0100
|
||||
@@ -307,6 +307,17 @@
|
||||
/* Signal that the clipboard client has started */
|
||||
g_fClipboardStarted = TRUE;
|
||||
|
||||
+ /* Hack:
|
||||
+ * If -reset or -terminate has been specified on the cmdline,
|
||||
+ * tweak nClients in dix/dispatch.c in order to terminate the
|
||||
+ * server correctly (we are actually NOT a real client).
|
||||
+ */
|
||||
+ extern volatile char dispatchExceptionAtReset;
|
||||
+ if (dispatchExceptionAtReset) {
|
||||
+ extern volatile int nClients;
|
||||
+ nClients--;
|
||||
+ }
|
||||
+
|
||||
/* Loop for X events */
|
||||
while (1)
|
||||
{
|
||||
2
packaging/win32/xming/version.def
Normal file
2
packaging/win32/xming/version.def
Normal file
@@ -0,0 +1,2 @@
|
||||
#define XW32_VERSION 6,9,0,31
|
||||
#define XW32_VERSION_STRING "6.9.0.31"
|
||||
Reference in New Issue
Block a user