Support the GKRELLM_SERVER_ONLY option to allow server-only installation.
Bump PORTREVISION due to changed file locations. PR: ports/82200, see also ports/82197 Submitted by: Jonathan Noack <noackjr@alumni.rice.edu> Approved by: david@pinko.net (maintainer, timeout 4 months)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= gkrelltop
|
||||
PORTVERSION= 2.2.6
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://psychology.rutgers.edu/~zaimi/html/gkrelltop/
|
||||
DISTNAME= ${PORTNAME}_2.2-6
|
||||
@@ -15,17 +15,28 @@ DISTNAME= ${PORTNAME}_2.2-6
|
||||
MAINTAINER= david@pinko.net
|
||||
COMMENT= Plugin for gkrellm 2.x shows top three processes, requires procfs
|
||||
|
||||
RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2
|
||||
BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2
|
||||
RUN_DEPENDS= gkrellmd:${PORTSDIR}/sysutils/gkrellm2
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
|
||||
USE_REINPLACE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= INSTALLDIR=${PREFIX}/libexec/gkrellm2/plugins \
|
||||
INSTALLDIRD=${PREFIX}/libexec/gkrellm2/plugins
|
||||
USE_X_PREFIX= yes
|
||||
MAKE_ARGS= INSTALLDIR=${X11BASE}/libexec/gkrellm2/plugins \
|
||||
INSTALLDIRD=${PREFIX}/libexec/gkrellm2/plugins-gkrellmd
|
||||
|
||||
.if defined(GKRELLM_SERVER_ONLY)
|
||||
ALL_TARGET= server
|
||||
INSTALL_TARGET= install-server
|
||||
PLIST_SUB+= CLIENT="@comment "
|
||||
.else
|
||||
PLIST_SUB+= CLIENT=""
|
||||
.endif
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
PLIST_FILES= libexec/gkrellm2/plugins/gkrelltop.so \
|
||||
libexec/gkrellm2/plugins/gkrelltopd.so
|
||||
post-patch:
|
||||
.if defined(GKRELLM_SERVER_ONLY)
|
||||
${REINPLACE_CMD} 's/^\(PKG.*\)gkrellm/\1gkrellmd/' ${WRKSRC}/configure
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Sat Dec 11 12:50:39 2004
|
||||
+++ Makefile Sat Dec 25 23:35:53 2004
|
||||
--- Makefile.orig Fri Dec 10 19:50:39 2004
|
||||
+++ Makefile Mon Jun 13 08:29:12 2005
|
||||
@@ -28,9 +28,9 @@
|
||||
OSFLAG = `uname | tr '[:lower:]' '[:upper:]'`
|
||||
SHELL=/bin/sh
|
||||
@@ -17,12 +17,12 @@
|
||||
|
||||
ifeq ($(WANT_GLIB12),yes)
|
||||
-CFLAGSD = -I/usr/X11R6/include -D$(OSFLAG) -fPIC -Wall `glib-config --cflags`
|
||||
+CFLAGSD = -I${X11BASE}/include -D$(OSFLAG) -fPIC -Wall `glib-config --cflags`
|
||||
+CFLAGSD = -I${PREFIX}/include -D$(OSFLAG) -fPIC -Wall `glib-config --cflags`
|
||||
LIBSD = `glib-config --libs`
|
||||
CONFIGURE_ARGS += --with-glib12
|
||||
else
|
||||
-CFLAGSD = -D$(OSFLAG) -fPIC -Wall `pkg-config glib-2.0 --cflags`
|
||||
+CFLAGSD = -D$(OSFLAG) -I${X11BASE}/include -fPIC -Wall `pkg-config glib-2.0 --cflags`
|
||||
+CFLAGSD = -D$(OSFLAG) -I${PREFIX}/include -fPIC -Wall `pkg-config glib-2.0 --cflags`
|
||||
LIBSD = `pkg-config glib-2.0 --libs`
|
||||
endif
|
||||
INSTALLDIRD=$(HOME)/.gkrellm2/plugins-gkrellmd
|
||||
|
||||
3
sysutils/gkrelltop/pkg-plist
Normal file
3
sysutils/gkrelltop/pkg-plist
Normal file
@@ -0,0 +1,3 @@
|
||||
libexec/gkrellm2/plugins-gkrellmd/gkrelltopd.so
|
||||
%%CLIENT%%@cwd %%X11BASE%%
|
||||
%%CLIENT%%libexec/gkrellm2/plugins/gkrelltop.so
|
||||
Reference in New Issue
Block a user