openbsd-ports/devel/glib2/Makefile
martynas 1db4805bb9 remove bogus patch. atof("Infinity") actually produces zero, and
then no wonder the patch removes further regression tests...
this is not needed now that that archs have proper INFINITY and NAN
definitions
ok phessler@
2008-07-24 10:02:57 +00:00

64 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.48 2008/07/24 10:02:57 martynas Exp $
COMMENT-main= general-purpose utility library
COMMENT-docs= glib2 documentation
VERSION= 2.16.4
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}p0
PKGNAME-docs= glib2-docs-${VERSION}p0
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org/
SHARED_LIBS += glib-2.0 1600.1 # .1600.4
SHARED_LIBS += gobject-2.0 1600.1 # .1600.4
SHARED_LIBS += gmodule-2.0 1600.1 # .1600.4
SHARED_LIBS += gthread-2.0 1600.1 # .1600.4
SHARED_LIBS += gio-2.0 1600.1 # .0.0
# 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.16/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -docs
MODULES= devel/gettext
WANTLIB-main= c
LIB_DEPENDS-main= ${LIB_DEPENDS} \
pcre:pcre->=7.2:devel/pcre
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
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-static \
--with-pcre=system \
--disable-fam
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>