2011-04-01 16:09:54 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.108 2011/04/01 20:09:54 ajacoutot Exp $
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2007-09-10 15:13:33 -04:00
|
|
|
COMMENT-main= general-purpose utility library
|
|
|
|
COMMENT-docs= glib2 documentation
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2011-04-01 16:09:54 -04:00
|
|
|
VERSION= 2.28.5
|
2002-07-25 05:14:13 -04:00
|
|
|
DISTNAME= glib-${VERSION}
|
2010-08-21 15:10:56 -04:00
|
|
|
PKGNAME-main= glib2-${VERSION}
|
2010-04-22 15:34:06 -04:00
|
|
|
PKGNAME-docs= glib2-docs-${VERSION}
|
2010-04-20 14:53:29 -04:00
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2007-10-24 18:29:02 -04:00
|
|
|
HOMEPAGE= http://www.gtk.org/
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2010-04-20 16:05:34 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2011-03-21 14:11:28 -04:00
|
|
|
SHARED_LIBS += glib-2.0 2800.0 # 2800.4
|
|
|
|
SHARED_LIBS += gmodule-2.0 2800.0 # 2800.4
|
|
|
|
SHARED_LIBS += gthread-2.0 2800.0 # 2800.4
|
|
|
|
SHARED_LIBS += gobject-2.0 2800.0 # 2800.4
|
|
|
|
SHARED_LIBS += gio-2.0 2800.0 # 2800.4
|
2005-12-28 01:15:28 -05:00
|
|
|
|
2008-09-27 13:58:25 -04:00
|
|
|
# LGPLv2
|
2002-07-25 05:14:13 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2009-07-12 16:38:09 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
2006-05-21 21:39:36 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2009-12-04 03:08:31 -05:00
|
|
|
MULTI_PACKAGES= -main -docs
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2010-10-11 16:41:44 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/python
|
|
|
|
|
|
|
|
MODPY_RUNDEP= No
|
2011-03-07 14:17:14 -05:00
|
|
|
MODPY_BUILDDEP= Yes # glib2 wants python for the regress tests
|
2008-04-09 09:10:17 -04:00
|
|
|
|
2010-11-06 12:07:00 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} c pthread z pcre fam
|
2006-11-24 11:50:10 -05:00
|
|
|
|
2007-10-31 17:50:51 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2011-03-07 14:17:14 -05:00
|
|
|
devel/pcre>=8.12 \
|
2010-11-15 14:45:56 -05:00
|
|
|
sysutils/gamin,no_server,no_python
|
2007-10-24 18:29:02 -04:00
|
|
|
|
2006-11-24 11:50:10 -05:00
|
|
|
PKG_ARCH-docs= *
|
2010-11-06 12:07:00 -04:00
|
|
|
WANTLIB-docs=
|
2006-11-24 11:50:10 -05:00
|
|
|
LIB_DEPENDS-docs=
|
|
|
|
RUN_DEPENDS-docs=
|
2005-05-24 17:26:17 -04:00
|
|
|
|
2010-09-30 03:17:19 -04:00
|
|
|
# DBus is only used in the GDBus test cases
|
2011-03-07 14:17:14 -05:00
|
|
|
BUILD_DEPENDS += x11/dbus
|
2010-11-15 14:45:56 -05:00
|
|
|
REGRESS_DEPENDS= devel/desktop-file-utils \
|
|
|
|
devel/py-gobject \
|
|
|
|
x11/dbus-python
|
2010-10-11 16:41:44 -04:00
|
|
|
|
|
|
|
REGRESS_FLAGS= -k
|
2009-07-12 16:38:09 -04:00
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
USE_GMAKE= Yes
|
2005-12-28 01:15:28 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-11-15 14:45:56 -05:00
|
|
|
USE_GROFF = Yes
|
2002-07-25 05:14:13 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-10-24 18:29:02 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
2008-11-22 13:56:13 -05:00
|
|
|
--enable-fam \
|
2008-04-09 09:10:17 -04:00
|
|
|
--with-pcre=system \
|
2010-09-30 03:17:19 -04:00
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-Bsymbolic \
|
2008-11-22 12:23:14 -05:00
|
|
|
--disable-selinux \
|
2009-10-10 07:25:28 -04:00
|
|
|
--disable-xattr \
|
|
|
|
--disable-silent-rules
|
2010-09-24 12:20:40 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-D_POSIX_MONOTONIC_CLOCK=200112L" \
|
2010-10-12 05:03:31 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread"
|
2005-12-28 01:15:28 -05:00
|
|
|
|
2008-11-22 12:23:14 -05:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e "s,/usr/local,${LOCALBASE},g;" \
|
|
|
|
-e "s,/usr/share,${LOCALBASE}/share,g;" \
|
|
|
|
-e "s,/etc/xdg,${SYSCONFDIR}/xdg,g" \
|
|
|
|
${WRKSRC}/glib/gutils.c ${WRKSRC}/gio/xdgmime/xdgmime.c
|
2010-09-30 03:17:19 -04:00
|
|
|
perl -pi -e 's,/var/lib/dbus/machine-id,${SYSCONFDIR}/dbus-1/machine-id,g' \
|
|
|
|
${WRKSRC}/gio/gdbusconnection.c \
|
|
|
|
${WRKSRC}/gio/gdbusaddress.c \
|
|
|
|
${WRKSRC}/gio/gdbusprivate.c ${WRKSRC}/po/*.po
|
2010-10-11 16:41:44 -04:00
|
|
|
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' \
|
|
|
|
${WRKSRC}/gio/tests/gdbus-testserver.py
|
2007-04-24 14:21:14 -04:00
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
.include <bsd.port.mk>
|