# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/poco/poco.conf # Copyright (C) 2009 - 2022 The T2 SDE 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 --- # non-autotools configure script cleanconfopt=0 poco_mysql() { sed -e "s@^SYSLIBS.*@SYSLIBS += -Wl,-rpath,/$(pkgprefix libdir mysql)/mysql -lmysqlclient@" \ -e "s@^INCLUDE.*@INCLUDE += -I/$(pkgprefix includedir mysql)/mysql@" \ -i Data/MySQL/Makefile sed -e "s@^SYSLIBS.*@SYSLIBS += -L/$(pkgprefix libdir mysql)/mysql -lmysqlclient@" \ -e "s@^INCLUDE.*@INCLUDE += -I./../include -I/$(pkgprefix includedir mysql)/mysql@" \ -i Data/MySQL/testsuite/Makefile } if pkginstalled unixodbc; then var_append pocolibs ' ' "-L$(pkgprefix libdir unixodbc) -lodbc" else var_append omit ',' 'Data/ODBC' fi if pkginstalled mysql; then var_append pocolibs ' ' "-L$(pkgprefix libdir mysql)/mysql -lmysqlclient_r" hook_add preconf 5 poco_mysql else var_append omit ',' 'Data/MySQL' fi if pkginstalled openssl; then var_append pocolibs ' ' '-lcrypto -lssl' else var_append omit ',' 'NetSSL_OpenSSL,Crypto' fi # drop libs if requirements not met [ -n $omit ] && var_append confopt ' ' '--omit=$omit' if [ $SDECFG_LIBC == "uclibc" ]; then #var_append confopt ' ' '--config=GCCEMBEDLINUX' var_append confopt ' ' '--no-wstring --no-fpenvironment' var_append confopt ' ' '--no-tests --no-samples' fi var_append makeopt ' ' 'SYSLIBS="$pocolibs -lpthread -ldl -lrt"' var_append makeopt ' ' 'TOOL=$arch_target'