1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../webkit/webkit.conf
5 # Copyright (C) 2007 - 2009 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 ---
18 [ $arch = powerpc64 ] && var_append GCC_WRAPPER_APPEND ' ' -mminimal-toc
20 if [ "${SDECFG_PKG_WEBKIT_LIB:0:2}" = "qt" ]; then
21 pkgprefix -t $SDECFG_PKG_WEBKIT_QTLIB
22 export QTDIR=$root/`pkgprefix $SDECFG_PKG_WEBKIT_LIB`
24 export PATH=$QTDIR/bin:$PATH
25 export QMAKESPEC=$QTDIR/mkspecs/default
28 # do not include the Qt application files
29 webkit_noqtlauncher ()
31 echo "Removing Qt Apps from project"
32 sed -e '#WebKitQt.*\.cpp#d' -e '#WebKitQt.*\.h#d' -i WebCore/WebCore.pro
33 cat > WebKit.pro <<EOT
42 mkdir -p WebKitBuild/Release/
43 pushd WebKitBuild/Release
45 $QTDIR/bin/qmake -r OUTPUT_DIR=$builddir/trunk/WebKitBuild/Release ../../WebKit.pro
53 cp -av WebKitBuild/Release/lib/* $root$libdir
54 for wdir in WebCore JavaScriptCore WebKitQt
56 find $wdir -name "*.h" | while read headerfile; do
57 headerdir=`dirname $headerfile`
58 [ -e $root$includedir/$headerdir ] || mkdir -p $root$includedir/$headerdir
59 cp -av $headerfile $root$includedir/$headerfile
64 webkit_gtk_postinstall ()
66 cp -av Programs/* $root$bindir
69 if [ "${SDECFG_PKG_WEBKIT_LIB:0:2}" = "qt" ]; then
70 hook_add premake 3 webkit_build
71 hook_add inmake 3 webkit_install
76 if [ "${SDECFG_PKG_WEBKIT_LIB}" = "gtk" ]; then
77 hook_add postmake 3 webkit_gtk_postinstall
78 var_append confopt ' ' '--enable-svg --enable-svg-as-image'
79 var_append confopt ' ' '--enable-video'