1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/poco/poco.conf
5 # Copyright (C) 2009 - 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 # non-autotools configure script
20 sed -e "s@^SYSLIBS.*@SYSLIBS += -Wl,-rpath,/$(pkgprefix libdir mysql)/mysql -lmysqlclient@" \
21 -e "s@^INCLUDE.*@INCLUDE += -I/$(pkgprefix includedir mysql)/mysql@" \
22 -i Data/MySQL/Makefile
24 sed -e "s@^SYSLIBS.*@SYSLIBS += -L/$(pkgprefix libdir mysql)/mysql -lmysqlclient@" \
25 -e "s@^INCLUDE.*@INCLUDE += -I./../include -I/$(pkgprefix includedir mysql)/mysql@" \
26 -i Data/MySQL/testsuite/Makefile
29 if pkginstalled unixodbc; then
30 var_append pocolibs ' ' "-L$(pkgprefix libdir unixodbc) -lodbc"
32 var_append omit ',' 'Data/ODBC'
35 if pkginstalled mysql; then
36 var_append pocolibs ' ' "-L$(pkgprefix libdir mysql)/mysql -lmysqlclient_r"
37 hook_add preconf 5 poco_mysql
39 var_append omit ',' 'Data/MySQL'
42 if pkginstalled openssl; then
43 var_append pocolibs ' ' '-lcrypto -lssl'
45 var_append omit ',' 'NetSSL_OpenSSL,Crypto'
48 # drop libs if requirements not met
49 [ -n $omit ] && var_append confopt ' ' '--omit=$omit'
51 if [ $SDECFG_LIBC == "uclibc" ]; then
52 #var_append confopt ' ' '--config=GCCEMBEDLINUX'
53 var_append confopt ' ' '--no-wstring --no-fpenvironment'
54 var_append confopt ' ' '--no-tests --no-samples'
57 var_append makeopt ' ' 'SYSLIBS="$pocolibs -lpthread -ldl -lrt"'
58 var_append makeopt ' ' 'TOOL=$arch_target'