openbsd-ports/devel/gconf2/Makefile
2011-05-14 22:18:13 +00:00

113 lines
2.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.57 2011/05/14 22:18:13 ajacoutot Exp $
COMMENT-main= configuration database system for GNOME
COMMENT-polkit= PolicyKit integration for GConf2
COMMENT-gtk= GConf2 configuration checker
GNOME_PROJECT= GConf
GNOME_VERSION= 2.32.3
PKGNAME-main= gconf2-${GNOME_VERSION}
PKGNAME-polkit= gconf2-polkit-${GNOME_VERSION}
PKGNAME-gtk= gconf2-sanity-check-${GNOME_VERSION}
FULLPKGNAME-main= gconf2-${GNOME_VERSION}
FULLPKGPATH-main= devel/gconf2,-main
FULLPKGNAME-polkit= gconf2-polkit-${GNOME_VERSION}
FULLPKGPATH-polkit= devel/gconf2,-polkit
REVISION-main= 0
REVISION-polkit= 1
SHARED_LIBS += gconf-2 6.2 # 5.5
CATEGORIES= devel
CATEGORIES-polkit= devel sysutils
CATEGORIES-gtk= devel x11
HOMEPAGE= http://www.gnome.org/projects/gconf/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
WANTLIB += c gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gthread-2.0 pcre pthread z
WANTLIB-main += ${WANTLIB} ORBit-2 m xml2 dbus-1 dbus-glib-1
WANTLIB-polkit += ${WANTLIB} gconf-2 polkit-gobject-1
WANTLIB-polkit += ORBit-2 c dbus-1 dbus-glib-1 gio-2.0 glib-2.0
WANTLIB-polkit += gmodule-2.0 gobject-2.0 gthread-2.0 pcre pthread z
WANTLIB-polkit += dbus-1 dbus-glib-1
WANTLIB-gtk += ${WANTLIB}
WANTLIB-gtk += GL ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp
WANTLIB-gtk += Xext Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0
WANTLIB-gtk += cairo drm expat fontconfig freetype gconf-2
WANTLIB-gtk += gdk_pixbuf-2.0 m pango-1.0 pangocairo-1.0
WANTLIB-gtk += pangoft2-1.0 pixman-1 png pthread-stubs xcb xcb-render
WANTLIB-gtk += xcb-shm xml2
MODULES= devel/gettext \
x11/gnome
MULTI_PACKAGES= -main -polkit -gtk
BUILD_DEPENDS= devel/gobject-introspection
RUN_DEPENDS-main= ${MODGETTEXT_RUN_DEPENDS}
LIB_DEPENDS-main= ${LIB_DEPENDS} \
devel/ORBit2 \
textproc/libxml \
x11/dbus-glib
RUN_DEPENDS-polkit= # empty
LIB_DEPENDS-polkit= ${LIB_DEPENDS} \
devel/gconf2 \
sysutils/polkit
RUN_DEPENDS-gtk= # empty
LIB_DEPENDS-gtk= ${LIB_DEPENDS} \
devel/gconf2
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-gtk-doc \
--without-openldap \
--enable-introspection \
--enable-defaults-service
USE_GROFF= Yes
FLAVORS= gtk2
FLAVOR?=
.if ${FLAVOR:L:Mgtk2}
WANTLIB-gtk += gdk-x11-2.0 gtk-x11-2.0
LIB_DEPENDS-gtk += x11/gtk+2
CONFIGURE_ARGS+=--with-gtk=2.0
.else
WANTLIB-gtk += cairo-gobject gdk-3 gtk-3
LIB_DEPENDS-gtk += x11/gtk+3
CONFIGURE_ARGS+=--with-gtk=3.0
.endif
FAKE_FLAGS= sysgconfdir=${PREFIX}/share/examples/gconf2 \
sysconfdir=${PREFIX}/share/examples/gconf2
pre-configure:
${SUBST_CMD} ${WRKSRC}/gsettings/gsettings-data-convert.1
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/schemas/
.include <bsd.port.mk>