openbsd-ports/devel/glib2/Makefile
ajacoutot d8bef1a1a9 When permissions are set up accordingly and kern.usermount is set to 1,
make it possible to umount and eject CDs using gio.
2010-04-29 16:38:41 +00:00

80 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.81 2010/04/29 16:38:41 ajacoutot Exp $
COMMENT-main= general-purpose utility library
COMMENT-docs= glib2 documentation
VERSION= 2.24.0
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}p0
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# glib-2.0 and gobject-2.0 need to be in sync as glib-2.0 version is
# used to install *-gdb.py files
SHARED_LIBS+= glib-2.0 1803.0 # .2400.0
SHARED_LIBS+= gobject-2.0 1803.0 # .2400.0
SHARED_LIBS+= gmodule-2.0 1803.0 # .2400.0
SHARED_LIBS+= gthread-2.0 1803.0 # .2400.0
SHARED_LIBS+= gio-2.0 1803.0 # .2400.0
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/${VERSION:C/^([0-9]+\.[0-9]+).*/\1/}/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -docs
MODULES= devel/gettext
WANTLIB-main= c pthread z
LIB_DEPENDS-main= ${LIB_DEPENDS} \
pcre:pcre->=7.2:devel/pcre \
fam.>=1::sysutils/gamin,no_server,no_python
PKG_ARCH-docs= *
LIB_DEPENDS-docs=
RUN_DEPENDS-docs=
# disable optimization on powerpc because it can lead to a
# segfault under some circumstances
.if ${MACHINE_ARCH} == "powerpc"
PATCH_LIST= patch-* PPC-patch-glib_Makefile_in
.endif
REGRESS_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-static \
--enable-fam \
--with-pcre=system \
--disable-selinux \
--disable-xattr \
--disable-silent-rules
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# don't hardcode (+fix) paths
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
perl -pi -e 's,!!LIBglib-2.0_VERSION_R!!,${LIBglib-2.0_VERSION:R},g;' \
-e 's,!!LIBglib-2.0_VERSION_E!!,${LIBglib-2.0_VERSION:E},g' \
${WRKSRC}/configure
.include <bsd.port.mk>