2000-03-19 14:53:36 +00:00
|
|
|
# New ports collection makefile for: gkrellm
|
|
|
|
# Date Created: Mar 4 2000
|
|
|
|
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 19:09:11 +00:00
|
|
|
PORTNAME= gkrellm
|
2004-01-20 19:10:17 +00:00
|
|
|
PORTVERSION= 2.1.25
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
2003-10-08 06:28:14 +00:00
|
|
|
#PORTREVISION= 0
|
2000-03-19 14:53:36 +00:00
|
|
|
CATEGORIES= sysutils ipv6
|
|
|
|
MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \
|
2000-06-18 19:25:56 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= ume
|
2000-03-19 14:53:36 +00:00
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
2003-02-20 20:10:05 +00:00
|
|
|
COMMENT= A GTK based system monitor
|
2000-03-19 14:53:36 +00:00
|
|
|
|
2003-10-19 19:04:47 +00:00
|
|
|
.if !defined(GKRELLM_SERVER_ONLY)
|
|
|
|
CONFLICTS= gkrellm-1.*
|
|
|
|
.endif
|
|
|
|
|
2003-08-31 10:27:18 +00:00
|
|
|
USE_RC_SUBR= YES
|
|
|
|
|
2003-06-03 18:43:03 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:C/[a-z]$//}
|
|
|
|
|
2002-09-08 21:22:22 +00:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/server
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/server
|
|
|
|
USE_GNOME= glib12
|
|
|
|
.else
|
2003-04-21 10:34:43 +00:00
|
|
|
USE_GNOME= gtk20
|
2002-09-09 17:51:57 +00:00
|
|
|
USE_XLIB= yes
|
2003-12-17 19:36:58 +00:00
|
|
|
USE_OPENSSL= yes
|
2002-09-08 21:22:22 +00:00
|
|
|
.endif
|
2002-09-02 18:22:56 +00:00
|
|
|
|
2002-02-16 05:56:44 +00:00
|
|
|
USE_BZIP2= yes
|
2000-05-18 20:12:14 +00:00
|
|
|
USE_GMAKE= yes
|
2000-03-19 14:53:36 +00:00
|
|
|
|
2002-09-09 17:51:57 +00:00
|
|
|
PLIST_SUB= PREFIX=${PREFIX}
|
2002-09-08 21:22:22 +00:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
2002-09-09 17:51:57 +00:00
|
|
|
PLIST_SUB+= CLIENT="@comment "
|
2002-09-08 21:22:22 +00:00
|
|
|
.else
|
2002-09-09 17:51:57 +00:00
|
|
|
PLIST_SUB+= CLIENT=""
|
|
|
|
#MAN1= gkrellm.1
|
2002-09-08 21:22:22 +00:00
|
|
|
.endif
|
2002-09-02 18:22:56 +00:00
|
|
|
MAN8= gkrellmd.8
|
|
|
|
DOCS= COPYRIGHT CREDITS README Themes.html
|
2000-03-19 14:53:36 +00:00
|
|
|
|
2002-09-09 17:51:57 +00:00
|
|
|
MAN1PREFIX= ${X11BASE}
|
|
|
|
|
2000-03-19 14:53:36 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 300000
|
|
|
|
ALL_TARGET= freebsd2
|
2000-07-10 12:11:52 +00:00
|
|
|
.else
|
|
|
|
ALL_TARGET= freebsd
|
2000-03-19 14:53:36 +00:00
|
|
|
.endif
|
2003-06-03 18:43:03 +00:00
|
|
|
INSTALL_TARGET= install_freebsd
|
2002-09-02 18:22:56 +00:00
|
|
|
|
2003-06-03 14:13:27 +00:00
|
|
|
MAKE_ENV+= INSTALLROOT=${X11BASE} SINSTALLDIR=${PREFIX}/sbin \
|
|
|
|
PKGCONFIGDIR=${X11BASE}/libdata/pkgconfig \
|
2002-09-09 17:51:57 +00:00
|
|
|
MANDIR=${MAN1PREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8
|
2002-09-08 21:22:22 +00:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
MAKE_ENV+= glib12=1
|
|
|
|
.endif
|
2002-09-02 18:22:56 +00:00
|
|
|
|
2002-09-09 17:51:57 +00:00
|
|
|
CFLAGS+= -DSYSTEM_THEMES_DIR='\"${X11BASE}/share/gkrellm2/themes\"' \
|
|
|
|
-DSYSTEM_PLUGINS_DIR='\"${X11BASE}/libexec/gkrellm2/plugins\"' \
|
2002-09-02 18:22:56 +00:00
|
|
|
-DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"'
|
|
|
|
|
2003-08-31 10:27:18 +00:00
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \
|
|
|
|
RC_SUBR=${RC_SUBR}
|
|
|
|
|
2003-02-28 22:53:02 +00:00
|
|
|
pre-everything::
|
2002-09-09 17:51:57 +00:00
|
|
|
.if !defined(GKRELLM_SERVER_ONLY)
|
2003-09-27 03:25:40 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may use GKRELLM_SERVER_ONLY=yes to build gkrellmd only."
|
|
|
|
@${ECHO_MSG} ""
|
2002-09-09 17:51:57 +00:00
|
|
|
.endif
|
|
|
|
|
2002-09-02 18:22:56 +00:00
|
|
|
post-install:
|
2002-09-20 09:52:19 +00:00
|
|
|
.if !defined(GKRELLM_SERVER_ONLY)
|
2002-09-09 17:51:57 +00:00
|
|
|
@${MKDIR} ${X11BASE}/libexec/gkrellm2/plugins
|
|
|
|
@${MKDIR} ${X11BASE}/share/gkrellm2/themes
|
|
|
|
@${GZIP_CMD} ${MAN1PREFIX}/man/man1/gkrellm.1
|
2003-03-23 05:26:00 +00:00
|
|
|
@${CHMOD} 2511 ${X11BASE}/bin/gkrellm
|
2002-09-08 21:22:22 +00:00
|
|
|
.endif
|
2003-03-23 05:26:00 +00:00
|
|
|
@${CHMOD} 2511 ${PREFIX}/sbin/gkrellmd
|
2003-08-31 10:27:18 +00:00
|
|
|
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh
|
|
|
|
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/gkrellmd.sh
|
2002-09-02 18:22:56 +00:00
|
|
|
${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
|
2000-03-19 14:53:36 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-01-01 16:14:25 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2000-03-19 14:53:36 +00:00
|
|
|
.for file in ${DOCS}
|
2003-01-01 16:14:25 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
2000-03-19 14:53:36 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|