openbsd-ports/devel/libgtop/Makefile
espie 495ebe78c8 Fix that as a conflict between libgtop-*-!gnome and gnome-libs-*
(note that we can't write libgtop-*-!gnome as a pkgcfl, but it doesn't
matter, because the check is done at gnome-libs-* install time, at which
point libgtop-*-gnome is definitely not going to be around yet).

Thanks to naddy@ for setting me straight.
2001-10-11 21:47:12 +00:00

49 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2001/10/11 21:47:12 espie Exp $
COMMENT= "portable library for obtaining system information"
V= 1.0.12
DISTNAME= libgtop-${V}
CATEGORIES= devel
NEED_VERSION= 1.473
HOMEPAGE= http://www.home-of-linux.org/gnome/libgtop/
MAINTAINER= Nils Nordman <nino@nforced.com>
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/libgtop
PATCH_LIST= ${PORTSDIR}/infrastructure/patches/patch-lt1.3.5-ltconfig \
${PORTSDIR}/infrastructure/patches/patch-lt1.3.5-ltmain_sh \
patch-*
FLAVORS= gnome guile
FLAVOR?=
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
LIB_DEPENDS= intl.1::devel/gettext \
glib.1.2::devel/glib
.if ${FLAVOR:L:Mgnome}
LIB_DEPENDS+= gnome.36,gnomesupport::x11/gnome/libs
.else
CONFIGURE_ARGS+= --without-gnome
.endif
.if ${FLAVOR:L:Mguile}
BUILD_DEPENDS+= ::lang/guile
RUN_DEPENDS+= ::lang/guile
CONFIGURE_ARGS+= --with-libgtop-guile=yes
.else
CONFIGURE_ARGS+= --with-libgtop-guile=no
.endif
.include <bsd.port.mk>