diff options
author | ume <ume@FreeBSD.org> | 2002-09-10 01:51:57 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2002-09-10 01:51:57 +0800 |
commit | 1112843af63960276ace783650a921688ca3a5fd (patch) | |
tree | 7bdadb4881f425844731eb503700ea3adf0b8bf0 /sysutils/gkrellm2/Makefile | |
parent | 96c50da03ea98266dd5e071b2a86770f95f56f4f (diff) | |
download | freebsd-ports-gnome-1112843af63960276ace783650a921688ca3a5fd.tar.gz freebsd-ports-gnome-1112843af63960276ace783650a921688ca3a5fd.tar.zst freebsd-ports-gnome-1112843af63960276ace783650a921688ca3a5fd.zip |
- Because gkrellmd doesn't depend on X11, don't use USE_X_PREFIX. (1)
- Added a pre-everything note so everybody should know about the
option. (2)
- Now, the documents goes into /usr/local/share/docs.
Requested by: Hendrik Scholz <hscholz@raisdorf.net> (1), (2)
Submitted by: Hendrik Scholz <hscholz@raisdorf.net> (2)
Diffstat (limited to 'sysutils/gkrellm2/Makefile')
-rw-r--r-- | sysutils/gkrellm2/Makefile | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile index 55fd0cf2fcb6..53a76e31def2 100644 --- a/sysutils/gkrellm2/Makefile +++ b/sysutils/gkrellm2/Makefile @@ -7,6 +7,7 @@ PORTNAME= gkrellm PORTVERSION= 2.0.2 +PORTREVISION= 1 CATEGORIES= sysutils ipv6 MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \ ${MASTER_SITE_LOCAL} @@ -21,21 +22,24 @@ USE_GNOMENG= yes USE_GNOME= glib12 .else LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 +USE_XLIB= yes .endif USE_BZIP2= yes -USE_X_PREFIX= yes USE_GMAKE= yes +PLIST_SUB= PREFIX=${PREFIX} .if defined(GKRELLM_SERVER_ONLY) -PLIST_SUB= CLIENT="@comment " +PLIST_SUB+= CLIENT="@comment " .else -PLIST_SUB= CLIENT="" -MAN1= gkrellm.1 +PLIST_SUB+= CLIENT="" +#MAN1= gkrellm.1 .endif MAN8= gkrellmd.8 DOCS= COPYRIGHT CREDITS README Themes.html +MAN1PREFIX= ${X11BASE} + .include <bsd.port.pre.mk> .if ${OSVERSION} < 300000 @@ -45,23 +49,32 @@ ALL_TARGET= freebsd .endif 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 +MAKE_ENV+= LOCALEDIR=${X11BASE}/share/locale \ + INCLUDEDIR=${X11BASE}/include \ + INSTALLDIR=${X11BASE}/bin SINSTALLDIR=${PREFIX}/sbin \ + MANDIR=${MAN1PREFIX}/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\"' \ +CFLAGS+= -DSYSTEM_THEMES_DIR='\"${X11BASE}/share/gkrellm2/themes\"' \ + -DSYSTEM_PLUGINS_DIR='\"${X11BASE}/libexec/gkrellm2/plugins\"' \ -DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"' +pre-everything: +.if !defined(GKRELLM_SERVER_ONLY) + @${ECHO} "" + @${ECHO} "You may use GKRELLM_SERVER_ONLY=yes to build gkrellmd only." + @${ECHO} "" +.endif + 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 + @${MKDIR} ${X11BASE}/libexec/gkrellm2/plugins + @${MKDIR} ${X11BASE}/share/gkrellm2/themes + @${GZIP_CMD} ${MAN1PREFIX}/man/man1/gkrellm.1 .endif @${SED} -e "s;%%PREFIX%%;${PREFIX};g" \ ${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh.sample |