diff options
author | Edinaldo P. Silva <edps@mundognu@gmail.com> | 2017-03-07 23:24:32 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-07 23:24:32 +0000 |
commit | c03b060fb1fabc7acaa3a4a4bd32095be7898432 (patch) | |
tree | d691a92d94329f5e908977ffb62fbd4df3362243 /system/wine-staging/wine-staging.SlackBuild | |
parent | cf48ca8f5099ee52a70a8d550c20fe46c613a82f (diff) | |
download | slackbuilds-c03b060fb1fabc7acaa3a4a4bd32095be7898432.tar.gz |
system/wine-staging: Updated for version 2.3.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/wine-staging/wine-staging.SlackBuild')
-rw-r--r-- | system/wine-staging/wine-staging.SlackBuild | 125 |
1 files changed, 13 insertions, 112 deletions
diff --git a/system/wine-staging/wine-staging.SlackBuild b/system/wine-staging/wine-staging.SlackBuild index e94005e710..667eb3d97d 100644 --- a/system/wine-staging/wine-staging.SlackBuild +++ b/system/wine-staging/wine-staging.SlackBuild @@ -30,7 +30,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=wine-staging -VERSION=${VERSION:-2.1} +VERSION=${VERSION:-2.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -47,20 +47,10 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# Default compile options: +# If your video card does not support hardware accelerated OpenGL, +# the run the script like: OPENGL=NO ./wine.SlackBuild - XORG=${XORG:-YES} - ALSA=${ALSA:-YES} - OSS=${OSS:-NO} - PULSE=${PULSE:-YES} - CUPS=${CUPS:-YES} - DBUS=${DBUS:-YES} - GALLIUM=${GALLIUM:-NO} - OPENAL=${OPENAL:-NO} OPENGL=${OPENGL:-YES} - JPEG=${JPEG:-NO} - PNG=${PNG:-NO} - MPG123=${MPG123:-NO} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" @@ -78,20 +68,15 @@ fi set -e +SRCNAM="wine-patched-staging" + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -rm -rf wine-$VERSION -tar xvf $CWD/wine-$VERSION.tar.xz -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz - -# Apply Staging patches: - -cd wine-staging-$VERSION/patches -./patchinstall.sh --all DESTDIR=$TMP/wine-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION -cd $TMP/wine-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -99,55 +84,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Various compile options: - -if [ "$XORG" = "YES" ]; then - do_x="with" - else - do_x="without" -fi - -if [ "$ALSA" = "YES" ]; then - do_alsa="with" - else - do_alsa="without" -fi - -if [ "$OSS" = "YES" ]; then - do_oss="with" - else - do_oss="without" -fi - -if [ "$PULSE" = "YES" ]; then - do_pulse="with" - else - do_pulse="without" -fi - -if [ "$CUPS" = "YES" ]; then - do_cups="with" - else - do_cups="without" -fi - -if [ "$DBUS" = "YES" ]; then - do_dbus="with" - else - do_dbus="without" -fi - -if [ "$GALLIUM" = "YES" ]; then - do_gallium="with" - else - do_gallium="without" -fi - -if [ "$OPENAL" = "YES" ]; then - do_openal="with" - else - do_openal="without" -fi +# If OPENGL=YES above, then enable opengl; otherwise, disable it. if [ "$OPENGL" = "YES" ]; then do_opengl="with" @@ -155,51 +92,14 @@ if [ "$OPENGL" = "YES" ]; then do_opengl="without" fi -if [ "$JPEG" = "YES" ]; then - do_jpeg="with" - else - do_jpeg="without" -fi - -if [ "$PNG" = "YES" ]; then - do_png="with" - else - do_png="without" -fi - -if [ "$MPG123" = "YES" ]; then - do_mpg123="with" - else - do_mpg123="without" -fi - -# All of the libraries produced are 32bit libs anyway: - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ --mandir=/usr/man \ - --sysconfdir=/etc \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --with-gnutls=yes \ - --${do_x}-x \ - --x-includes=/usr/include \ - --${do_alsa}-alsa \ - --${do_oss}-oss \ - --${do_pulse}-pulse \ - --${do_cups}-cups \ - --${do_dbus}-dbus \ - --${do_openal}-openal \ - --${do_gallium}-d3dadapter \ --${do_opengl}-opengl \ - --${do_jpeg}-jpeg \ - --${do_png}-png \ - --${do_mpg123}-mpg123 \ - --with-fontconfig \ - --with-freetype \ - --with-gstreamer \ - --with-xattr \ --build=$ARCH-slackware-linux make @@ -216,7 +116,7 @@ install -d $PKG/etc/fonts/conf.{avail,d} install -m644 $CWD/30-win32-aliases.conf $PKG/etc/fonts/conf.avail ln -sf /etc/fonts/conf.avail/30-win32-aliases.conf $PKG/etc/fonts/conf.d/30-win32-aliases.conf -# Add a desktop menu for the wine and winecfg programs: +# Add a desktop menu for winecfg: mkdir -p $PKG/usr/share/{applications,icons/hicolor/scalable/apps,pixmaps} convert $CWD/wine.svg -scale 64 $PKG/usr/share/pixmaps/wine.png cp -a $CWD/wine.svg $PKG/usr/share/icons/hicolor/scalable/apps/ @@ -225,9 +125,10 @@ cp -a programs/winecfg/winecfg.svg $PKG/usr/share/icons/hicolor/scalable/apps/ cp -a $CWD/winecfg.desktop $PKG/usr/share/applications/ DOCS="ANNOUNCE AUTHORS COPYING.LIB LICENSE* MAINTAINERS README VERSION" +FONTS_LICENSE="COPYING.arial COPYING.cour COPYING.msyh COPYING.times" mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS $FONTS_LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |