2010-09-18 05:14:17 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.48 2010/09/18 09:14:17 ajacoutot Exp $
|
2003-01-31 13:35:57 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= portable library for obtaining system information
|
2003-01-31 13:35:57 -05:00
|
|
|
|
2010-03-30 12:24:24 -04:00
|
|
|
GNOME_VERSION= 2.28.1
|
2007-12-28 09:31:52 -05:00
|
|
|
GNOME_PROJECT= libgtop
|
2010-09-18 05:14:17 -04:00
|
|
|
PKGNAME= libgtop2-${VERSION}p9
|
2009-10-12 06:18:32 -04:00
|
|
|
|
2009-10-16 06:56:04 -04:00
|
|
|
SHARED_LIBS= gtop-2.0 9.0 # .9.0
|
2006-01-03 13:07:27 -05:00
|
|
|
|
2003-01-31 13:35:57 -05:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2008-03-17 04:38:31 -04:00
|
|
|
# GPLv2
|
2003-01-31 13:35:57 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2008-02-09 11:52:24 -05:00
|
|
|
|
2007-11-13 09:06:21 -05:00
|
|
|
WANTLIB= Xau c kvm pcre
|
2003-01-31 13:35:57 -05:00
|
|
|
|
2007-12-28 09:31:52 -05:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
x11/gnome
|
|
|
|
|
2008-02-09 11:52:24 -05:00
|
|
|
LIB_DEPENDS= glib-2.0::devel/glib2
|
2010-04-18 08:51:44 -04:00
|
|
|
RUN_DEPENDS= ::sysutils/lsof
|
2003-01-31 13:35:57 -05:00
|
|
|
|
2006-02-05 13:27:00 -05:00
|
|
|
USE_X11= Yes
|
2004-08-01 02:06:35 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2008-02-09 11:52:24 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
|
|
|
--without-libgtop-smp
|
2003-01-31 13:35:57 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2007-01-18 14:31:34 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
GMSGFMT="${LOCALBASE}/bin/msgfmt"
|
2003-01-31 13:35:57 -05:00
|
|
|
|
2010-04-08 11:57:46 -04:00
|
|
|
.ifdef DEBUG
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
CPPFLAGS+= -DDEBUG \
|
|
|
|
-DLIBGTOP_ENABLE_DEBUG \
|
|
|
|
-DLIBGTOP_FATAL_WARNINGS
|
|
|
|
.endif
|
|
|
|
|
2009-10-16 06:56:04 -04:00
|
|
|
post-extract:
|
|
|
|
cp ${FILESDIR}/procaffinity.c ${WRKSRC}/sysdeps/bsd/
|
2010-04-18 08:32:09 -04:00
|
|
|
cp ${WRKSRC}/sysdeps/{freebsd,bsd}/glibtop_private.h
|
|
|
|
cp ${WRKSRC}/sysdeps/{freebsd,bsd}/procwd.c
|
|
|
|
cp ${WRKSRC}/sysdeps/{freebsd,bsd}/glibtop_private.c
|
|
|
|
cp ${WRKSRC}/sysdeps/{freebsd,bsd}/procopenfiles.c
|
2009-10-16 06:56:04 -04:00
|
|
|
|
2003-01-31 13:35:57 -05:00
|
|
|
.include <bsd.port.mk>
|