diff options
author | ume <ume@FreeBSD.org> | 2002-09-09 05:22:22 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-09-09 05:22:22 +0800 |
commit | 4b3ea0571a4b0c7a80b490a08089520b8408d8b7 (patch) | |
tree | 4b5b53dbf65c5df1ae0011234f861a69cad1ff0f /sysutils/gkrellm2/Makefile | |
parent | dd4865b66c976b4224f26a78d57c06f61a3426a9 (diff) | |
download | freebsd-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>
Diffstat (limited to 'sysutils/gkrellm2/Makefile')
-rw-r--r-- | sysutils/gkrellm2/Makefile | 19 |
1 files changed, 19 insertions, 0 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 |