2008-01-22 13:27:02 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.43 2008/01/22 18:27:25 ajacoutot Exp $
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2007-09-10 15:13:33 -04:00
|
|
|
COMMENT-main= general-purpose utility library
|
|
|
|
COMMENT-docs= glib2 documentation
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2007-12-05 09:31:24 -05:00
|
|
|
VERSION= 2.14.4
|
2002-07-25 05:14:13 -04:00
|
|
|
DISTNAME= glib-${VERSION}
|
2008-01-22 13:27:02 -05:00
|
|
|
PKGNAME-main= glib2-${VERSION}p0
|
2006-05-21 21:39:36 -04:00
|
|
|
PKGNAME-docs= glib2-docs-${VERSION}
|
2002-07-25 05:14:13 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2007-10-24 18:29:02 -04:00
|
|
|
HOMEPAGE= http://www.gtk.org/
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2007-12-05 09:31:24 -05:00
|
|
|
SHARED_LIBS += glib-2.0 1400.2 # .1400.4
|
|
|
|
SHARED_LIBS += gobject-2.0 1400.2 # .1400.4
|
|
|
|
SHARED_LIBS += gmodule-2.0 1400.2 # .1400.4
|
|
|
|
SHARED_LIBS += gthread-2.0 1400.2 # .1400.4
|
2005-12-28 01:15:28 -05:00
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-10-24 18:29:02 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/2.14/}
|
2006-05-21 21:39:36 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2006-11-24 11:50:10 -05:00
|
|
|
MULTI_PACKAGES= -main -docs
|
2002-07-25 05:14:13 -04:00
|
|
|
|
2004-12-22 01:31:05 -05:00
|
|
|
MODULES= devel/gettext
|
2006-11-24 11:50:10 -05:00
|
|
|
WANTLIB-main= c
|
|
|
|
|
2007-10-31 17:50:51 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
|
|
|
pcre:pcre->=7.2:devel/pcre
|
2007-10-24 18:29:02 -04:00
|
|
|
|
|
|
|
|
2006-11-24 11:50:10 -05:00
|
|
|
PKG_ARCH-docs= *
|
|
|
|
LIB_DEPENDS-docs=
|
|
|
|
RUN_DEPENDS-docs=
|
2005-05-24 17:26:17 -04:00
|
|
|
|
2004-06-21 23:15:02 -04:00
|
|
|
# hppa's threads are broken (configure test gives Bus error)...
|
|
|
|
.if (${MACHINE_ARCH} == "hppa")
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
2002-08-07 09:11:53 -04:00
|
|
|
|
2007-06-25 11:28:44 -04:00
|
|
|
# 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
|
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
USE_GMAKE= Yes
|
2005-12-28 01:15:28 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2002-07-25 05:14:13 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-10-24 18:29:02 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
|
|
|
--with-pcre=system
|
2002-07-25 05:14:13 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2007-07-27 06:09:51 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2005-12-28 01:15:28 -05:00
|
|
|
|
2007-04-24 14:21:14 -04:00
|
|
|
# Port has "/usr/local" hardcoded, we prefer ${LOCALBASE}
|
|
|
|
pre-build:
|
|
|
|
perl -pi -e "s,/usr/local,${LOCALBASE},g" ${WRKSRC}/glib/gutils.c
|
|
|
|
|
2002-07-25 05:14:13 -04:00
|
|
|
.include <bsd.port.mk>
|