2016-02-26 11:24:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2016/02/26 10:24:13 jperkin Exp $
|
2004-04-02 14:09:16 +02:00
|
|
|
|
2012-01-19 20:43:56 +01:00
|
|
|
DISTNAME= libgtop-2.28.4
|
2015-06-12 12:50:58 +02:00
|
|
|
PKGREVISION= 8
|
2004-04-02 14:09:16 +02:00
|
|
|
CATEGORIES= sysutils gnome
|
2009-10-22 19:09:35 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.28/}
|
2004-04-02 14:09:16 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-04-02 14:09:16 +02:00
|
|
|
HOMEPAGE= http://www.gnome.org/
|
|
|
|
COMMENT= Library to retrieve system information, used in GNOME2
|
2015-06-06 12:59:57 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
2004-04-02 14:09:16 +02:00
|
|
|
|
|
|
|
OSVERSION_SPECIFIC= YES
|
|
|
|
|
2008-11-15 20:34:11 +01:00
|
|
|
GNU_CONFIGURE= YES
|
2011-04-13 19:05:20 +02:00
|
|
|
CONFIG_SHELL= bash
|
2006-08-06 21:06:44 +02:00
|
|
|
INFO_FILES= YES
|
2008-11-15 20:34:11 +01:00
|
|
|
PKGCONFIG_OVERRIDE= libgtop-2.0.pc.in
|
2004-04-02 14:09:16 +02:00
|
|
|
TEXINFO_REQD= 4.6
|
2008-11-15 20:34:11 +01:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
USE_PKGLOCALEDIR= YES
|
|
|
|
USE_TOOLS+= gmake makeinfo msgfmt perl pkg-config intltool
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-gtk-doc
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
CONFIGURE_ENV+= LN_S="${LN} -s"
|
|
|
|
|
2007-09-20 23:12:04 +02:00
|
|
|
CONFLICTS+= libgtop2-[0-9]*
|
2004-04-02 14:09:16 +02:00
|
|
|
|
2008-11-15 20:34:11 +01:00
|
|
|
post-patch:
|
2008-11-16 21:31:09 +01:00
|
|
|
${CP} ${FILESDIR}/procaffinity.c ${WRKSRC}/sysdeps/bsd/
|
2008-11-15 20:34:11 +01:00
|
|
|
|
2004-04-02 14:09:16 +02:00
|
|
|
# The following flags are for debugging purposes. They don't need to
|
|
|
|
# be used unless you are actively developing/debugging libgtop.
|
|
|
|
#CPPFLAGS+= -DLIBGTOP_ENABLE_DEBUG -DLIBGTOP_FATAL_WARNINGS
|
|
|
|
#CFLAGS+= -g
|
|
|
|
#LDFLAGS+= -g
|
|
|
|
|
2004-11-19 11:58:16 +01:00
|
|
|
PRINT_PLIST_AWK+= /^bin\/libgtop_server2$$/ \
|
2004-09-21 18:49:46 +02:00
|
|
|
{ print "$${LIBGTOP_SERVER}" $$0; next }
|
2004-11-19 11:58:16 +01:00
|
|
|
PRINT_PLIST_AWK+= /^include\/libgtop-2.0\/glibtop_suid.h$$/ \
|
|
|
|
{ print "$${LIBGTOP_SUID_H}" $$0; next }
|
2004-09-21 18:49:46 +02:00
|
|
|
|
2016-02-26 11:24:10 +01:00
|
|
|
CONFIGURE_ENV.NetBSD+= fu_cv_sys_mounted_getmntinfo=yes
|
2013-01-22 22:57:45 +01:00
|
|
|
# needed since about 6.99.16
|
2016-02-26 11:24:10 +01:00
|
|
|
CPPFLAGS.NetBSD+= -D_KMEMUSER
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2004-05-04 06:55:49 +02:00
|
|
|
|
2011-01-19 17:43:38 +01:00
|
|
|
INSTALL_MAKE_FLAGS+= libgtop_postinstall=true
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= server suid.h
|
2011-01-19 17:43:38 +01:00
|
|
|
.if ${OPSYS} == "AIX"
|
|
|
|
PLIST.server= yes
|
|
|
|
PLIST.suid.h= yes
|
|
|
|
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} system 2755
|
|
|
|
.elif ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" || \
|
|
|
|
${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || \
|
|
|
|
${OPSYS} == "OpenBSD"
|
|
|
|
PLIST.server= yes
|
|
|
|
PLIST.suid.h= yes
|
|
|
|
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} kmem 2755
|
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
#PLIST.server= no
|
|
|
|
#PLIST.suid.h= no
|
2004-11-19 11:58:16 +01:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.server= yes
|
2011-01-19 17:43:38 +01:00
|
|
|
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} sys 2755
|
2004-04-02 14:09:16 +02:00
|
|
|
.else
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.server= yes
|
|
|
|
PLIST.suid.h= yes
|
2004-11-19 11:58:16 +01:00
|
|
|
.endif
|
2004-04-02 14:09:16 +02:00
|
|
|
|
2009-07-11 15:14:13 +02:00
|
|
|
PLIST_VARS+= glibtop_private.h
|
2013-02-26 16:54:16 +01:00
|
|
|
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
|
2009-07-11 15:14:13 +02:00
|
|
|
PLIST.glibtop_private.h= yes
|
|
|
|
.endif
|
|
|
|
|
2005-03-27 13:18:37 +02:00
|
|
|
# XXX This needs a check in the configure script, which should be clean
|
|
|
|
# enough to be integrated in the mainstream sources.
|
|
|
|
statvfs_h= /usr/include/sys/statvfs.h
|
|
|
|
.if exists(${statvfs_h})
|
|
|
|
reads_count!= if ${GREP} f_syncreads ${statvfs_h} >/dev/null; then \
|
|
|
|
${ECHO} yes; else ${ECHO} no; fi
|
|
|
|
. if ${reads_count} == "yes"
|
|
|
|
CPPFLAGS+= -DHAVE_STATVFS_READS_COUNT
|
|
|
|
. endif
|
|
|
|
. undef reads_count
|
|
|
|
|
|
|
|
writes_count!= if ${GREP} f_syncwrites ${statvfs_h} >/dev/null; then \
|
|
|
|
${ECHO} yes; else ${ECHO} no; fi
|
|
|
|
. if ${writes_count} == "yes"
|
|
|
|
CPPFLAGS+= -DHAVE_STATVFS_WRITES_COUNT
|
|
|
|
. endif
|
|
|
|
. undef writes_count
|
|
|
|
.endif
|
|
|
|
.undef statvfs_h
|
|
|
|
|
2004-04-02 14:09:16 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2008-11-15 20:34:11 +01:00
|
|
|
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.0
|
2004-04-02 14:09:16 +02:00
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
2014-02-21 21:32:12 +01:00
|
|
|
BUILDLINK_API_DEPENDS.gtk-doc+= gtk-doc>=1.20
|
2008-11-15 20:34:11 +01:00
|
|
|
.include "../../textproc/gtk-doc/buildlink3.mk"
|
|
|
|
.include "../../x11/libXau/buildlink3.mk"
|
2004-04-02 14:09:16 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|