openbsd-ports/devel/glib2/Makefile
2010-08-30 22:03:58 +00:00

75 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.90 2010/08/30 22:03:58 jasper Exp $
COMMENT-main= general-purpose utility library
COMMENT-docs= glib2 documentation
VERSION= 2.24.2
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}
REVISION-main= 0
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
SHARED_LIBS+= glib-2.0 1803.0 # .2400.1
SHARED_LIBS+= gobject-2.0 1803.0 # .2400.1
SHARED_LIBS+= gmodule-2.0 1803.0 # .2400.1
SHARED_LIBS+= gthread-2.0 1803.0 # .2400.1
SHARED_LIBS+= gio-2.0 1803.0 # .2400.1
# 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 pcre fam
LIB_DEPENDS-main= ${LIB_DEPENDS} \
:pcre->=7.2:devel/pcre \
::sysutils/gamin,no_server,no_python
PKG_ARCH-docs= *
LIB_DEPENDS-docs=
RUN_DEPENDS-docs=
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 -pthread"
# XXX gcc3 only -- remove when i386 moves to gcc4
.if ${MACHINE_ARCH} == "i386"
CONFIGURE_ARGS+= --build=i486-unknown-openbsd${OSREV}
.endif
# 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
.include <bsd.port.mk>