2000-03-19 15:53:36 +01:00
|
|
|
# New ports collection makefile for: gkrellm
|
|
|
|
# Date Created: Mar 4 2000
|
|
|
|
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 21:09:11 +02:00
|
|
|
PORTNAME= gkrellm
|
2002-09-07 06:13:45 +02:00
|
|
|
PORTVERSION= 2.0.2
|
2000-03-19 15:53:36 +01:00
|
|
|
CATEGORIES= sysutils ipv6
|
|
|
|
MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \
|
2000-06-18 21:25:56 +02:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= ume
|
2000-03-19 15:53:36 +01:00
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
|
|
|
2002-09-08 23:22:22 +02:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/server
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/server
|
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= glib12
|
|
|
|
.else
|
2002-09-02 20:22:56 +02:00
|
|
|
LIB_DEPENDS= gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20
|
2002-09-08 23:22:22 +02:00
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
|
2002-02-16 06:56:44 +01:00
|
|
|
USE_BZIP2= yes
|
2000-03-19 15:53:36 +01:00
|
|
|
USE_X_PREFIX= yes
|
2000-05-18 22:12:14 +02:00
|
|
|
USE_GMAKE= yes
|
2000-03-19 15:53:36 +01:00
|
|
|
|
2002-09-08 23:22:22 +02:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
PLIST_SUB= CLIENT="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= CLIENT=""
|
2001-03-14 20:05:41 +01:00
|
|
|
MAN1= gkrellm.1
|
2002-09-08 23:22:22 +02:00
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
MAN8= gkrellmd.8
|
|
|
|
DOCS= COPYRIGHT CREDITS README Themes.html
|
2000-03-19 15:53:36 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 300000
|
|
|
|
ALL_TARGET= freebsd2
|
2000-07-10 14:11:52 +02:00
|
|
|
.else
|
|
|
|
ALL_TARGET= freebsd
|
2000-03-19 15:53:36 +01:00
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
INSTALL_TARGET= install_netbsd
|
|
|
|
|
|
|
|
MAKE_ENV+= LOCALEDIR=${PREFIX}/share/locale INCLUDEDIR=${PREFIX}/include \
|
2002-09-06 07:18:39 +02:00
|
|
|
INSTALLDIR=${PREFIX}/bin SINSTALLDIR=${PREFIX}/bin \
|
2002-09-02 20:22:56 +02:00
|
|
|
MANDIR=${MANPREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8
|
2002-09-08 23:22:22 +02:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
MAKE_ENV+= glib12=1
|
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
|
|
|
|
CFLAGS+= -DSYSTEM_THEMES_DIR='\"${PREFIX}/share/gkrellm2/themes\"' \
|
|
|
|
-DSYSTEM_PLUGINS_DIR='\"${PREFIX}/libexec/gkrellm2/plugins\"' \
|
|
|
|
-DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"'
|
|
|
|
|
|
|
|
post-install:
|
2002-09-08 23:22:22 +02:00
|
|
|
.if defined(GKRELLM_SERVER_ONLY)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/gkrellmd.1 ${MANPREFIX}/man/man8/gkrellmd.8
|
|
|
|
.else
|
2002-09-02 20:22:56 +02:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins
|
|
|
|
@${MKDIR} ${PREFIX}/share/gkrellm2/themes
|
2002-09-08 23:22:22 +02:00
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
@${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
|
2000-03-19 15:53:36 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/gkrellm
|
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gkrellm
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|