pkgsrc/sysutils/libgtop/Makefile

106 lines
3 KiB
Makefile
Raw Normal View History

2016-02-26 11:24:10 +01:00
# $NetBSD: Makefile,v 1.50 2016/02/26 10:24:13 jperkin Exp $
DISTNAME= libgtop-2.28.4
PKGREVISION= 8
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.28/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnome.org/
COMMENT= Library to retrieve system information, used in GNOME2
LICENSE= gnu-gpl-v2
OSVERSION_SPECIFIC= YES
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01:00
GNU_CONFIGURE= YES
CONFIG_SHELL= bash
INFO_FILES= YES
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01:00
PKGCONFIG_OVERRIDE= libgtop-2.0.pc.in
TEXINFO_REQD= 4.6
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
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"
CONFLICTS+= libgtop2-[0-9]*
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01:00
post-patch:
${CP} ${FILESDIR}/procaffinity.c ${WRKSRC}/sysdeps/bsd/
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01: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$$/ \
{ 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 }
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"
INSTALL_MAKE_FLAGS+= libgtop_postinstall=true
PLIST_VARS+= server suid.h
.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"
PLIST.server= yes
SPECIAL_PERMS= bin/libgtop_server2 ${REAL_ROOT_USER} sys 2755
.else
PLIST.server= yes
PLIST.suid.h= yes
2004-11-19 11:58:16 +01:00
.endif
PLIST_VARS+= glibtop_private.h
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
PLIST.glibtop_private.h= yes
.endif
# 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
.include "../../devel/gettext-lib/buildlink3.mk"
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01:00
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.0
.include "../../devel/glib2/buildlink3.mk"
2014-02-21 21:32:12 +01:00
BUILDLINK_API_DEPENDS.gtk-doc+= gtk-doc>=1.20
Update to 2.24.0. New cpu affinity code (see changes for 2.23.2 below) is ifdef'd out. 22 Septembre 2008: Overview of changes in 2.24.0 ================================================ * Translation updates. 18 August 2008: Overview of changes in 2.23.90 ============================================== * freebsd: - updated port by Joe Marcus Clarke. 23 June 2008: Overview of changes in 2.23.4 =========================================== * linux: - Fixed and improved glibtop_get_fsusage with kernel >= 2.6.25. Closes #539360. 24 May 2008: Overview of changes in 2.23.2 ========================================== * glibtop_get_proc_open_files API can also lists IPv6 TCP sockets. * glibtop_get_proc_affinity : new API to retrieve process CPU affinity. (Let's hope one day i'll find the gtk-doc documentation ...) * linux: - fixed parsing of big /proc/stat for uptime. 04 April 2008: Overview of changes in 2.22.1 ============================================ * Fixed compilation/dist for !linux. Closes #525953. 10 Mars 2008: Overview of changes in 2.22.0 =========================================== * linux: - fixed proc_kernel. 25 February 2008: Overview of changes in 2.21.92 ================================================ * linux: - fixed smaps parsing on >= 2.6.24.x. 14 January 2008: Overview of changes in 2.21.5 ============================================== * freebsd: - fixed build on GNU/kfreebsd. Petr Salinger. - fixed procmem units. Kuang-che Wu. 28 October 2007: Overview of changes in 2.21.1 ============================================== * don't export _p/_s private symbols anymore. This is not an API/ABI breakage. * darwin implementation by Benjamin Reed. * linux: - splitted fsusage and mountlist implementations; - smarter mountlist(allfs = False); - fixed some compile warning on 64bit; * solaris: - fixed netload build by Henry Zhang.
2008-11-15 20:34:11 +01:00
.include "../../textproc/gtk-doc/buildlink3.mk"
.include "../../x11/libXau/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"