LICENSE="BSD-2 BSD LGPL-2.1 ZLIB"
SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 x86"
IUSE="debug double-precision gtk qt4 threads"
RDEPEND="dev-lang/lua
dev-util/pkgconfig"
src_prepare() {
- sed -i \
- -e "/apps/d" \
- -e "/pixmap/d" \
- data/Makefile.am \
- || die "sed failed"
- sed -i \
- -e "/man/d" \
- doc/Makefile.am \
- || die "sed failed"
+ sed -i -e "/apps/d" -e "/pixmap/d" data/Makefile.am || die "sed failed"
+ sed -i -e "/man/d" Makefile.am || die "sed failed"
eautoreconf
}
--disable-dependency-tracking \
$(use_enable debug) \
$(use_enable double-precision) \
- $(use_enable gtk) \
- $(use_enable qt4) \
- $(use_enable threads)
+ $(use_enable threads) \
+ $(use_with gtk) \
+ $(use_with qt4)
}
src_install() {
[threads=$enableval],
[threads=no])
-AC_ARG_WITH([gui-toolkit],
- [AS_HELP_STRING([--with-gui-toolkit=ARG],
- [possible values: none (default), gtk, qt4])],
- [gui_toolkit=$withval],
- [gui_toolkit=none])
+AC_ARG_WITH([gtk],
+ [AS_HELP_STRING([--with-gtk],
+ [use gtk2 modal dialogs])],
+ [gtk=$withval],
+ [gtk=no])
+
+AC_ARG_WITH([qt4],
+ [AS_HELP_STRING([--with-qt4],
+ [use qt4 modal dialogs; overridden by --with-gtk])],
+ [qt4=$withval],
+ [qt4=no])
if test x$debug = xyes
[Define to 1 if you want to use threads when applicable.])
fi
-if test x$gui_toolkit = xgtk
+if test x$gtk = xyes
then
AC_DEFINE([USE_GTK], 1,
[Define to 1 if you want to use GTK+ modal dialogs.])
-elif test x$gui_toolkit = xqt4
+elif test x$qt4 = xyes
then
AC_DEFINE([USE_QT4], 1,
[Define to 1 if you want to use QT4 modal dialogs.])
AC_MSG_WARN([Missing liblua ($website)])])
##### GTK+ 2.0 #####
-if test x$gui_toolkit = xgtk
+if test x$gtk = xyes
then
website="http://www.gtk.org/"
PKG_CHECK_MODULES([GTK], [gtk+-2.0],
fi
##### QT4 #####
-if test x$gui_toolkit = xqt4
+if test x$qt4 = xyes
then
website="http://qt.nokia.com/"
PKG_CHECK_MODULES([QT4], [QtGui],