| @@ -1,88 +1,88 @@ | | | @@ -1,88 +1,88 @@ |
1 | # $NetBSD: Makefile,v 1.21 2009/01/13 13:53:13 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.22 2009/02/16 17:51:07 drochner Exp $ |
2 | | | 2 | |
3 | DISTNAME= libgtop-2.24.3 | | 3 | DISTNAME= libgtop-2.24.4 |
4 | CATEGORIES= sysutils gnome | | 4 | CATEGORIES= sysutils gnome |
5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.24/} | | 5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/2.24/} |
6 | EXTRACT_SUFX= .tar.bz2 | | 6 | EXTRACT_SUFX= .tar.bz2 |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.gnome.org/ | | 9 | HOMEPAGE= http://www.gnome.org/ |
10 | COMMENT= Library to retrieve system information, used in GNOME2 | | 10 | COMMENT= Library to retrieve system information, used in GNOME2 |
11 | | | 11 | |
12 | OSVERSION_SPECIFIC= YES | | 12 | OSVERSION_SPECIFIC= YES |
13 | | | 13 | |
14 | GNU_CONFIGURE= YES | | 14 | GNU_CONFIGURE= YES |
15 | INFO_FILES= YES | | 15 | INFO_FILES= YES |
16 | PKGCONFIG_OVERRIDE= libgtop-2.0.pc.in | | 16 | PKGCONFIG_OVERRIDE= libgtop-2.0.pc.in |
17 | TEXINFO_REQD= 4.6 | | 17 | TEXINFO_REQD= 4.6 |
18 | USE_LIBTOOL= YES | | 18 | USE_LIBTOOL= YES |
19 | USE_PKGLOCALEDIR= YES | | 19 | USE_PKGLOCALEDIR= YES |
20 | USE_TOOLS+= gmake makeinfo msgfmt perl pkg-config intltool | | 20 | USE_TOOLS+= gmake makeinfo msgfmt perl pkg-config intltool |
21 | | | 21 | |
22 | CONFIGURE_ARGS+= --enable-gtk-doc | | 22 | CONFIGURE_ARGS+= --enable-gtk-doc |
23 | CONFIGURE_ARGS+= --without-x | | 23 | CONFIGURE_ARGS+= --without-x |
24 | CONFIGURE_ENV+= LN_S="${LN} -s" | | 24 | CONFIGURE_ENV+= LN_S="${LN} -s" |
25 | | | 25 | |
26 | CONFLICTS+= libgtop2-[0-9]* | | 26 | CONFLICTS+= libgtop2-[0-9]* |
27 | | | 27 | |
28 | post-patch: | | 28 | post-patch: |
29 | ${CP} ${FILESDIR}/procaffinity.c ${WRKSRC}/sysdeps/bsd/ | | 29 | ${CP} ${FILESDIR}/procaffinity.c ${WRKSRC}/sysdeps/bsd/ |
30 | | | 30 | |
31 | # The following flags are for debugging purposes. They don't need to | | 31 | # The following flags are for debugging purposes. They don't need to |
32 | # be used unless you are actively developing/debugging libgtop. | | 32 | # be used unless you are actively developing/debugging libgtop. |
33 | #CPPFLAGS+= -DLIBGTOP_ENABLE_DEBUG -DLIBGTOP_FATAL_WARNINGS | | 33 | #CPPFLAGS+= -DLIBGTOP_ENABLE_DEBUG -DLIBGTOP_FATAL_WARNINGS |
34 | #CFLAGS+= -g | | 34 | #CFLAGS+= -g |
35 | #LDFLAGS+= -g | | 35 | #LDFLAGS+= -g |
36 | | | 36 | |
37 | PRINT_PLIST_AWK+= /^bin\/libgtop_server2$$/ \ | | 37 | PRINT_PLIST_AWK+= /^bin\/libgtop_server2$$/ \ |
38 | { print "$${LIBGTOP_SERVER}" $$0; next } | | 38 | { print "$${LIBGTOP_SERVER}" $$0; next } |
39 | PRINT_PLIST_AWK+= /^include\/libgtop-2.0\/glibtop_suid.h$$/ \ | | 39 | PRINT_PLIST_AWK+= /^include\/libgtop-2.0\/glibtop_suid.h$$/ \ |
40 | { print "$${LIBGTOP_SUID_H}" $$0; next } | | 40 | { print "$${LIBGTOP_SUID_H}" $$0; next } |
41 | | | 41 | |
42 | .include "../../mk/bsd.prefs.mk" | | 42 | .include "../../mk/bsd.prefs.mk" |
43 | | | 43 | |
44 | .if ${OPSYS} == NetBSD | | 44 | .if ${OPSYS} == NetBSD |
45 | CONFIGURE_ENV+= fu_cv_sys_mounted_getmntinfo=yes | | 45 | CONFIGURE_ENV+= fu_cv_sys_mounted_getmntinfo=yes |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | PLIST_VARS+= server suid.h | | 48 | PLIST_VARS+= server suid.h |
49 | .if ${OPSYS} == "Linux" | | 49 | .if ${OPSYS} == "Linux" |
50 | # nothing | | 50 | # nothing |
51 | .elif ${OPSYS} == "SunOS" | | 51 | .elif ${OPSYS} == "SunOS" |
52 | PLIST.server= yes | | 52 | PLIST.server= yes |
53 | .else | | 53 | .else |
54 | PLIST.server= yes | | 54 | PLIST.server= yes |
55 | PLIST.suid.h= yes | | 55 | PLIST.suid.h= yes |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | .if defined(PLIST.server) | | 58 | .if defined(PLIST.server) |
59 | post-install: | | 59 | post-install: |
60 | ${CHMOD} g+s ${PREFIX}/bin/libgtop_server2 | | 60 | ${CHMOD} g+s ${PREFIX}/bin/libgtop_server2 |
61 | .endif | | 61 | .endif |
62 | | | 62 | |
63 | # XXX This needs a check in the configure script, which should be clean | | 63 | # XXX This needs a check in the configure script, which should be clean |
64 | # enough to be integrated in the mainstream sources. | | 64 | # enough to be integrated in the mainstream sources. |
65 | statvfs_h= /usr/include/sys/statvfs.h | | 65 | statvfs_h= /usr/include/sys/statvfs.h |
66 | .if exists(${statvfs_h}) | | 66 | .if exists(${statvfs_h}) |
67 | reads_count!= if ${GREP} f_syncreads ${statvfs_h} >/dev/null; then \ | | 67 | reads_count!= if ${GREP} f_syncreads ${statvfs_h} >/dev/null; then \ |
68 | ${ECHO} yes; else ${ECHO} no; fi | | 68 | ${ECHO} yes; else ${ECHO} no; fi |
69 | . if ${reads_count} == "yes" | | 69 | . if ${reads_count} == "yes" |
70 | CPPFLAGS+= -DHAVE_STATVFS_READS_COUNT | | 70 | CPPFLAGS+= -DHAVE_STATVFS_READS_COUNT |
71 | . endif | | 71 | . endif |
72 | . undef reads_count | | 72 | . undef reads_count |
73 | | | 73 | |
74 | writes_count!= if ${GREP} f_syncwrites ${statvfs_h} >/dev/null; then \ | | 74 | writes_count!= if ${GREP} f_syncwrites ${statvfs_h} >/dev/null; then \ |
75 | ${ECHO} yes; else ${ECHO} no; fi | | 75 | ${ECHO} yes; else ${ECHO} no; fi |
76 | . if ${writes_count} == "yes" | | 76 | . if ${writes_count} == "yes" |
77 | CPPFLAGS+= -DHAVE_STATVFS_WRITES_COUNT | | 77 | CPPFLAGS+= -DHAVE_STATVFS_WRITES_COUNT |
78 | . endif | | 78 | . endif |
79 | . undef writes_count | | 79 | . undef writes_count |
80 | .endif | | 80 | .endif |
81 | .undef statvfs_h | | 81 | .undef statvfs_h |
82 | | | 82 | |
83 | .include "../../devel/gettext-lib/buildlink3.mk" | | 83 | .include "../../devel/gettext-lib/buildlink3.mk" |
84 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.0 | | 84 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.0 |
85 | .include "../../devel/glib2/buildlink3.mk" | | 85 | .include "../../devel/glib2/buildlink3.mk" |
86 | .include "../../textproc/gtk-doc/buildlink3.mk" | | 86 | .include "../../textproc/gtk-doc/buildlink3.mk" |
87 | .include "../../x11/libXau/buildlink3.mk" | | 87 | .include "../../x11/libXau/buildlink3.mk" |
88 | .include "../../mk/bsd.pkg.mk" | | 88 | .include "../../mk/bsd.pkg.mk" |