* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / enlightenment / imlib2 / e17-conf.in
blobc7ddc13f72c330b252f81038667bd45a22803ff2
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../imlib2/e17-conf.in
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
6
7 # More information can be found in the files COPYING and README.
8
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 if [ "$prefix_auto" = 1 ]; then
16         if [ "$1" == "NO_SANITY_CHECK" ]; then
17                 if [ "$SDECFG_PKG_E17_CORE_PREFIX" ]; then
18                         prefix="$SDECFG_PKG_E17_CORE_PREFIX"
19                 else
20                         prefix="opt/e17"
21                 fi
22         elif pkginstalled imlib2; then
23                 pkgprefix -t imlib2
24                 prefix=`pkgprefix imlib2`
25         fi
26         set_confopt
29 if [ -z "$e17_from_release" ]; then
31 # e17 is CVS only so we have to run the included autogen.sh
32 e17_autogen() {
33         # required automake file sometimes missing
34         [ ! -e Changelog ] || touch ChangeLog
36         # exporting NOCONFIGURE=yes to not run ./configure automatically
37         # if the included autogen fails set autogen=1 to use our own ones
38         if ! env NOCONFIGURE=yes sh autogen.sh; then
39                 autogen=1
40         fi
43 hook_add preconf 5 "[ ! -e autogen.sh ] || e17_autogen"