# We only need a native pkg-config, so no worries about making it a Universal "http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz" quiet
pushd "$ROOTDIR/source/pkg-config" if needsconfigure
$@; then status
"Configuring pkg-config" log
./configure
--prefix
="$ROOTDIR/build" status
"Building and installing pkg-config" log
make
-j
$NUMBER_OF_CORES "http://mirrors.kernel.org/gnu/gettext/gettext-0.16.1.tar.gz" quiet
pushd "$ROOTDIR/source/gettext" # Patch to reduce the number of superfluous things we build fwdpatch
"$ROOTDIR/patches/gettext-Makefile.in.diff" -p0
|| true if needsconfigure
$@; then status
"Configuring gettext" CONFIG_CMD="./configure \ --prefix=$ROOTDIR/build \ --disable-dependency-tracking" xconfigure
"${BASE_CFLAGS}" "${BASE_LDFLAGS}" "${CONFIG_CMD}" \ "${ROOTDIR}/source/gettext/gettext-runtime/config.h" \ "${ROOTDIR}/source/gettext/gettext-runtime/libasprintf/config.h" \ "${ROOTDIR}/source/gettext/gettext-tools/config.h" status
"Building and installing gettext" log
make
-j
$NUMBER_OF_CORES # Undo all of our patches... goodbye! revpatch
"$ROOTDIR/patches/gettext-Makefile.in.diff" -p0
"ftp://ftp.gnome.org/pub/gnome/sources/glib/2.20/glib-2.20.5.tar.gz" quiet
pushd "$ROOTDIR/source/glib" # We may have to apply a patch if we're building on PowerPC if [ "$(arch
)" = "ppc" ]; then warning
"glib may not build correctly from PowerPC." # Patch to fix building with the native libiconv fwdpatch
"$ROOTDIR/patches/glib-gconvert.c.diff" -p0
|| true # Patch to reduce the number of superfluous things we build fwdpatch
"$ROOTDIR/patches/glib-Makefile.in.diff" -p0
|| true if needsconfigure
$@; then status
"Configuring glib" export MSGFMT="${ROOTDIR}/build/bin/msgfmt" CONFIG_CMD="./configure \ --prefix=$ROOTDIR/build \ --disable-dependency-tracking" xconfigure
"${BASE_CFLAGS}" "${BASE_LDFLAGS} -lintl" "${CONFIG_CMD}" \ "${ROOTDIR}/source/glib/config.h" \ "${ROOTDIR}/source/glib/gmodule/gmoduleconf.h" \ "${ROOTDIR}/source/glib/glibconfig.h" status
"Building and installing glib" log
make
-j
$NUMBER_OF_CORES revpatch
"$ROOTDIR/patches/glib-Makefile.in.diff" -p0
revpatch
"$ROOTDIR/patches/glib-gconvert.c.diff" -p0
"http://downloads.sourceforge.net/project/meanwhile/meanwhile/1.0.2/meanwhile-1.0.2.tar.gz" quiet
pushd "$ROOTDIR/source/meanwhile" # Mikael Berthe writes, "It seems that the last guint32_get() fails when # Meanwhile receives the FT offer. I think we can skip it -- works for me # but I can't check it with an older server. fwdpatch
"$ROOTDIR/patches/Meanwhile-srvc_ft.c.diff" -p0
|| true # Fixes Awareness Snapshots with recent Sametime servers, thanks to Mikael # Berthe. "With recent Sametime servers there seem to be 2 bytes after the # Snapshot Message Blocks. This patch tries to use the end of block offset # provided by th server." fwdpatch
"$ROOTDIR/patches/Meanwhile-common.c.diff" -p0
|| true # Patch to fix a crash in blist parsing fwdpatch
"$ROOTDIR/patches/Meanwhile-st_list.c.diff" -p0
|| true # The provided libtool ignores our Universal Binary-makin' flags fwdpatch
"$ROOTDIR/patches/Meanwhile-ltmain.sh.diff" -p0
|| true # Fixes accepting group chat invites from the standard Sametime client. # Thanks to Jere Krischel and Jonathan Rice. fwdpatch
"$ROOTDIR/patches/Meanwhile-srvc_place.c.diff" -p0
|| true fwdpatch
"$ROOTDIR/patches/Meanwhile-session.c.diff" -p0
|| true if needsconfigure
$@; then # Delete 'libtool' if it exists, so that we'll generate a new one status
"Configuring Meanwhile" export CFLAGS="$ARCH_CFLAGS" export LDFLAGS="$ARCH_LDFLAGS" export GLIB_LIBS="$ROOTDIR/build/lib" export GLIB_CFLAGS="-I$ROOTDIR/build/include/glib-2.0 \ -I$ROOTDIR/build/lib/glib-2.0/include" --prefix
="$ROOTDIR/build" \ --disable-dependency-tracking
status
"Building and installing Meanwhile" export CFLAGS="$ARCH_CFLAGS" export LDFLAGS="$ARCH_LDFLAGS" log
make
-j
$NUMBER_OF_CORES revpatch
"$ROOTDIR/patches/Meanwhile-ltmain.sh.diff" -p0
revpatch
"$ROOTDIR/patches/Meanwhile-st_list.c.diff" -p0
revpatch
"$ROOTDIR/patches/Meanwhile-common.c.diff" -p0
revpatch
"$ROOTDIR/patches/Meanwhile-srvc_ft.c.diff" -p0
revpatch
"$ROOTDIR/patches/Meanwhile-srvc_place.c.diff" -p0
revpatch
"$ROOTDIR/patches/Meanwhile-session.c.diff" -p0
# We used to use 0.36.2, but I switched to the latest MacPorts is using "http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz" quiet
pushd "$ROOTDIR/source/intltool" if needsconfigure
$@; then status
"Configuring intltool" export CFLAGS="$ARCH_CFLAGS" export LDFLAGS="$ARCH_LDFLAGS" log
./configure
--prefix
="$ROOTDIR/build" --disable-dependency-tracking
status
"Building and installing intltool" log
make
-j
$NUMBER_OF_CORES prereq
"json-glib-0.9.2" \ "http://ftp.gnome.org/pub/GNOME/sources/json-glib/0.9/json-glib-0.9.2.tar.gz" quiet
pushd "$ROOTDIR/source/json-glib-0.9.2" if needsconfigure
$@; then status
"Configuring json-glib" export CFLAGS="$ARCH_CFLAGS" export LDFLAGS="$ARCH_LDFLAGS" export GLIB_LIBS="$ROOTDIR/build/lib" export GLIB_CFLAGS="-I$ROOTDIR/build/include/glib-2.0 \ -I$ROOTDIR/build/lib/glib-2.0/include" --prefix
="$ROOTDIR/build" \ --disable-dependency-tracking
status
"Building and installing json-glib" log
make
-j
$NUMBER_OF_CORES # C'mon, why do you make me do this? log
ln
-fs
"$ROOTDIR/build/include/json-glib-1.0/json-glib" \ "$ROOTDIR/build/include/json-glib"