1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/gpac/gpac.conf
5 # Copyright (C) 2007 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 configscript="sh ./configure"
17 pkginstalled libx11 &&
18 false && # doesn't build with current wxwidgets
19 #pkginstalled wxwidgets &&
20 var_append confopt ' ' "--X11-path=$root/`pkgprefix libx11`" ||
21 var_append confopt ' ' "--disable-wx --disable-x11-shm"
23 var_append confopt ' ' '--cc=$CC --cpu=$arch'
25 # guide while cross compiling
26 if ! pkginstalled firefox && ! pkginstalled seamonkey; then
27 var_append patchfiles ' ' "$confdir/no-mozilla.diff"
29 pkginstalled mesa || var_append confopt ' ' '--disable-opengl'
31 if [ $SDECFG_DEBUG -ne 0 ]; then
32 var_append confopt ' ' "--enable-debug"
35 # install development header files
36 var_append makeinstopt ' ' "install-lib"
38 # not supported on all arch's
39 var_append GCC_WRAPPER_REMOVE ' ' '-Wno-pointer-sign'
41 if [[ $libdir == *lib64 ]]; then
42 var_append confopt " " "--enable-pic"
43 var_append GCC_WRAPPER_INSERT " " "-fPIC -L/usr/X11R7/lib64 -D__ia64__"