2000-03-19 09:53:36 -05:00
|
|
|
# New ports collection makefile for: gkrellm
|
|
|
|
# Date Created: Mar 4 2000
|
|
|
|
# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 15:09:11 -04:00
|
|
|
PORTNAME= gkrellm
|
2000-07-03 03:19:24 -04:00
|
|
|
PORTVERSION= 0.10.2
|
2000-03-19 09:53:36 -05:00
|
|
|
CATEGORIES= sysutils ipv6
|
|
|
|
MASTER_SITES= http://web.wt.net/~billw/gkrellm/ \
|
2000-06-18 15:25:56 -04:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= ume
|
2000-03-19 09:53:36 -05:00
|
|
|
|
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
|
|
|
2000-03-24 07:59:26 -05:00
|
|
|
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
|
|
|
|
gdk_imlib.5:${PORTSDIR}/graphics/imlib
|
2000-03-19 09:53:36 -05:00
|
|
|
|
|
|
|
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2000-05-18 16:12:14 -04:00
|
|
|
USE_GMAKE= yes
|
2000-03-19 09:53:36 -05:00
|
|
|
MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
|
|
|
|
|
2000-04-14 12:12:16 -04:00
|
|
|
INCLUDES= gkrellm.h gkrellm_public_proto.h gkrellm_private_proto.h
|
2000-06-22 13:08:03 -04:00
|
|
|
DOCS= COPYRIGHT README Themes.html
|
2000-03-19 09:53:36 -05:00
|
|
|
|
|
|
|
# You should aware that GKrellM must be setuid root to obtain
|
|
|
|
# temperatures. If your motherboard doesn't support LM78/79 feature,
|
2000-04-16 20:19:02 -04:00
|
|
|
# you may not want this build WITHOUT_SENSOR=yes
|
2000-03-19 09:53:36 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 300000
|
|
|
|
ALL_TARGET= freebsd2
|
|
|
|
.else
|
|
|
|
ALL_TARGET= freebsd3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BINGRP= kmem
|
2000-04-16 20:19:02 -04:00
|
|
|
.if !defined(WITHOUT_SENSOR)
|
2000-03-19 09:53:36 -05:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE= 4111
|
|
|
|
.else
|
|
|
|
BINMODE= 2111
|
|
|
|
.endif
|
|
|
|
|
2000-04-14 12:12:16 -04:00
|
|
|
post-patch:
|
2000-05-18 16:12:14 -04:00
|
|
|
@${MV} ${WRKSRC}/src/gkrellm.h ${WRKSRC}/src/gkrellm.h.orig
|
2000-04-18 14:33:57 -04:00
|
|
|
@${SED} \
|
|
|
|
-e "s^/usr/share/gkrellm/themes^${PREFIX}/share/gkrellm/themes^" \
|
|
|
|
-e "s^/usr/share/gkrellm/plugins^${PREFIX}/libexec/gkrellm/plugins^" \
|
2000-05-18 16:12:14 -04:00
|
|
|
${WRKSRC}/src/gkrellm.h.orig > ${WRKSRC}/src/gkrellm.h
|
2000-04-14 12:12:16 -04:00
|
|
|
|
2000-03-19 09:53:36 -05:00
|
|
|
do-install:
|
2000-05-18 16:12:14 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/gkrellm ${PREFIX}/bin/gkrellm
|
2000-04-14 12:12:16 -04:00
|
|
|
@${MKDIR} ${PREFIX}/include/gkrellm
|
|
|
|
.for file in ${INCLUDES}
|
2000-05-18 16:12:14 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${file} ${PREFIX}/include/gkrellm
|
2000-04-14 12:12:16 -04:00
|
|
|
.endfor
|
2000-06-26 12:21:19 -04:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/gkrellm/plugins
|
|
|
|
@${MKDIR} ${PREFIX}/share/gkrellm/themes
|
2000-03-19 09:53:36 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/gkrellm
|
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gkrellm
|
|
|
|
.endfor
|
|
|
|
.endif
|
2000-04-16 20:19:02 -04:00
|
|
|
.if !defined(WITHOUT_SENSOR)
|
2000-03-19 09:53:36 -05:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|