Browse Source

l/wxwidgets-GTK: Added static libraries.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
4bf344c849
1 changed files with 50 additions and 2 deletions
  1. +50
    -2
      l/wxwidgets-gtk/wxwidgets-gtk.SlackBuild

+ 50
- 2
l/wxwidgets-gtk/wxwidgets-gtk.SlackBuild View File

@ -69,11 +69,17 @@ fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -1 | cut -d / -f 1)
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# For maximum flexibility, 4 different versions of the library are
# compiled: shared Unicode, shared ANSI, static Unicode and static ANSI.
# It takes time and space, but I've found programs requesting
# specifically one of those version and unable to link against another.
# Shared Unicode version
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -92,7 +98,7 @@ CXXFLAGS=$CPUOPT \
make
make install DESTDIR=$PKG
# Compile and install a non-Unicode version
# Shared ANSI version
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -111,6 +117,48 @@ CXXFLAGS=$CPUOPT \
make
make install DESTDIR=$PKG
# Static Unicode version
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--enable-monolithic \
--disable-shared \
--with-sdl \
--with-opengl \
--enable-stl \
--enable-unicode \
--enable-mediactrl \
--enable-graphics_ctx \
--enable-controls \
--enable-dataviewctrl \
--enable-tabdialog
make
make install DESTDIR=$PKG
# Static ANSI version
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--enable-monolithic \
--disable-shared \
--with-sdl \
--with-opengl \
--enable-stl \
--disable-unicode \
--enable-mediactrl \
--enable-graphics_ctx \
--enable-controls \
--enable-dataviewctrl \
--enable-tabdialog
make
make install DESTDIR=$PKG
# Set shared Unicode as the "default" version
rm -f $PKG/usr/bin/wx-config
ln -s /usr/lib/wx/config/gtk2-unicode-release-2.8 $PKG/usr/bin/wx-config
# Build contribs
make -C contrib/src
make -C contrib/src install prefix=$PKG/usr


Loading…
Cancel
Save