75 lines
2.0 KiB
Makefile
Raw Normal View History

2016-05-10 10:02:58 +00:00
# $OpenBSD: Makefile,v 1.253 2016/05/10 10:02:58 ajacoutot Exp $
2012-08-30 10:08:46 +00:00
COMMENT= general-purpose utility library
GNOME_PROJECT= glib
2016-05-10 10:02:58 +00:00
GNOME_VERSION= 2.48.1
2012-08-30 10:08:46 +00:00
PKGNAME= ${DISTNAME:S/glib/glib2/}
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
2015-03-27 16:00:00 +00:00
# according to upstream, there should never be a need to bump major; doing so
# would trigger an abort():
# GLib-GObject:ERROR:gvaluetypes.c:457:_g_value_types_init:
# assertion failed: (type == G_TYPE_CHAR)
2016-05-10 10:02:58 +00:00
SHARED_LIBS += glib-2.0 4200.3 # 4800.1
SHARED_LIBS += gmodule-2.0 4200.3 # 4800.1
SHARED_LIBS += gthread-2.0 4200.3 # 4800.1
SHARED_LIBS += gobject-2.0 4200.3 # 4800.1
SHARED_LIBS += gio-2.0 4200.3 # 4800.1
2008-09-27 17:58:25 +00:00
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
2012-08-30 10:08:46 +00:00
WANTLIB += c elf ffi pcre pthread z
MODULES= devel/gettext \
lang/python \
x11/gnome
2015-03-27 16:00:00 +00:00
MODGNOME_TOOLS= docbook
2012-08-30 10:08:46 +00:00
LIB_DEPENDS= devel/pcre \
devel/libelf \
devel/libffi
2011-10-08 08:29:56 +00:00
# need X11 because DBus is used in the GDBus test cases;
# also requires bumped limits (stack >= 24576)
BUILD_DEPENDS += x11/dbus
2013-03-11 10:50:00 +00:00
TEST_IS_INTERACTIVE= x11
TEST_DEPENDS= devel/desktop-file-utils \
x11/dbus
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-static \
--with-pcre=system \
--disable-fam
.include <bsd.port.arch.mk>
.if ${PROPERTIES:Mgcc3}
PATCH_LIST= patch-* gcc3-*
.endif
pre-configure:
2015-09-24 10:23:42 +00:00
sed -i -e "s,/usr/local,${LOCALBASE},g;" \
-e "s,/etc/xdg,${SYSCONFDIR}/xdg,g" \
2014-01-13 08:54:39 +00:00
${WRKSRC}/glib/gutils.c \
${WRKSRC}/gio/xdgmime/xdgmime.c
2015-09-24 10:23:42 +00:00
sed -i "s,/usr/share/locale,${LOCALBASE}/share/locale,g" \
2014-01-13 08:54:39 +00:00
${WRKSRC}/glib/gcharset.c
2015-09-24 10:23:42 +00:00
sed -i "s,/usr/share/applications,${LOCALBASE}/share/applications,g" \
2014-01-13 08:54:39 +00:00
${WRKSRC}/gio/tests/desktop-app-info.c
2015-09-24 10:23:42 +00:00
sed -i "s,/usr/share,${PREFIX}/share,g" \
${WRKSRC}/docs/reference/gio/html/glib-compile-schemas.html \
2014-01-13 08:54:39 +00:00
${WRKSRC}/docs/reference/gio/glib-compile-schemas.xml
2015-09-24 10:23:42 +00:00
sed -i "s,/var/lib/dbus,/var/db/dbus,g" \
${WRKSRC}/gio/gdbusconnection.c \
${WRKSRC}/gio/gdbusprivate.c \
${WRKSRC}/po/*.po
.include <bsd.port.mk>