|
|
@ -20,26 +20,28 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
var_append confopt ' ' '--enable-monolithic' |
|
|
|
var_append confopt ' ' '--enable-optimise' |
|
|
|
var_append confopt ' ' '--enable-shared' |
|
|
|
var_append confopt ' ' '--enable-xrc' |
|
|
|
var_append confopt ' ' '--enable-largefile' |
|
|
|
# var_append extraconfopt ' ' '--enable-monolithic' |
|
|
|
var_append extraconfopt ' ' '--enable-optimize' |
|
|
|
var_append extraconfopt ' ' '--enable-debug_flag' |
|
|
|
var_append extraconfopt ' ' '--enable-shared' |
|
|
|
var_append extraconfopt ' ' '--enable-xrc' |
|
|
|
var_append extraconfopt ' ' '--enable-largefile' |
|
|
|
var_append extraconfopt ' ' '--enable-unicode' |
|
|
|
|
|
|
|
if pkginstalled gtk+ ; then |
|
|
|
var_append confopt ' ' '--with-gtk' |
|
|
|
var_append extraconfopt ' ' '--with-gtk' |
|
|
|
elif pkginstalled gtk+12 ; then |
|
|
|
var_append confopt ' ' '--with-gtk --disable-gtk2' |
|
|
|
var_append extraconfopt ' ' '--with-gtk --disable-gtk2' |
|
|
|
else |
|
|
|
var_append confopt ' ' '--disable-gui' |
|
|
|
var_append extraconfopt ' ' '--disable-gui' |
|
|
|
fi |
|
|
|
|
|
|
|
pkginstalled libsdl && \ |
|
|
|
var_append confopt ' ' '--with-sdl' |
|
|
|
var_append extraconfopt ' ' '--with-sdl' |
|
|
|
|
|
|
|
# FIXME: how to do this right? |
|
|
|
if [ -f $root/usr/lib/libGL.so ] ; then |
|
|
|
var_append confopt ' ' '--with-opengl' |
|
|
|
var_append extraconfopt ' ' '--with-opengl' |
|
|
|
hook_add inmake 10 'make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0"' |
|
|
|
hook_add postmake 10 'make -C contrib/src/ogl CXXFLAGS="-DwxUSE_DEPRECATED=0" install' |
|
|
|
fi |
|
|
|