SOPE_SRCDIR="$PWD" # TODO: rather use location of configure (using basename)
NGSTREAMS_DIR="${SOPE_SRCDIR}/sope-core/NGStreams"
GSTEPMAKE_SRCDIR="${SOPE_SRCDIR}/gnustep-make"
+INTERNAL_MAKEDIR="${SOPE_SRCDIR}/.gsmake"
# TODO: add pg_config, mysql_config etc!
LINK_SYSLIBDIRS="-L/usr/local/pgsql/lib -L/usr/local/lib -L/usr/lib"
}
function setupInternalGSMake() {
- if test -d gnustep-make; then
+ if test -f ${INTERNAL_MAKEDIR}/Library/Makefiles/GNUstep.sh; then
+ ARG_GSMAKE="${INTERNAL_MAKEDIR}/Library/Makefiles/"
+ ARG_IS_FHS=1
+ DARG_IS_FHS=1
+ ARG_WITH_GNUSTEP=0
+ if test "x$ARG_PREFIX" = "x"; then
+ ARG_PREFIX="/usr/local/"
+ fi
+ elif test -d gnustep-make; then
SETUP_COMBO="gnu-fd-nil"
- SETUP_MAKEDIR="${SOPE_SRCDIR}/.gsmake"
SETUP_LOGNAME="config-gstepmake.log"
if test -d /Developer/Applications/Xcode.app; then
# rather weird OSX test, right? ;->
cd "$GSTEPMAKE_SRCDIR"
./configure >${pregsmdir}/${SETUP_LOGNAME} \
- --prefix="${SETUP_MAKEDIR}" \
+ --prefix="${INTERNAL_MAKEDIR}" \
--without-system-root \
- --with-network-root="${SETUP_MAKEDIR}" \
- --with-local-root="${SETUP_MAKEDIR}" \
- --with-user-root="${SETUP_MAKEDIR}" \
+ --with-network-root="${INTERNAL_MAKEDIR}" \
+ --with-local-root="${INTERNAL_MAKEDIR}" \
+ --with-user-root="${INTERNAL_MAKEDIR}" \
--with-library-combo="${SETUP_COMBO}"
echo -n ".. install .."
make install >>${pregsmdir}/${SETUP_LOGNAME}
- ARG_GSMAKE="${SETUP_MAKEDIR}/Library/Makefiles/"
+ ARG_GSMAKE="${INTERNAL_MAKEDIR}/Library/Makefiles/"
ARG_IS_FHS=1
DARG_IS_FHS=1
ARG_WITH_GNUSTEP=0