glib2: Add -D_BSD_SOURCE, it's now needed.

Fixes #250.
This commit is contained in:
Augustin Cavalier
2015-06-30 11:33:12 -04:00
parent 06349a386b
commit 0087abce20

View File

@@ -10,7 +10,7 @@ Since GLib is a cross-platform library, applications using it to interface \
with the operating system are usually portable across different operating \
systems without major changes
"
HOMEPAGE="http://www.gtk.org/"
HOMEPAGE="http://www.gtk.org/"
SRC_URI="http://ftp.gnome.org/pub/gnome/sources/glib/2.38/glib-2.38.1.tar.xz"
CHECKSUM_SHA256="01906c62ac666d2ab3183cc07261b2536fab7b211c6129ab66b119c2af56d159"
LICENSE="GNU LGPL v2"
@@ -24,7 +24,7 @@ COPYRIGHT="1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
2008-2010 Collabora Ltd.
1995-2010 Several others"
REVISION="4"
REVISION="5"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
@@ -88,7 +88,7 @@ BUILD()
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure --disable-maintainer-mode
runConfigure ./configure --disable-maintainer-mode CFLAGS=-D_BSD_SOURCE
# There seem to be a problem with libtool, and without this some libraries
# would not be found during the build.
@@ -101,14 +101,14 @@ BUILD()
INSTALL()
{
make install
prepareInstalledDevelLibs libgio-2.0 \
libglib-2.0 \
libgmodule-2.0 \
libgobject-2.0 \
libgthread-2.0
fixPkgconfig
# The libtool files reference other libraries using the wrong paths, which
# creates a lot of confusion. Fix them so correct paths are used.
local develPackageName="${portName}_devel-$portFullVersion"
@@ -119,8 +119,8 @@ INSTALL()
local zlibLinksDir="$packageLinksDir/${develPackageName}/devel~libz$secondaryArchSuffix/$relativeDevelopLibDir"
sed -i -e "s,^\(Libs.private.*\)-L.* \(-l.*\)$,\1-L$zlibLinksDir \2," \
$developLibDir/pkgconfig/gio-2.0.pc
# move the glibconfig header into devel as well
mv $libDir/glib-2.0 $developLibDir