

# normal
prfx=/Users/pemsley/autobuild/build-refinement-pre-release-gtk2-python
prfx=/Users/pemsley/yt-dl

./configure --prefix=$prfx \
   --enable-shared  \
   --with-ensurepip=install \
   MACOSX_DEPLOYMENT_TARGET=10.10

# after configure, we can change Modules/Setup


# GNU sed does -i, mac sed does not.
# export PATH=/usr/local/Cellar/gnu-sed/4.2.2/libexec/gnubin:$PATH

real_ssl_prefix=/usr

sed -e "s?#SSL=.*?SSL=$real_ssl_prefix?" -e 's/^#_ssl/_ssl/' -e's/^#.*-DUSE_SSL/    -DUSE_SSL/' -e 's?^#.*-L$(SSL)/lib?    -L$(SSL)/lib?' Modules/Setup > Modules/Setup-ed
mv Modules/Setup-ed Modules/Setup

# notes to self, it seems possible that Modules/Setup.dist is interfering somehow - so maybe we need to apply this sed line
# to Modules/Setup.dist too (and make sure that Modules/Setup is newer than Modules/Setup.dist).

# framework

# ./configure --enable-framework=$HOME/Library/Frameworks MACOSX_DEPLOYMENT_TARGET=10.10
