openbsd-ports/devel/glib2/Makefile

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.33 2007/06/04 19:02:45 kurt Exp $
COMMENT-main= "general-purpose utility library"
COMMENT-docs= "glib2 documentation"
VERSION= 2.12.12
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}p0
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org
SHARED_LIBS += glib-2.0 1200.12 # .1200.12
SHARED_LIBS += gobject-2.0 1200.12 # .1200.12
SHARED_LIBS += gmodule-2.0 1200.12 # .1200.12
SHARED_LIBS += gthread-2.0 1200.12 # .1200.12
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/2.12/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -docs
MODULES= devel/gettext
WANTLIB-main= c
PKG_ARCH-docs= *
LIB_DEPENDS-docs=
RUN_DEPENDS-docs=
# hppa's threads are broken (configure test gives Bus error)...
.if (${MACHINE_ARCH} == "hppa")
CONFIGURE_ARGS+= --disable-threads
.endif
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# Port has "/usr/local" hardcoded, we prefer ${LOCALBASE}
pre-build:
perl -pi -e "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/glib/gutils.c
.include <bsd.port.mk>