freebsd-ports/sysutils/gkrellm2/Makefile

97 lines
2.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: gkrellm
# Date Created: Mar 4 2000
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gkrellm
2003-06-03 14:43:03 -04:00
PORTVERSION= 2.1.12a
#PORTREVISION= 0
CATEGORIES= sysutils ipv6
MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ume
MAINTAINER= ume@FreeBSD.org
2003-02-20 15:10:05 -05:00
COMMENT= A GTK based system monitor
2003-06-03 14:43:03 -04:00
WRKSRC= ${WRKDIR}/${DISTNAME:C/[a-z]$//}
.if defined(GKRELLM_SERVER_ONLY)
BUILD_WRKSRC= ${WRKSRC}/server
INSTALL_WRKSRC= ${WRKSRC}/server
USE_GNOME= glib12
.else
USE_GNOME= gtk20
USE_XLIB= yes
.endif
2002-02-16 00:56:44 -05:00
USE_BZIP2= yes
2000-05-18 16:12:14 -04:00
USE_GMAKE= yes
PLIST_SUB= PREFIX=${PREFIX}
.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
MAN1PREFIX= ${X11BASE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
ALL_TARGET= freebsd2
2000-07-10 08:11:52 -04:00
.else
ALL_TARGET= freebsd
.endif
2003-06-03 14:43:03 -04:00
INSTALL_TARGET= install_freebsd
2003-06-03 10:13:27 -04:00
MAKE_ENV+= INSTALLROOT=${X11BASE} SINSTALLDIR=${PREFIX}/sbin \
PKGCONFIGDIR=${X11BASE}/libdata/pkgconfig \
MANDIR=${MAN1PREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8
.if defined(GKRELLM_SERVER_ONLY)
MAKE_ENV+= glib12=1
.endif
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:
2002-09-20 05:52:19 -04:00
.if !defined(GKRELLM_SERVER_ONLY)
@${MKDIR} ${X11BASE}/libexec/gkrellm2/plugins
@${MKDIR} ${X11BASE}/share/gkrellm2/themes
@${GZIP_CMD} ${MAN1PREFIX}/man/man1/gkrellm.1
@${CHMOD} 2511 ${X11BASE}/bin/gkrellm
.endif
@${CHMOD} 2511 ${PREFIX}/sbin/gkrellmd
@${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
${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf \
${PREFIX}/etc/gkrellmd.conf.sample
if [ ! -f ${PREFIX}/etc/gkrellmd.conf ]; then \
${CP} -p ${PREFIX}/etc/gkrellmd.conf.sample \
${PREFIX}/etc/gkrellmd.conf; \
fi
.if !defined(NOPORTDOCS)
2003-01-01 11:14:25 -05:00
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
2003-01-01 11:14:25 -05:00
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>