openbsd-ports/devel/glib2/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

2006-06-03 14:22:22 -04:00
# $OpenBSD: Makefile,v 1.26 2006/06/03 18:22:22 brad Exp $
COMMENT= "general-purpose utility library"
2006-05-21 21:39:36 -04:00
COMMENT-docs= "glib2 documentation"
2006-06-03 14:22:22 -04:00
VERSION= 2.10.3
DISTNAME= glib-${VERSION}
PKGNAME= glib2-${VERSION}
2006-05-21 21:39:36 -04:00
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.gtk.org
2006-06-03 14:22:22 -04:00
SHARED_LIBS= glib-2.0 1000.3 \
gmodule-2.0 1000.3 \
gobject-2.0 1000.3 \
gthread-2.0 1000.3
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2006-05-21 21:39:36 -04:00
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/glib/2.10/}
EXTRACT_SUFX= .tar.bz2
2006-05-21 21:39:36 -04:00
MULTI_PACKAGES= -docs
SUBPACKAGE?=
.if defined(PACKAGING) && ${SUBPACKAGE} == "-docs"
PKG_ARCH= *
.else
MODULES= devel/gettext
WANTLIB= c
.endif
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
# 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_ARGS+= --enable-static
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# Work around an issue in our libtool where -pthread is not listed as a
# dependency
post-install:
sed -e "s/dependency_libs='/dependency_libs='-pthread/" < ${PREFIX}/lib/libgthread-2.0.la > ${PREFIX}/lib/libgthread-2.0.temp && mv ${PREFIX}/lib/libgthread-2.0.temp ${PREFIX}/lib/libgthread-2.0.la
.include <bsd.port.mk>