Skip to content

Commit

Permalink
https://github.com/qgis/QGIS/issues/35026
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 22, 2020
1 parent bfc4ca0 commit fecef24
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
50 changes: 50 additions & 0 deletions qgis_bundle/recipes/freetds/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

function check_freetds() {
env_var_exists VERSION_freetds
env_var_exists LINK_ct
env_var_exists LINK_sybdb
env_var_exists LINK_tdsodbc
}

function bundle_freetds() {
try cp -av $DEPS_LIB_DIR/libct.*dylib $BUNDLE_LIB_DIR
try cp -av $DEPS_LIB_DIR/libsybdb.*dylib $BUNDLE_LIB_DIR
try cp -av $DEPS_LIB_DIR/libtdsodbc.*so $BUNDLE_LIB_DIR
}

function fix_binaries_freetds() {
for i in \
$LINK_ct \
$LINK_sybdb \
$LINK_tdsodbc
do
install_name_id @rpath/$i $BUNDLE_LIB_DIR/$i

for j in \
$LINK_libssl \
$LINK_libcrypto \
$LINK_libltdl
do
install_name_change $DEPS_LIB_DIR/$j @rpath/$j $BUNDLE_LIB_DIR/$i
done

install_name_change $QGIS_DEPS_STAGE_PATH/unixodbc/lib/$LINK_unixodbc @rpath/$LINK_unixodbc $BUNDLE_LIB_DIR/$i
install_name_change $QGIS_DEPS_STAGE_PATH/unixodbc/lib/$LINK_unixodbcinst @rpath/$LINK_unixodbcinst $BUNDLE_LIB_DIR/$i

done
}

function fix_binaries_freetds_check() {
verify_binary $BUNDLE_LIB_DIR/$LINK_ct
verify_binary $BUNDLE_LIB_DIR/$LINK_sybdb
verify_binary $BUNDLE_LIB_DIR/$LINK_tdsodbc
}

function fix_paths_freetds() {
:
}

function fix_paths_freetds_check() {
:
}
27 changes: 27 additions & 0 deletions qgis_bundle/recipes/python_pymssql/recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

function check_python_pymssql() {
env_var_exists VERSION_python_pymssql
}

function bundle_python_pymssql() {
:
}

function fix_binaries_python_pymssql() {
install_name_change $DEPS_LIB_DIR/$LINK_sybdb @rpath/$LINK_sybdb $BUNDLE_PYTHON_SITE_PACKAGES_DIR/_mssql.cpython-${VERSION_major_python//./}m-darwin.so
install_name_change $DEPS_LIB_DIR/$LINK_sybdb @rpath/$LINK_sybdb $BUNDLE_PYTHON_SITE_PACKAGES_DIR/pymssql.cpython-${VERSION_major_python//./}m-darwin.so
}

function fix_binaries_python_pymssql_check() {
verify_binary $BUNDLE_PYTHON_SITE_PACKAGES_DIR/_mssql.cpython-${VERSION_major_python//./}m-darwin.so
verify_binary $BUNDLE_PYTHON_SITE_PACKAGES_DIR/pymssql.cpython-${VERSION_major_python//./}m-darwin.so
}

function fix_paths_python_pymssql() {
:
}

function fix_paths_python_pymssql_check() {
:
}

0 comments on commit fecef24

Please sign in to comment.