2013-03-21 08:45:11 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.200 2013/03/21 08:45:15 ajacoutot Exp $
|
2002-07-25 09:14:13 +00:00
|
|
|
|
2012-08-30 10:08:46 +00:00
|
|
|
COMMENT= general-purpose utility library
|
2002-07-25 09:14:13 +00:00
|
|
|
|
2012-11-27 06:49:49 +00:00
|
|
|
V= 2.34.3
|
2012-09-07 14:40:59 +00:00
|
|
|
DISTNAME= glib-${V}
|
2012-08-30 10:08:46 +00:00
|
|
|
PKGNAME= ${DISTNAME:S/glib/glib2/}
|
2011-09-20 21:09:34 +00:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
|
2002-07-25 09:14:13 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2007-10-24 22:29:02 +00:00
|
|
|
HOMEPAGE= http://www.gtk.org/
|
2002-07-25 09:14:13 +00:00
|
|
|
|
2010-04-20 20:05:34 +00:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2012-11-27 06:49:49 +00:00
|
|
|
SHARED_LIBS += glib-2.0 3400.0 # 3400.3
|
|
|
|
SHARED_LIBS += gmodule-2.0 3400.0 # 3400.3
|
|
|
|
SHARED_LIBS += gthread-2.0 3400.0 # 3400.3
|
|
|
|
SHARED_LIBS += gobject-2.0 3400.0 # 3400.3
|
|
|
|
SHARED_LIBS += gio-2.0 3400.0 # 3400.3
|
2005-12-28 06:15:28 +00:00
|
|
|
|
2008-09-27 17:58:25 +00:00
|
|
|
# LGPLv2
|
2002-07-25 09:14:13 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2012-08-30 10:08:46 +00:00
|
|
|
WANTLIB += c elf ffi pcre pthread z
|
2002-07-25 09:14:13 +00:00
|
|
|
|
2012-09-07 14:40:59 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${V:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
2002-07-25 09:14:13 +00:00
|
|
|
|
2010-10-11 20:41:44 +00:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/python
|
|
|
|
|
2011-05-28 21:15:47 +00:00
|
|
|
MODPY_ADJ_FILES= glib/gtester-report \
|
2011-09-21 13:10:18 +00:00
|
|
|
gio/gdbus-2.0/codegen/gdbus-codegen.in \
|
2011-05-28 21:15:47 +00:00
|
|
|
gio/tests/gdbus-testserver.py
|
2008-04-09 13:10:17 +00:00
|
|
|
|
2012-09-21 13:16:49 +00:00
|
|
|
# man pages
|
2012-10-02 20:56:18 +00:00
|
|
|
BUILD_DEPENDS += textproc/docbook>=4.5p1 \
|
2012-09-21 13:16:49 +00:00
|
|
|
textproc/libxslt
|
|
|
|
|
2012-08-30 10:08:46 +00:00
|
|
|
LIB_DEPENDS= devel/pcre \
|
2012-03-31 18:27:35 +00:00
|
|
|
devel/libelf \
|
2011-09-20 21:09:34 +00:00
|
|
|
devel/libffi
|
2007-10-24 22:29:02 +00:00
|
|
|
|
2011-10-08 08:29:56 +00:00
|
|
|
# need X11 because DBus is used in the GDBus test cases;
|
2012-04-06 12:06:51 +00:00
|
|
|
# also requires bumped limits (stack >= 24576)
|
2011-03-07 19:17:14 +00:00
|
|
|
BUILD_DEPENDS += x11/dbus
|
2013-03-11 10:50:00 +00:00
|
|
|
TEST_IS_INTERACTIVE= x11
|
|
|
|
TEST_DEPENDS= devel/desktop-file-utils \
|
2010-11-15 19:45:56 +00:00
|
|
|
devel/py-gobject \
|
2012-10-16 14:18:09 +00:00
|
|
|
devel/py-gobject3 \
|
2010-11-15 19:45:56 +00:00
|
|
|
x11/dbus-python
|
2010-10-11 20:41:44 +00:00
|
|
|
|
2002-07-25 09:14:13 +00:00
|
|
|
USE_GMAKE= Yes
|
2011-05-28 21:15:47 +00:00
|
|
|
|
2002-07-25 09:14:13 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2011-05-28 21:15:47 +00:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2007-10-24 22:29:02 +00:00
|
|
|
--enable-static \
|
2008-04-09 13:10:17 +00:00
|
|
|
--with-pcre=system \
|
2010-09-30 07:17:19 +00:00
|
|
|
--disable-gtk-doc \
|
2012-01-01 09:00:46 +00:00
|
|
|
--disable-fam \
|
2008-11-22 17:23:14 +00:00
|
|
|
--disable-selinux \
|
2011-09-20 21:09:34 +00:00
|
|
|
--disable-systemtap \
|
2011-06-02 17:09:31 +00:00
|
|
|
--disable-xattr
|
2011-05-24 09:10:23 +00:00
|
|
|
|
2012-03-06 11:39:17 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2012-03-23 13:19:32 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-12-28 06:15:28 +00:00
|
|
|
|
2012-09-21 14:48:05 +00:00
|
|
|
# If one of these tools is found at configure stage, it might be used,
|
|
|
|
# no matter whether we use --disable-gtk-doc or not.
|
|
|
|
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
|
|
|
|
ac_cv_path_GTKDOC_REBASE="" \
|
|
|
|
ac_cv_path_GTKDOC_MKPDF=""
|
|
|
|
|
2012-07-12 11:40:52 +00:00
|
|
|
### kqueue(2) backend ##################################################
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=679793
|
2012-01-01 09:00:46 +00:00
|
|
|
AUTOMAKE_VERSION= 1.11
|
|
|
|
AUTOCONF_VERSION= 2.68
|
|
|
|
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} \
|
2012-02-18 17:02:22 +00:00
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
devel/libtool
|
2012-03-23 13:19:32 +00:00
|
|
|
MASTER_SITES0= http://distfiles.bsdfrog.org/
|
2012-11-14 19:05:49 +00:00
|
|
|
PATCHFILES= glib-gio-kqueue-2.34.2-v2.patch:0
|
2012-09-18 13:05:59 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2012-01-01 09:00:46 +00:00
|
|
|
AUTO_ENV= AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
|
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
|
|
|
post-patch:
|
2012-02-18 17:02:22 +00:00
|
|
|
cd ${WRKSRC} && ${AUTO_ENV} autoreconf --force --install
|
2012-01-01 09:00:46 +00:00
|
|
|
### end of kqueue(1) backend ###########################################
|
|
|
|
|
2008-11-22 17:23:14 +00:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e "s,/usr/local,${LOCALBASE},g;" \
|
2011-05-28 21:15:47 +00:00
|
|
|
-e "s,/usr/share/locale,${LOCALBASE}/share/locale,g;" \
|
|
|
|
-e "s,/usr/share/applications,${LOCALBASE}/share/applications,g;" \
|
2008-11-22 17:23:14 +00:00
|
|
|
-e "s,/etc/xdg,${SYSCONFDIR}/xdg,g" \
|
2011-05-09 12:37:04 +00:00
|
|
|
${WRKSRC}/glib/gutils.c ${WRKSRC}/gio/xdgmime/xdgmime.c \
|
|
|
|
${WRKSRC}/gio/tests/desktop-app-info.c \
|
|
|
|
${WRKSRC}/docs/reference/gio/html/glib-compile-schemas.html \
|
|
|
|
${WRKSRC}/docs/reference/gio/glib-compile-schemas.1
|
2011-06-03 16:54:05 +00:00
|
|
|
perl -pi -e "s,/var/lib/dbus,/var/db/dbus,g" \
|
2010-09-30 07:17:19 +00:00
|
|
|
${WRKSRC}/gio/gdbusconnection.c \
|
2011-05-28 21:15:47 +00:00
|
|
|
${WRKSRC}/gio/gdbusprivate.c \
|
|
|
|
${WRKSRC}/po/*.po
|
|
|
|
|
2002-07-25 09:14:13 +00:00
|
|
|
.include <bsd.port.mk>
|