aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-09-09 05:22:22 +0800
committerume <ume@FreeBSD.org>2002-09-09 05:22:22 +0800
commit4b3ea0571a4b0c7a80b490a08089520b8408d8b7 (patch)
tree4b5b53dbf65c5df1ae0011234f861a69cad1ff0f
parentdd4865b66c976b4224f26a78d57c06f61a3426a9 (diff)
downloadfreebsd-ports-gnome-4b3ea0571a4b0c7a80b490a08089520b8408d8b7.tar.gz
freebsd-ports-gnome-4b3ea0571a4b0c7a80b490a08089520b8408d8b7.tar.zst
freebsd-ports-gnome-4b3ea0571a4b0c7a80b490a08089520b8408d8b7.zip
Add GKRELLM_SERVER_ONLY option which build/install only gkrellmd
with only glib12 required. Requested by: Hendrik Scholz <hscholz@raisdorf.net>
-rw-r--r--sysutils/gkrellm2/Makefile19
-rw-r--r--sysutils/gkrellm2/files/patch-server::Makefile15
-rw-r--r--sysutils/gkrellm2/pkg-plist36
3 files changed, 47 insertions, 23 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile
index 09125dd4e336..55fd0cf2fcb6 100644
--- a/sysutils/gkrellm2/Makefile
+++ b/sysutils/gkrellm2/Makefile
@@ -14,13 +14,25 @@ MASTER_SITE_SUBDIR= ume
MAINTAINER= ume@FreeBSD.org
+.if defined(GKRELLM_SERVER_ONLY)
+BUILD_WRKSRC= ${WRKSRC}/server
+INSTALL_WRKSRC= ${WRKSRC}/server
+USE_GNOMENG= yes
+USE_GNOME= glib12
+.else
LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20
+.endif
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
+.if defined(GKRELLM_SERVER_ONLY)
+PLIST_SUB= CLIENT="@comment "
+.else
+PLIST_SUB= CLIENT=""
MAN1= gkrellm.1
+.endif
MAN8= gkrellmd.8
DOCS= COPYRIGHT CREDITS README Themes.html
@@ -36,14 +48,21 @@ INSTALL_TARGET= install_netbsd
MAKE_ENV+= LOCALEDIR=${PREFIX}/share/locale INCLUDEDIR=${PREFIX}/include \
INSTALLDIR=${PREFIX}/bin SINSTALLDIR=${PREFIX}/bin \
MANDIR=${MANPREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8
+.if defined(GKRELLM_SERVER_ONLY)
+MAKE_ENV+= glib12=1
+.endif
CFLAGS+= -DSYSTEM_THEMES_DIR='\"${PREFIX}/share/gkrellm2/themes\"' \
-DSYSTEM_PLUGINS_DIR='\"${PREFIX}/libexec/gkrellm2/plugins\"' \
-DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"'
post-install:
+.if defined(GKRELLM_SERVER_ONLY)
+ ${INSTALL_MAN} ${WRKSRC}/gkrellmd.1 ${MANPREFIX}/man/man8/gkrellmd.8
+.else
@${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
@${MKDIR} ${PREFIX}/share/gkrellm2/themes
+.endif
@${SED} -e "s;%%PREFIX%%;${PREFIX};g" \
${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh.sample
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/gkrellmd.sh.sample
diff --git a/sysutils/gkrellm2/files/patch-server::Makefile b/sysutils/gkrellm2/files/patch-server::Makefile
index b73e250c2188..c467981074ac 100644
--- a/sysutils/gkrellm2/files/patch-server::Makefile
+++ b/sysutils/gkrellm2/files/patch-server::Makefile
@@ -1,10 +1,15 @@
Index: server/Makefile
diff -u server/Makefile.orig server/Makefile
---- server/Makefile.orig Tue Aug 6 21:56:11 2002
-+++ server/Makefile Thu Aug 29 17:03:46 2002
-@@ -13,9 +13,9 @@
- GLIB12_INCLUDE = `glib-config --cflags gthread`
- GLIB12_LIB = `glib-config --libs gthread`
+--- server/Makefile.orig Thu Sep 5 00:44:39 2002
++++ server/Makefile Mon Sep 9 05:29:56 2002
+@@ -10,12 +10,12 @@
+ PKG_INCLUDE = `$(PKG_CONFIG) --cflags glib-2.0 gthread-2.0`
+ PKG_LIB = `$(PKG_CONFIG) --libs glib-2.0 gthread-2.0`
+
+-GLIB12_INCLUDE = `glib-config --cflags gthread`
+-GLIB12_LIB = `glib-config --libs gthread`
++GLIB12_INCLUDE = `glib12-config --cflags gthread`
++GLIB12_LIB = `glib12-config --libs gthread`
-FLAGS = -O2 -I.. $(PKG_INCLUDE) $(GTOP_INCLUDE)
+FLAGS = -I.. $(PKG_INCLUDE) $(GTOP_INCLUDE) -I$(LOCALBASE)/include
diff --git a/sysutils/gkrellm2/pkg-plist b/sysutils/gkrellm2/pkg-plist
index 6222997372d8..9978b38da5ad 100644
--- a/sysutils/gkrellm2/pkg-plist
+++ b/sysutils/gkrellm2/pkg-plist
@@ -1,28 +1,28 @@
-bin/gkrellm
+%%CLIENT%%bin/gkrellm
bin/gkrellmd
-include/gkrellm2/gkrellm.h
-include/gkrellm2/gkrellm-public-proto.h
+%%CLIENT%%include/gkrellm2/gkrellm.h
+%%CLIENT%%include/gkrellm2/gkrellm-public-proto.h
%%PORTDOCS%%share/doc/gkrellm/COPYRIGHT
%%PORTDOCS%%share/doc/gkrellm/CREDITS
%%PORTDOCS%%share/doc/gkrellm/README
%%PORTDOCS%%share/doc/gkrellm/Themes.html
-share/locale/de/LC_MESSAGES/gkrellm.mo
-share/locale/es/LC_MESSAGES/gkrellm.mo
-share/locale/fr/LC_MESSAGES/gkrellm.mo
-share/locale/ja/LC_MESSAGES/gkrellm.mo
-share/locale/pl/LC_MESSAGES/gkrellm.mo
-share/locale/ru/LC_MESSAGES/gkrellm.mo
-share/locale/sl/LC_MESSAGES/gkrellm.mo
-share/locale/sv/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/de/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/es/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/fr/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/ja/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/pl/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/ru/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/sl/LC_MESSAGES/gkrellm.mo
+%%CLIENT%%share/locale/sv/LC_MESSAGES/gkrellm.mo
%%PORTDOCS%%@dirrm share/doc/gkrellm
@unexec if cmp -s %D/etc/gkrellmd.conf %D/etc/gkrellmd.conf.sample; then rm -f %D/etc/gkrellmd.conf; fi
etc/gkrellmd.conf.sample
@exec [ -f %B/gkrellmd.conf ] || cp %B/%f %B/gkrellmd.conf
etc/rc.d/gkrellmd.sh.sample
-@dirrm include/gkrellm2
-@exec mkdir -p %D/libexec/gkrellm2/plugins
-@exec mkdir -p %D/share/gkrellm2/themes
-@unexec rmdir %D/libexec/gkrellm2/plugins 2>/dev/null || true
-@unexec rmdir %D/libexec/gkrellm2 2>/dev/null || true
-@unexec rmdir %D/share/gkrellm2/themes 2>/dev/null || true
-@unexec rmdir %D/share/gkrellm2 2>/dev/null || true
+%%CLIENT%%@dirrm include/gkrellm2
+%%CLIENT%%@exec mkdir -p %D/libexec/gkrellm2/plugins
+%%CLIENT%%@exec mkdir -p %D/share/gkrellm2/themes
+%%CLIENT%%@unexec rmdir %D/libexec/gkrellm2/plugins 2>/dev/null || true
+%%CLIENT%%@unexec rmdir %D/libexec/gkrellm2 2>/dev/null || true
+%%CLIENT%%@unexec rmdir %D/share/gkrellm2/themes 2>/dev/null || true
+%%CLIENT%%@unexec rmdir %D/share/gkrellm2 2>/dev/null || true