|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2008,2009,2010,2011 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2008,2009,2010 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -25,17 +25,18 @@
|
|
|
|
|
# Note: To build only the `base' library (without the GUI components), |
|
|
|
|
# use the following configure's options: |
|
|
|
|
# --disable-gui --without-subdirs |
|
|
|
|
# and do not build the contrib/ directory. |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-wxWidgets} |
|
|
|
|
VERSION=${VERSION:-2.9.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2} |
|
|
|
|
NAMESRC=${NAMESRC:-wxGTK} |
|
|
|
|
VERSION=${VERSION:-2.8.11} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-http://downloads.sourceforge.net/wxwindows/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-wxwidgets-gtk} |
|
|
|
|
BUILD=${BUILD:-1GGD} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')} |
|
|
|
|
JOBS=${JOBS:-1} |
|
|
|
|
EXT=${EXT:-txz} |
|
|
|
|
|
|
|
|
@ -89,13 +90,26 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
./configure \ |
|
|
|
|
--prefix=/usr \ |
|
|
|
|
--libdir=/usr/lib$LIBDIRSUFFIX \ |
|
|
|
|
--enable-plugins \ |
|
|
|
|
--enable-shared \ |
|
|
|
|
--enable-optimise \ |
|
|
|
|
--disable-profile \ |
|
|
|
|
--with-sdl \ |
|
|
|
|
--with-gstreamer \ |
|
|
|
|
--with-opengl \ |
|
|
|
|
--enable-ipv6 |
|
|
|
|
--enable-unicode \ |
|
|
|
|
--enable-mediactrl \ |
|
|
|
|
--enable-graphics_ctx \ |
|
|
|
|
--enable-controls \ |
|
|
|
|
--enable-tabdialog \ |
|
|
|
|
--disable-dataviewctrl # broken on x86_64 (type size issue), disabling |
|
|
|
|
# until a better solution (fix) is found |
|
|
|
|
make -j $JOBS |
|
|
|
|
make install DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Build contribs |
|
|
|
|
make -j $JOBS -C contrib/src |
|
|
|
|
make -C contrib/src install DESTDIR=$PKG |
|
|
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
|
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \ |
|
|
|
|
xargs strip --strip-unneeded 2> /dev/null |
|
|
|
|