# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/smpeg/smpeg.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- autogen=1 smpeg_preconf() { export ACLOCAL_FLAGS="-I $root/$SDECFG_PKG_GNOME14_CORE_PREFIX/share/aclocal" if [ $SDECFG_PKG_SMPEG_MMX == 1 ]; then var_append extraconfopt " " "--enable-mmx" else var_append extraconfopt " " "--disable-mmx" fi if [ $SDECFG_PKG_SMPEG_ATI == 1 ]; then var_append extraconfopt " " "--enable-ati" else var_append extraconfopt " " "--disable-ati" fi if [ $SDECFG_PKG_SMPEG_SYNC == 1 ]; then var_append extraconfopt " " "--enable-timestamp-sync" else var_append extraconfopt " " "--disable-timestamp-sync" fi if [ $SDECFG_PKG_SMPEG_THSYS == 1 ]; then var_append extraconfopt " " "--enable-threaded-system" else var_append extraconfopt " " "--disable-threaded-system" fi if [ $SDECFG_PKG_SMPEG_THAUDIO == 1 ]; then var_append extraconfopt " " "--enable-threaded-audio" else var_append extraconfopt " " "--disable-threaded-audio" fi if [ $SDECFG_PKG_SMPEG_GTKPLAY == 1 ]; then var_append extraconfopt " " "--enable-gtk-player" else var_append extraconfopt " " "--disable-gtk-player" fi if [ $SDECFG_PKG_SMPEG_GLPLAY == 1 ]; then var_append extraconfopt " " "--enable-opengl-player" else var_append extraconfopt " " "--disable-opengl-player" fi if [ $SDECFG_PKG_SMPEG_ASSERT == 1 ]; then var_append extraconfopt " " "--enable-assertions" else var_append extraconfopt " " "--disable-assertions" fi } hook_add preconf 5 smpeg_preconf