diff options
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 |