[csw-devel] SF.net SVN: gar:[8426] csw/mgar/pkg/gkrellm/trunk
jake_goerzen at users.sourceforge.net
jake_goerzen at users.sourceforge.net
Tue Feb 9 05:24:02 CET 2010
Revision: 8426
http://gar.svn.sourceforge.net/gar/?rev=8426&view=rev
Author: jake_goerzen
Date: 2010-02-09 04:24:02 +0000 (Tue, 09 Feb 2010)
Log Message:
-----------
update to 2.3.4 work in progress
Modified Paths:
--------------
csw/mgar/pkg/gkrellm/trunk/Makefile
csw/mgar/pkg/gkrellm/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/gkrellm/trunk/files/Makefile
csw/mgar/pkg/gkrellm/trunk/files/server.Makefile
csw/mgar/pkg/gkrellm/trunk/files/src.Makefile
Modified: csw/mgar/pkg/gkrellm/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gkrellm/trunk/Makefile 2010-02-09 01:24:17 UTC (rev 8425)
+++ csw/mgar/pkg/gkrellm/trunk/Makefile 2010-02-09 04:24:02 UTC (rev 8426)
@@ -17,14 +17,10 @@
MASTER_SITES = http://members.dslextreme.com/users/billw/$(GARNAME)/
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
-#DISTFILES += $(call admfiles,CSWgkrellm, )
# We define upstream file regex so we can be notifed of new upstream software release
UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.bz2
-# Patch up makefile to honor environment variables
-#PATCHFILES = suncc.diff
-
# Disable configure scripts step
CONFIGURE_SCRIPTS =
@@ -33,16 +29,21 @@
BUILD_ARGS += MANDIR=$(mandir)
BUILD_ARGS += INCLUDEDIR=$(includedir)
BUILD_ARGS += LOCALEDIR=$(sharedstatedir)/locale
-BUILD_ARGS += enable_nls=0 solaris
+BUILD_ARGS += enable_nls=1 solaris
INSTALL_ARGS = INSTALLROOT=$(DESTDIR)
INSTALL_ARGS += INSTALLDIR=$(DESTDIR)$(bindir)
INSTALL_ARGS += MANDIR=$(DESTDIR)$(mandir)
INSTALL_ARGS += INCLUDEDIR=$(DESTDIR)$(includedir)
INSTALL_ARGS += LOCALEDIR=$(DESTDIR)$(sharedstatedir)/locale
-INSTALL_ARGS += enable_nls=0 install_solaris
+INSTALL_ARGS += enable_nls=1 install_solaris
# No test suite
TEST_SCRIPTS =
include gar/category.mk
+
+pre-configure-modulated:
+ @cp $(FILEDIR)/Makefile $(WORKROOTDIR)/build-$(MODULATIONS)/$(GARNAME)-$(GARVERSION)/Makefile
+ @cp $(FILEDIR)/src.Makefile $(WORKROOTDIR)/build-$(MODULATIONS)/$(GARNAME)-$(GARVERSION)/src/Makefile
+ @cp $(FILEDIR)/server.Makefile $(WORKROOTDIR)/build-$(MODULATIONS)/$(GARNAME)-$(GARVERSION)/server/Makefile
Modified: csw/mgar/pkg/gkrellm/trunk/checksums
===================================================================
--- csw/mgar/pkg/gkrellm/trunk/checksums 2010-02-09 01:24:17 UTC (rev 8425)
+++ csw/mgar/pkg/gkrellm/trunk/checksums 2010-02-09 04:24:02 UTC (rev 8426)
@@ -1,2 +1 @@
-d5543a439ee77950282d06b000048be7 download/gkrellm-2.3.2.tar.bz2
-22c2cef39ec5bd908049ea6b40ecd448 download/CSWgkrellm.gspec
+270917784da6bf1292aba0c82af726d6 gkrellm-2.3.4.tar.bz2
Added: csw/mgar/pkg/gkrellm/trunk/files/Makefile
===================================================================
--- csw/mgar/pkg/gkrellm/trunk/files/Makefile (rev 0)
+++ csw/mgar/pkg/gkrellm/trunk/files/Makefile 2010-02-09 04:24:02 UTC (rev 8426)
@@ -0,0 +1,325 @@
+# To make GKrellM for different systems, you can simply:
+# For Linux:
+# make
+# For FreeBSD 2.X:
+# make freebsd2
+# For FreeBSD 3.X or later:
+# make freebsd
+# For NetBSD 1.5 - 1.6.X
+# make netbsd1
+# For NetBSD 2.X
+# make netbsd2
+# For OpenBSD
+# make openbsd
+# For Darwin / Mac OS X
+# make darwin
+# For Solaris 2.x (8 tested so far):
+# make solaris
+# For libgtop if you have version 1.1.x installed:
+# make gtop
+# For libgtop if you have version 1.0.x installed in /usr/include & /usr/lib,
+# uncomment GTOP lines below:
+# make gtop1.0
+# or, eg. if libgtop 1.0 is installed in /opt/gnome/include & /opt/gnome/lib
+# make gtop1.0 GTOP_PREFIX=/opt/gnome
+#
+# Then:
+# make install
+# To override default install locations /usr/local/bin and /usr/local/include
+# to, for example, /usr/bin and /usr/include:
+# make install INSTALLDIR=/usr/bin INCLUDEDIR=/usr/include
+#
+# ------------------------------------------------------------------
+# If you want to override the default behaviour for the above simple "make"
+# steps, then uncomment and edit the appropriate lines below.
+#
+# Default
+#--------
+EXTRAOBJS = md5c.o
+BINMODE = 755
+
+# FreeBSD 2.X
+#------------
+#SYS_LIBS = -lkvm
+#EXTRAOBJS =
+#BINMODE = 4111
+
+
+# FreeBSD 3.X or later
+#---------------------
+#SYS_LIBS = -lkvm -ldevstat
+#EXTRAOBJS =
+#BINMODE = 4111
+
+# NetBSD 1.5 - 1.6.X
+#------------------
+#SYS_LIBS=-lkvm
+#EXTRAOBJS =
+#MANDIR = $(INSTALLROOT)/man/man1
+
+# NetBSD
+#------------------
+#SYS_LIBS=-lkvm -lpthread
+#EXTRAOBJS =
+#MANDIR = $(INSTALLROOT)/man/man1
+
+# OpenBSD
+#------------------
+#SYS_LIBS=-lkvm -lpthread
+#EXTRAOBJS =
+#BINMODE=2755
+
+# Solaris 2.x
+#------------
+SYS_LIBS = -lkstat -lkvm -ldevinfo -lm -lnsl -lsocket -lresolv
+EXTRAOBJS = md5c.o
+BINMODE=2755
+LOCALEDIR = /opt/csw/share/locale
+
+# "make gtop1.0" defaults. If you don't have gnome or libgtop 1.1.x
+# installed, uncomment and edit these if necessary for a libgtop install.
+# Or, see below about specifying them on the command line. These are not
+# used if you "make gnome-gtop" or "make gtop".
+#-----------------------------------
+#GTOP_PREFIX = /usr
+#GTOP_INCLUDE = -I$(GTOP_PREFIX)/include
+#GTOP_LIBS = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau
+#GTOP_LIBS_D = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps
+#export GTOP_INCLUDE GTOP_LIBS GTOP_LIBS_D
+
+VERSION = 2.3.4
+
+INSTALLROOT ?= $(DESTDIR)$(PREFIX)
+
+ifeq ($(INSTALLROOT),)
+ INSTALLROOT = /usr/local
+endif
+
+INSTALLDIR = $(INSTALLROOT)/bin
+SINSTALLDIR ?= $(INSTALLDIR)
+MANDIR ?= $(INSTALLROOT)/share/man/man1
+SMANDIR ?= $(MANDIR)
+MANMODE = 644
+MANDIRMODE = 755
+INCLUDEDIR = $(INSTALLROOT)/include
+INCLUDEMODE = 644
+INCLUDEDIRMODE = 755
+INSTALL ?= install
+PKGCONFIGDIR ?= $(INSTALLROOT)/lib/pkgconfig
+LOCALEDIR ?= $(INSTALLROOT)/share/locale
+
+OS_NAME=$(shell uname -s)
+OS_RELEASE=$(shell uname -r)
+
+export SYS_LIBS EXTRAOBJS BINMODE
+export INSTALLDIR SINSTALLDIR INCLUDEDIR INCLUDEMODE INCLUDEDIRMODE LOCALEDIR
+export MANDIR SMANDIR MANDIRMODE MANMODE
+export OS_NAME OS_RELEASE
+
+enable_nls=1
+debug=0
+export enable_nls
+export debug
+
+all gkrellm: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} gkrellm)
+ (cd server && ${MAKE} gkrellmd)
+
+# win32 needs a Libs: line and ${prefix} for paths so we install a different
+# pkg-config file than what gets used on unix
+# TODO: move to src/Makefile and install a gkrellmd.pc from server/Makefile
+gkrellm.pc_win: Makefile
+ echo "prefix=$(INSTALLROOT)" > gkrellm.pc
+ echo "Name: GKrellM" >> gkrellm.pc
+ echo "Description: Extensible GTK system monitoring application" >> gkrellm.pc
+ echo "Version: $(VERSION)" >> gkrellm.pc
+ echo "Requires: gtk+-2.0 >= 2.0.0" >> gkrellm.pc
+ echo 'Cflags: -I$${prefix}/include' >> gkrellm.pc
+ echo 'Libs: -L$${prefix}/lib -lgkrellm' >> gkrellm.pc
+
+gkrellm.pc: Makefile
+ echo "prefix=$(INSTALLROOT)" > gkrellm.pc
+ echo "Name: GKrellM" >> gkrellm.pc
+ echo "Description: Extensible GTK system monitoring application" >> gkrellm.pc
+ echo "Version: $(VERSION)" >> gkrellm.pc
+ echo "Requires: gtk+-2.0 >= 2.0.0" >> gkrellm.pc
+ echo "Cflags: -I$(INCLUDEDIR)" >> gkrellm.pc
+
+install: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install)
+ (cd server && ${MAKE} install)
+
+uninstall:
+ (cd po && ${MAKE} uninstall)
+ (cd src && ${MAKE} uninstall)
+ (cd server && ${MAKE} uninstall)
+ rm -f $(PKGCONFIGDIR)/gkrellm.pc
+
+install_gkrellm.pc:
+ $(INSTALL) -d $(PKGCONFIGDIR)
+ $(INSTALL) -m $(INCLUDEMODE) -c gkrellm.pc $(PKGCONFIGDIR)
+
+install_darwin install_darwin9 install_macosx: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install STRIP="")
+ (cd server && ${MAKE} install STRIP="")
+
+install_freebsd: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install_freebsd)
+ (cd server && ${MAKE} install_freebsd)
+
+install_netbsd: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install_netbsd)
+ (cd server && ${MAKE} install_netbsd)
+
+install_openbsd: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install_openbsd)
+ (cd server && ${MAKE} install_openbsd)
+
+install_solaris: install_gkrellm.pc
+ (cd po && ${MAKE} install)
+ (cd src && ${MAKE} install_solaris)
+ (cd server && ${MAKE} install_solaris)
+
+install_windows:
+ (${MAKE} INSTALL=/bin/install install_gkrellm.pc)
+ (cd po && ${MAKE} \
+ INSTALL=/bin/install INSTALLDIR=$(INSTALLROOT) LOCALEDIR=$(INSTALLROOT)/share/locale \
+ install)
+ (cd src && ${MAKE} \
+ INSTALL=/bin/install INSTALLDIR=$(INSTALLROOT) LOCALEDIR=$(INSTALLROOT)/share/locale \
+ install_windows)
+ (cd server && ${MAKE} \
+ INSTALL=/bin/install SINSTALLDIR=$(INSTALLROOT) LOCALEDIR=$(INSTALLROOT)/share/locale \
+ install_windows)
+
+clean:
+ (cd po && ${MAKE} clean)
+ (cd src && ${MAKE} clean)
+ (cd server && ${MAKE} clean)
+ rm -f gkrellm.pc
+
+freebsd2: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} freebsd2)
+ (cd server && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm -lmd" gkrellmd )
+
+freebsd3 freebsd4 freebsd5 freebsd: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} freebsd)
+ (cd server && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat -lmd" gkrellmd )
+
+darwin: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} GTK_CONFIG=gtk-config STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS= SYS_LIBS="-lkvm -framework IOKit" \
+ LINK_FLAGS="-prebind -Wl,-bind_at_load -framework CoreFoundation -lX11" \
+ gkrellm )
+ (cd server && ${MAKE} GTK_CONFIG=gtk-config STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS= SYS_LIBS="-lkvm -framework IOKit" \
+ LINK_FLAGS="-prebind -Wl,-bind_at_load -framework CoreFoundation" \
+ gkrellmd )
+
+darwin9: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} GTK_CONFIG=gtk-config STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS= SYS_LIBS="-framework IOKit" \
+ LINK_FLAGS="-prebind -Wl,-bind_at_load -framework CoreFoundation -lX11" \
+ gkrellm )
+ (cd server && ${MAKE} GTK_CONFIG=gtk-config STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS= SYS_LIBS="-framework IOKit" \
+ LINK_FLAGS="-prebind -Wl,-bind_at_load -framework CoreFoundation" \
+ gkrellmd )
+
+macosx: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} macosx)
+ (cd server && ${MAKE} macosx)
+
+netbsd1: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm" \
+ SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -Wl,-R/usr/X11R6/lib" \
+ gkrellm )
+ (cd server && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm" gkrellmd )
+
+netbsd2: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm -pthread" \
+ SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -R/usr/X11R6/lib" \
+ gkrellm )
+ (cd server && ${MAKE} \
+ EXTRAOBJS= SYS_LIBS="-lkvm -pthread" gkrellmd )
+
+openbsd: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} \
+ PTHREAD_INC=-I${PREFIX}/include EXTRAOBJS= \
+ SYS_LIBS="-lkvm -pthread" gkrellm )
+ (cd server && ${MAKE} \
+ PTHREAD_INC=-I${PREFIX}/include EXTRAOBJS= \
+ SYS_LIBS="-lkvm -pthread" gkrellmd )
+
+solaris: gkrellm.pc
+ (cd po && ${MAKE} MSGFMT_OPT="-v -o" \
+ LOCALEDIR=/opt/csw/share/locale all)
+ifeq ($(OS_RELEASE),5.8)
+ (cd src && ${MAKE} CC=cc \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lresolv -lsocket -L/usr/openwin/lib -lX11 -lintl" \
+ LINK_FLAGS="-lm -lnsl -lsocket -lX11" gkrellm )
+ (cd server && ${MAKE} CC=cc \
+ CFLAGS="-DSOLARIS_8" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl -lintl" \
+ LINK_FLAGS="-lm -lnsl -lrt -lsocket" gkrellmd )
+else
+ (cd src && ${MAKE} CC=gcc \
+ CFLAGS="-Wno-implicit-int" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lresolv -lsocket -lX11" LINK_FLAGS="" gkrellm )
+ (cd server && ${MAKE} CC=gcc \
+ CFLAGS="-Wno-implicit-int" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl" LINK_FLAGS="" gkrellmd )
+endif
+
+gnome-gtop: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} GTOP_PREFIX="\`gnome-config --prefix libgtop\`" \
+ GTOP_INCLUDE="\`gnome-config --cflags libgtop\`" \
+ GTOP_LIBS="\`gnome-config --libs libgtop\`" \
+ SYS_LIBS= gkrellm )
+ (cd server && ${MAKE} GTOP_PREFIX="\`gnome-config --prefix libgtop\`" \
+ GTOP_INCLUDE="\`gnome-config --cflags libgtop\`" \
+ GTOP_LIBS_D="\`gnome-config --libs libgtop\`" \
+ SYS_LIBS= gkrellmd )
+
+gtop: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} GTOP_INCLUDE="\`libgtop-config --cflags\`" \
+ GTOP_LIBS="\`libgtop-config --libs\`" \
+ SYS_LIBS="-lXau" gkrellm )
+ (cd server && ${MAKE} GTOP_INCLUDE="\`libgtop-config --cflags\`" \
+ GTOP_LIBS_D="\`libgtop-config --libs\`" \
+ SYS_LIBS= gkrellmd )
+
+gtop1.0: gkrellm.pc
+ (cd po && ${MAKE} all)
+ (cd src && ${MAKE} gkrellm )
+ (cd server && ${MAKE} gkrellmd )
+
+windows: gkrellm.pc_win
+ (cd po && ${MAKE} LOCALEDIR="share/locale" all)
+ (cd src && ${MAKE} LOCALEDIR="share/locale" windows )
+ (cd server && ${MAKE} LOCALEDIR="share/locale" windows)
+
+msgmerge:
+ (cd po && ${MAKE} messages)
+ (cd po && ${MAKE} merge)
Added: csw/mgar/pkg/gkrellm/trunk/files/server.Makefile
===================================================================
--- csw/mgar/pkg/gkrellm/trunk/files/server.Makefile (rev 0)
+++ csw/mgar/pkg/gkrellm/trunk/files/server.Makefile 2010-02-09 04:24:02 UTC (rev 8426)
@@ -0,0 +1,252 @@
+PACKAGE_D ?= gkrellmd
+PKG_CONFIG ?= pkg-config
+BINMODE ?= 755
+BINEXT ?=
+
+INSTALLROOT ?= $(DESTDIR)$(PREFIX)
+ifeq ($(INSTALLROOT),)
+ INSTALLROOT = /usr/local
+endif
+
+SINSTALLDIR ?= $(INSTALLROOT)/bin
+INSTALLDIRMODE ?= 755
+
+INCLUDEDIR ?= $(INSTALLROOT)/include
+INCLUDEMODE ?= 644
+INCLUDEDIRMODE ?= 755
+
+LIBDIR ?= $(INSTALLROOT)/lib
+LIBDIRMODE ?= 755
+
+CFGDIR ?= $(INSTALLROOT)/etc
+CFGDIRMODE ?= 755
+CFGMODE ?= 644
+
+SMANDIR ?= $(INSTALLROOT)/share/man/man1
+MANMODE ?= 644
+MANDIRMODE ?= 755
+INSTALL ?= install
+EXTRAOBJS =
+
+SHARED_PATH = ../shared
+# Make GNU Make search for sources somewhere else as well
+VPATH = $(SHARED_PATH)
+
+ifeq ($(without-libsensors),yes)
+ CONFIGURE_ARGS += --without-libsensors
+endif
+ifeq ($(without-libsensors),1)
+ CONFIGURE_ARGS += --without-libsensors
+endif
+
+DUMMY_VAR := $(shell ./configure $(CONFIGURE_ARGS))
+
+HAVE_LIBSENSORS = $(shell grep -c HAVE_LIBSENSORS configure.h)
+ifeq ($(HAVE_LIBSENSORS),1)
+ SENSORS_LIBS ?= -lsensors
+endif
+
+
+CC ?= gcc
+STRIP ?= -s
+
+GKRELLMD_INCLUDES = gkrellmd.h $(SHARED_PATH)/log.h
+
+PKG_INCLUDE = `$(PKG_CONFIG) --cflags glib-2.0 gthread-2.0`
+PKG_LIB = `$(PKG_CONFIG) --libs glib-2.0 gmodule-2.0 gthread-2.0`
+
+GLIB12_INCLUDE = `glib-config --cflags`
+GLIB12_LIB = `glib-config --libs glib gmodule`
+
+FLAGS = $(PKG_INCLUDE)
+
+ifeq ($(glib12),1)
+ FLAGS = -O2 $(GLIB12_INCLUDE)
+endif
+ifeq ($(glib12),yes)
+ FLAGS = -O2 $(GLIB12_INCLUDE)
+endif
+FLAGS += $(GTOP_INCLUDE) $(PTHREAD_INC) -I.. -I$(SHARED_PATH) -DGKRELLM_SERVER
+
+LIBS = $(PKG_LIB)
+ifeq ($(glib12),1)
+ LIBS = $(GLIB12_LIB)
+endif
+ifeq ($(glib12),yes)
+ LIBS = $(GLIB12_LIB)
+endif
+LIBS += $(GTOP_LIBS_D) $(SYS_LIBS) $(SENSORS_LIBS)
+
+ifeq ($(debug),1)
+ FLAGS += -g
+endif
+ifeq ($(debug),yes)
+ FLAGS += -g
+endif
+
+ifeq ($(profile),1)
+ FLAGS += -g -pg
+endif
+ifeq ($(profile),yes)
+ FLAGS += -g -pg
+endif
+
+ifeq ($(enable_nls),1)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+ifeq ($(enable_nls),yes)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+
+ifneq ($(PACKAGE_D),gkrellmd)
+ FLAGS += -DPACKAGE_D=\"$(PACKAGE_D)\"
+endif
+
+ifeq ($(HAVE_GETADDRINFO),1)
+ FLAGS += -DHAVE_GETADDRINFO
+endif
+
+override CC += $(FLAGS)
+
+OS_NAME=$(shell uname -s)
+OS_RELEASE=$(shell uname -r)
+
+OBJS = main.o monitor.o mail.o plugins.o glib.o utils.o sysdeps-unix.o log.o
+
+all: gkrellmd
+
+gkrellmd: $(OBJS) $(EXTRAOBJS)
+ $(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd $(LIBS) $(LINK_FLAGS)
+
+static: $(OBJS) $(EXTRAOBJS)
+ $(CC) $(OBJS) $(EXTRAOBJS) -o gkrellmd.static -static \
+ $(LIBS) $(LINK_FLAGS)
+
+freebsd2:
+ $(MAKE) GTK_CONFIG=gtk12-config \
+ EXTRAOBJS= SYS_LIBS="-lkvm -lmd" gkrellmd
+
+freebsd3 freebsd:
+ $(MAKE) GTK_CONFIG=gtk12-config \
+ EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat -lmd" gkrellmd
+
+darwin:
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="-lkvm -lmd5" \
+ LINK_FLAGS="-flat_namespace -undefined warning" gkrellmd
+
+darwin9:
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="-lmd5" \
+ LINK_FLAGS="-flat_namespace -undefined warning" gkrellmd
+
+macosx:
+ $(MAKE) STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS= SYS_LIBS="-lkvm" \
+ LINK_FLAGS="-flat_namespace -undefined warning" \
+ gkrellmd
+
+netbsd1:
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm" gkrellmd
+
+netbsd2:
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -pthread" gkrellmd
+
+openbsd:
+ $(MAKE) SYS_LIBS="-lkvm -pthread" gkrellmd
+
+solaris:
+ifeq ($(OS_RELEASE),5.8)
+ $(MAKE) CFLAGS="-Wno-implicit-int" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl -lintl" \
+ LINK_FLAGS="" gkrellmd
+else
+ $(MAKE) CFLAGS="-Wno-implicit-int" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo -lsocket -lnsl" \
+ LINK_FLAGS="" gkrellmd
+endif
+
+windows: libgkrellmd.a
+ $(MAKE) \
+ CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0500 -DWINVER=0x0500" \
+ LINK_FLAGS="${LINK_FLAGS} -mconsole" \
+ EXTRAOBJS="win32-resource.o win32-plugin.o" \
+ SYS_LIBS=" -llargeint -lws2_32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
+ gkrellmd
+
+install: install_bin install_inc install_man
+
+install_bin:
+ $(INSTALL) -d -m $(INSTALLDIRMODE) $(SINSTALLDIR)
+ $(INSTALL) -c $(STRIP) -m $(BINMODE) $(PACKAGE_D)$(BINEXT) $(SINSTALLDIR)/$(PACKAGE_D)$(BINEXT)
+
+install_inc:
+ $(INSTALL) -d -m $(INCLUDEDIRMODE) $(INCLUDEDIR)/gkrellm2
+ $(INSTALL) -c -m $(INCLUDEMODE) $(GKRELLMD_INCLUDES) $(INCLUDEDIR)/gkrellm2
+
+install_man:
+ $(INSTALL) -d -m $(MANDIRMODE) $(SMANDIR)
+ $(INSTALL) -c -m $(MANMODE) ../gkrellmd.1 $(SMANDIR)/$(PACKAGE_D).1
+
+install_cfg:
+ $(INSTALL) -d -m $(CFGDIRMODE) $(CFGDIR)
+ $(INSTALL) -c -m $(CFGMODE) gkrellmd.conf $(CFGDIR)/gkrellmd.conf
+
+uninstall:
+ rm -f $(SINSTALLDIR)/$(PACKAGE_D)
+ rm -f $(SMANDIR)/$(PACKAGE_D).1
+
+install_darwin install_darwin9 install_macosx:
+ $(MAKE) install STRIP=
+
+install_freebsd:
+ $(MAKE) install
+ chgrp kmem $(SINSTALLDIR)/$(PACKAGE_D)
+ chmod g+s $(SINSTALLDIR)/$(PACKAGE_D)
+
+install_netbsd:
+ $(MAKE) SMANDIR="$(INSTALLROOT)/man/man1" install
+
+install_openbsd:
+ $(MAKE) install
+ chgrp kmem $(SINSTALLDIR)/$(PACKAGE_D)
+ chmod g+sx $(SINSTALLDIR)/$(PACKAGE_D)
+
+install_solaris:
+ $(MAKE) install INSTALL=/usr/ucb/install
+ chgrp sys $(SINSTALLDIR)/$(PACKAGE_D)
+ chmod g+s $(SINSTALLDIR)/$(PACKAGE_D)
+
+install_windows: install_inc install_cfg
+ $(MAKE) BINEXT=".exe" install_bin
+ $(INSTALL) -d -m $(LIBDIRMODE) $(LIBDIR)
+ $(INSTALL) -c -m $(BINMODE) libgkrellmd.a $(LIBDIR)
+
+clean:
+ $(RM) *.o *~ *.bak configure.h configure.log gkrellmd gkrellmd.exe \
+ libgkrellmd.a core
+
+SYSDEPS = ../src/sysdeps/bsd-common.c ../src/sysdeps/bsd-net-open.c \
+ ../src/sysdeps/darwin.c \
+ ../src/sysdeps/freebsd.c ../src/sysdeps/gtop.c \
+ ../src/sysdeps/linux.c ../src/sysdeps/netbsd.c \
+ ../src/sysdeps/openbsd.c ../src/sysdeps/sensors-common.c \
+ ../src/sysdeps/solaris.c ../src/sysdeps/win32.c
+
+GKRELLMD_H = gkrellmd.h gkrellmd-private.h
+
+main.o: main.c $(GKRELLMD_H)
+monitor.o: monitor.c $(GKRELLMD_H)
+mail.o: mail.c $(GKRELLMD_H)
+plugins.o: plugins.c $(GKRELLMD_H)
+glib.o: glib.c $(GKRELLMD_H)
+utils.o: utils.c $(GKRELLMD_H)
+sysdeps-unix.o: sysdeps-unix.c ../src/gkrellm-sysdeps.h $(SYSDEPS) $(GKRELLMD_H)
+log.o: $(SHARED_PATH)/log.c $(SHARED_PATH)/log.h $(GKRELLMD_H)
+win32-gui.o: win32-gui.c
+win32-plugin.o: win32-plugin.c win32-plugin.h $(GKRELLMD_H)
+win32-resource.o: win32-resource.rc win32-resource.h
+ windres -I.. -o win32-resource.o win32-resource.rc
+win32-libgkrellmd.o: win32-libgkrellmd.c win32-plugin.h $(GKRELLMD_H)
+libgkrellmd.a: win32-libgkrellmd.o
+ ar -cr libgkrellmd.a win32-libgkrellmd.o
Added: csw/mgar/pkg/gkrellm/trunk/files/src.Makefile
===================================================================
--- csw/mgar/pkg/gkrellm/trunk/files/src.Makefile (rev 0)
+++ csw/mgar/pkg/gkrellm/trunk/files/src.Makefile 2010-02-09 04:24:02 UTC (rev 8426)
@@ -0,0 +1,369 @@
+PACKAGE ?= gkrellm
+PKG_CONFIG ?= pkg-config
+BINMODE ?= 755
+BINEXT ?=
+
+INSTALLROOT ?= $(DESTDIR)$(PREFIX)
+ifeq ($(INSTALLROOT),)
+ INSTALLROOT = /usr/local
+endif
+
+INSTALLDIR ?= $(INSTALLROOT)/bin
+INSTALLDIRMODE ?= 755
+INCLUDEDIR ?= $(INSTALLROOT)/include
+INCLUDEMODE ?= 644
+INCLUDEDIRMODE ?= 755
+LIBDIR ?= $(INSTALLROOT)/lib
+LIBDIRMODE ?= 755
+MANDIR ?= $(INSTALLROOT)/share/man/man1
+MANMODE ?= 644
+MANDIRMODE ?= 755
+INSTALL ?= install
+SMC_LIBS ?= -lSM -lICE
+
+X11_LIBS ?= -L/usr/openwin/lib -lX11
+
+SHARED_PATH = ../shared
+# Make GNU Make search for sources somewhere else as well
+VPATH = $(SHARED_PATH)
+
+
+ifeq ($(without-gnutls),1)
+ CONFIGURE_ARGS += --without-gnutls
+endif
+ifeq ($(without-gnutls),yes)
+ CONFIGURE_ARGS += --without-gnutls
+endif
+ifeq ($(without-ssl),1)
+ CONFIGURE_ARGS += --without-ssl
+endif
+ifeq ($(without-ssl),yes)
+ CONFIGURE_ARGS += --without-ssl
+endif
+ifeq ($(without-libsensors),yes)
+ CONFIGURE_ARGS += --without-libsensors
+endif
+ifeq ($(without-libsensors),1)
+ CONFIGURE_ARGS += --without-libsensors
+endif
+ifeq ($(without-ntlm),yes)
+ CONFIGURE_ARGS += --without-ntlm
+endif
+ifeq ($(without-ntlm),1)
+ CONFIGURE_ARGS += --without-ntlm
+endif
+DUMMY_VAR := $(shell ./configure $(CONFIGURE_ARGS))
+
+HAVE_GNUTLS = $(shell grep -c HAVE_GNUTLS configure.h)
+HAVE_SSL = $(shell grep -c HAVE_SSL configure.h)
+HAVE_NTLM = $(shell grep -c HAVE_NTLM configure.h)
+HAVE_LIBSENSORS = $(shell grep -c HAVE_LIBSENSORS configure.h)
+
+ifeq ($(HAVE_GNUTLS),1)
+ SSL_LIBS ?= -lgnutls-openssl
+else
+ifeq ($(HAVE_SSL),1)
+ SSL_LIBS ?= -lssl -lcrypto
+else
+ EXTRAOBJS ?= md5c.o
+endif
+endif
+
+ifeq ($(HAVE_NTLM),1)
+ NTLM_INCLUDES = `$(PKG_CONFIG) --cflags libntlm`
+ NTLM_LIBS = `$(PKG_CONFIG) --libs libntlm`
+endif
+
+ifeq ($(HAVE_LIBSENSORS),1)
+ SENSORS_LIBS ?= -lsensors
+endif
+
+CC ?= gcc
+STRIP ?= -s
+
+GKRELLM_INCLUDES = gkrellm.h gkrellm-public-proto.h $(SHARED_PATH)/log.h
+
+PKG_INCLUDE = `$(PKG_CONFIG) --cflags gtk+-2.0 gthread-2.0`
+PKG_LIB = `$(PKG_CONFIG) --libs gtk+-2.0 gthread-2.0`
+
+FLAGS = -I.. -I$(SHARED_PATH) $(PKG_INCLUDE) $(GTOP_INCLUDE) $(PTHREAD_INC) \
+ ${NTLM_INCLUDES} -DGKRELLM_CLIENT
+
+LIBS = $(PKG_LIB) $(GTOP_LIBS) $(SMC_LIBS) $(SYS_LIBS) $(SSL_LIBS) $(SENSORS_LIBS) \
+ $(NTLM_LIBS) $(X11_LIBS)
+
+ifeq ($(debug),1)
+ FLAGS += -g
+endif
+ifeq ($(debug),yes)
+ FLAGS += -g
+endif
+
+ifeq ($(profile),1)
+ FLAGS += -g -pg
+endif
+ifeq ($(profile),yes)
+ FLAGS += -g -pg
+endif
+
+ifeq ($(enable_nls),1)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+ifeq ($(enable_nls),yes)
+ FLAGS += -DENABLE_NLS -DLOCALEDIR=\"$(LOCALEDIR)\"
+endif
+
+ifneq ($(PACKAGE),gkrellm)
+ FLAGS += -DPACKAGE=\"$(PACKAGE)\"
+endif
+
+ifeq ($(HAVE_GETADDRINFO),1)
+ FLAGS += -DHAVE_GETADDRINFO
+endif
+
+
+override CC += $(FLAGS)
+
+OBJS = main.o alerts.o battery.o base64.o clock.o cpu.o disk.o fs.o \
+ hostname.o inet.o mail.o mem.o net.o proc.o sensors.o uptime.o \
+ chart.o panel.o config.o gui.o krell.o plugins.o pixops.o \
+ client.o utils.o sysdeps-unix.o deprecated.o log.o
+
+UNIXOBJS = winops-x11.o
+
+all: gkrellm
+
+gkrellm: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
+ $(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm $(LIBS) $(LINK_FLAGS)
+
+static: check_env $(OBJS) $(UNIXOBJS) $(EXTRAOBJS)
+ $(CC) $(OBJS) $(UNIXOBJS) $(EXTRAOBJS) -o gkrellm.static -static \
+ $(LIBS) $(LINK_FLAGS)
+
+freebsd2:
+ifeq ($(HAVE_SSL),1)
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm" gkrellm
+else
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -lmd" gkrellm
+endif
+
+freebsd3 freebsd:
+ifeq ($(HAVE_SSL),1)
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat" gkrellm
+else
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -ldevstat -lmd" gkrellm
+endif
+
+darwin:
+ifeq ($(HAVE_SSL),1)
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="-lkvm" \
+ gkrellm
+else
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="-lkvm -lmd5" \
+ gkrellm
+endif
+
+darwin9:
+ifeq ($(HAVE_SSL),1)
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="" \
+ gkrellm
+else
+ $(MAKE) GTK_CONFIG=gtk-config STRIP= \
+ EXTRAOBJS= SYS_LIBS="-lmd5" \
+ gkrellm
+endif
+
+macosx:
+ $(MAKE) STRIP= HAVE_GETADDRINFO=1 \
+ EXTRAOBJS="winops-gtk-mac.o" \
+ LINK_FLAGS="-Wl,-bind_at_load -framework CoreFoundation" \
+ SYS_LIBS="-lkvm -framework IOKit" \
+ SMC_LIBS="" \
+ UNIXOBJS="" \
+ gkrellm
+
+netbsd1:
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm" \
+ SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -Wl,-R/usr/X11R6/lib" \
+ gkrellm
+netbsd2:
+ $(MAKE) EXTRAOBJS= SYS_LIBS="-lkvm -pthread" \
+ SMC_LIBS="-L/usr/X11R6/lib -lSM -lICE -R/usr/X11R6/lib" \
+ gkrellm
+
+openbsd:
+ $(MAKE) GTK_CONFIG=gtk-config GTOP_LIBS= SYS_LIBS="-lkvm -pthread" gkrellm
+
+solaris:
+ $(MAKE) CFLAGS="-Wno-implicit-int" \
+ SYS_LIBS="-lkstat -lkvm -ldevinfo" gkrellm
+
+windows: libgkrellm.a
+ $(MAKE) \
+ CFLAGS="${CFLAGS} -D_WIN32_WINNT=0x0500 -DWINVER=0x0500" \
+ LINK_FLAGS="${LINK_FLAGS} -mwindows" \
+ EXTRAOBJS="${EXTRAOBJS} winops-win32.o win32-plugin.o win32-resource.o" \
+ SYS_LIBS=" -llargeint -lws2_32 -lpdh -lnetapi32 -liphlpapi -lntdll -lintl" \
+ SMC_LIBS="" \
+ UNIXOBJS="" \
+ gkrellm
+
+install: install_bin install_inc install_man
+
+install_bin:
+ $(INSTALL) -d -m $(INSTALLDIRMODE) $(INSTALLDIR)
+ $(INSTALL) -c $(STRIP) -m $(BINMODE) $(PACKAGE)$(BINEXT) $(INSTALLDIR)/$(PACKAGE)$(BINEXT)
+
+install_inc:
+ $(INSTALL) -d -m $(INCLUDEDIRMODE) $(INCLUDEDIR)/gkrellm2
+ $(INSTALL) -c -m $(INCLUDEMODE) $(GKRELLM_INCLUDES) $(INCLUDEDIR)/gkrellm2
+
+install_man:
+ $(INSTALL) -d -m $(MANDIRMODE) $(MANDIR)
+ $(INSTALL) -c -m $(MANMODE) ../gkrellm.1 $(MANDIR)/$(PACKAGE).1
+
+uninstall:
+ $(RM) $(INSTALLDIR)/$(PACKAGE)
+ $(RM) -r $(INCLUDEDIR)/gkrellm2
+ $(RM) $(MANDIR)/$(PACKAGE).1
+ $(RM) $(LIBDIR)/libgkrellm.a
+
+install_darwin install_darwin9 install_macosx:
+ $(MAKE) install STRIP=
+
+install_freebsd:
+ $(MAKE) install
+ chgrp kmem $(INSTALLDIR)/$(PACKAGE)
+ chmod g+s $(INSTALLDIR)/$(PACKAGE)
+
+install_netbsd:
+ $(MAKE) MANDIR="$(INSTALLROOT)/man/man1" install
+
+install_openbsd:
+ $(MAKE) install
+ chgrp kmem $(INSTALLDIR)/$(PACKAGE)
+ chmod g+sx $(INSTALLDIR)/$(PACKAGE)
+
+install_solaris:
+ $(MAKE) install INSTALL=/usr/ucb/install
+ chgrp sys $(INSTALLDIR)/$(PACKAGE)
+ chmod g+s $(INSTALLDIR)/$(PACKAGE)
+
+install_windows:
+ $(MAKE) BINEXT=".exe" install_bin install_inc
+ $(INSTALL) -d -m $(LIBDIRMODE) $(LIBDIR)
+ $(INSTALL) -c -m $(BINMODE) libgkrellm.a $(LIBDIR)
+
+clean:
+ $(RM) *.o *~ *.bak configure.h configure.log gkrellm gkrellm.exe \
+ libgkrellm.a sysdeps/*.o core
+
+IMAGES = \
+ ../pixmaps/frame_top.xpm \
+ ../pixmaps/frame_bottom.xpm \
+ ../pixmaps/frame_left.xpm \
+ ../pixmaps/frame_right.xpm \
+ \
+ ../pixmaps/button_panel_out.xpm \
+ ../pixmaps/button_panel_in.xpm \
+ ../pixmaps/button_meter_out.xpm \
+ ../pixmaps/button_meter_in.xpm \
+ \
+ ../pixmaps/bg_chart.xpm \
+ ../pixmaps/bg_grid.xpm \
+ ../pixmaps/bg_panel.xpm \
+ ../pixmaps/bg_meter.xpm \
+ \
+ ../pixmaps/data_in.xpm \
+ ../pixmaps/data_in_grid.xpm \
+ ../pixmaps/data_out.xpm \
+ ../pixmaps/data_out_grid.xpm \
+ \
+ ../pixmaps/net/decal_net_leds.xpm \
+ ../pixmaps/decal_misc.xpm \
+ ../pixmaps/decal_alarm.xpm \
+ ../pixmaps/decal_warn.xpm \
+ \
+ ../pixmaps/krell_panel.xpm \
+ ../pixmaps/krell_meter.xpm \
+ ../pixmaps/krell_slider.xpm \
+ ../pixmaps/krell_mini.xpm \
+ ../pixmaps/fs/bg_panel.xpm \
+ ../pixmaps/host/bg_panel.xpm \
+ ../pixmaps/mail/decal_mail.xpm \
+ ../pixmaps/mail/krell_mail.xpm \
+ ../pixmaps/mail/krell_mail_daemon.xpm \
+ ../pixmaps/timer/bg_panel.xpm \
+ ../pixmaps/timer/bg_timer.xpm \
+ ../pixmaps/timer/decal_timer_button.xpm \
+ ../pixmaps/uptime/bg_panel.xpm \
+ \
+ ../pixmaps/gkrellmms/bg_panel.xpm \
+ ../pixmaps/gkrellmms/spacer_top.xpm \
+ ../pixmaps/gkrellmms/spacer_bottom.xpm \
+ ../pixmaps/gkrellmms/bg_scroll.xpm \
+ ../pixmaps/pmu/bg_panel.xpm \
+ ../pixmaps/pmu/spacer_top.xpm \
+ ../pixmaps/pmu/spacer_bottom.xpm \
+ ../pixmaps/volume/bg_panel.xpm \
+ ../pixmaps/volume/spacer_top.xpm \
+ ../pixmaps/volume/spacer_bottom.xpm \
+ ../pixmaps/bg_separator.xpm
+
+SYSDEPS_SRC = sysdeps/bsd-common.c sysdeps/bsd-net-open.c sysdeps/freebsd.c \
+ sysdeps/gtop.c sysdeps/linux.c sysdeps/netbsd.c sysdeps/openbsd.c \
+ sysdeps/solaris.c sysdeps/darwin.c sysdeps/sensors-common.c \
+ sysdeps/win32.c
+
+GKRELLM_H = gkrellm.h gkrellm-private.h
+GKRELLM_H_SYS = gkrellm.h gkrellm-public-proto.h gkrellm-private.h \
+ gkrellm-sysdeps.h
+
+main.o: main.c $(GKRELLM_H)
+alerts.o: alerts.c $(GKRELLM_H)
+battery.o: battery.c $(GKRELLM_H_SYS)
+base64.o: base64.c
+clock.o: clock.c $(GKRELLM_H_SYS)
+cpu.o: cpu.c $(GKRELLM_H_SYS)
+disk.o: disk.c $(GKRELLM_H_SYS)
+fs.o: fs.c $(GKRELLM_H_SYS)
+hostname.o: hostname.c $(GKRELLM_H_SYS)
+inet.o: inet.c $(GKRELLM_H_SYS)
+mail.o: mail.c md5.h $(GKRELLM_H_SYS)
+md5c.o: md5.h
+mem.o: mem.c $(GKRELLM_H_SYS)
+net.o: net.c $(GKRELLM_H_SYS)
+proc.o: proc.c $(GKRELLM_H_SYS)
+sensors.o: sensors.c $(GKRELLM_H_SYS) ../pixmaps/sensors/bg_volt.xpm
+uptime.o: uptime.c $(GKRELLM_H_SYS)
+chart.o: chart.c $(GKRELLM_H)
+panel.o: panel.c $(GKRELLM_H)
+config.o: config.c $(GKRELLM_H) $(IMAGES)
+krell.o: krell.c $(GKRELLM_H)
+gui.o: gui.c $(GKRELLM_H)
+plugins.o: plugins.c $(GKRELLM_H)
+pixops.o: pixops.c $(GKRELLM_H)
+client.o: client.c $(GKRELLM_H)
+utils.o: utils.c $(GKRELLM_H)
+sysdeps-unix.o: sysdeps-unix.c $(GKRELLM_H_SYS) $(SYSDEPS_SRC)
+log.o: $(SHARED_PATH)/log.c $(SHARED_PATH)/log.h $(GKRELLM_H)
+deprecated.o: deprecated.c $(GKRELLM_H)
+
+winops-x11.o: winops-x11.c $(GKRELLM_H)
+winops-gtk-mac.o: winops-gtk-mac.c $(GKRELLM_H)
+winops-win32.o: winops-win32.c $(GKRELLM_H)
+
+win32-plugin.o: win32-plugin.c win32-plugin.h
+win32-libgkrellm.o: win32-libgkrellm.c win32-plugin.h
+win32-resource.o: win32-resource.rc win32-resource.h
+ windres -o win32-resource.o win32-resource.rc
+
+libgkrellm.a: win32-libgkrellm.o
+ ar -cr libgkrellm.a win32-libgkrellm.o
+
+# Checks if the build environment is ok
+check_env:
+ $(PKG_CONFIG) --atleast-version=2.4 gtk+-2.0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list