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
|
2010-10-08 14:44:05 +02:00
|
|
|
PORTVERSION= 2.3.5
|
|
|
|
#PORTREVISION= 0
|
2000-03-19 15:53:36 +01:00
|
|
|
CATEGORIES= sysutils ipv6
|
2005-02-20 07:16:59 +01:00
|
|
|
MASTER_SITES= http://members.dslextreme.com/users/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
|
2003-02-20 21:10:05 +01:00
|
|
|
COMMENT= A GTK based system monitor
|
2000-03-19 15:53:36 +01:00
|
|
|
|
2008-10-04 17:00:55 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2005-02-10 20:26:38 +01:00
|
|
|
USE_RC_SUBR= gkrellmd.sh
|
2008-10-04 17:00:55 +02:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_OPENSSL= yes # cannot set after bsd.port.pre.mk
|
2003-08-31 12:27:18 +02:00
|
|
|
|
2010-10-08 14:44:05 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2003-06-03 20:43:03 +02:00
|
|
|
|
2008-10-04 17:00:55 +02:00
|
|
|
OPTIONS= GKRELLM_CLIENT "Enable GKrellM Client" on \
|
|
|
|
GNUTLS "Use GnuTLS" off \
|
|
|
|
NLS "Enable NLS support" on \
|
|
|
|
NTLM "Enable NTLM support" on \
|
|
|
|
OPENSSL "Use OpenSSL" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_GKRELLM_CLIENT)
|
|
|
|
CONFLICTS= gkrellm-1.*
|
2005-05-16 14:43:10 +02:00
|
|
|
.endif
|
|
|
|
|
2008-10-04 17:00:55 +02:00
|
|
|
.if defined(WITH_GNUTLS) && defined(WITH_OPENSSL)
|
|
|
|
BROKEN= GnuTLS and OpenSSL is mutually exclusive.
|
2005-05-16 14:43:10 +02:00
|
|
|
.endif
|
|
|
|
|
2008-10-04 17:00:55 +02:00
|
|
|
.if !defined(WITH_GKRELLM_CLIENT)
|
2002-09-08 23:22:22 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/server
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/server
|
2005-11-04 20:20:01 +01:00
|
|
|
USE_GNOME= glib20
|
2002-09-08 23:22:22 +02:00
|
|
|
.else
|
2003-04-21 12:34:43 +02:00
|
|
|
USE_GNOME= gtk20
|
2005-05-16 14:43:10 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
MAKE_ENV+= enable_nls=0
|
|
|
|
.else
|
2004-03-15 16:28:02 +01:00
|
|
|
USE_GETTEXT= yes
|
2005-05-16 14:43:10 +02:00
|
|
|
.endif
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 sm
|
2005-05-16 14:43:10 +02:00
|
|
|
.if defined(WITH_GNUTLS)
|
2009-08-16 20:04:40 +02:00
|
|
|
LIB_DEPENDS+= gnutls-openssl.40:${PORTSDIR}/security/gnutls
|
2005-05-16 14:43:10 +02:00
|
|
|
MAKE_ENV+= GNUTLSINC=${LOCALBASE}/include GNUTLSLIB=${LOCALBASE}/lib \
|
|
|
|
without-ssl=1
|
|
|
|
.elif defined(WITH_OPENSSL)
|
2003-12-17 20:36:58 +01:00
|
|
|
USE_OPENSSL= yes
|
2005-05-16 14:43:10 +02:00
|
|
|
MAKE_ENV+= without-gnutls=1
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= without-gnutls=1 without-ssl=1
|
|
|
|
.endif
|
2002-09-08 23:22:22 +02:00
|
|
|
.endif
|
2008-10-04 17:00:55 +02:00
|
|
|
.if defined(WITH_NTLM)
|
|
|
|
LIB_DEPENDS+= ntlm.0:${PORTSDIR}/security/libntlm
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= without-ntlm=1
|
|
|
|
.endif
|
2000-03-19 15:53:36 +01:00
|
|
|
|
2002-09-09 19:51:57 +02:00
|
|
|
PLIST_SUB= PREFIX=${PREFIX}
|
2008-10-04 17:00:55 +02:00
|
|
|
.if !defined(WITH_GKRELLM_CLIENT)
|
2005-05-16 14:43:10 +02:00
|
|
|
PLIST_SUB+= CLIENT="@comment " NLS="@comment "
|
2002-09-08 23:22:22 +02:00
|
|
|
.else
|
2002-09-09 19:51:57 +02:00
|
|
|
PLIST_SUB+= CLIENT=""
|
2005-05-16 14:43:10 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
2002-09-09 19:51:57 +02:00
|
|
|
#MAN1= gkrellm.1
|
2002-09-08 23:22:22 +02:00
|
|
|
.endif
|
2002-09-02 20:22:56 +02:00
|
|
|
MAN8= gkrellmd.8
|
2005-02-04 13:42:11 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= COPYRIGHT CREDITS README Themes.html
|
|
|
|
.endif
|
2000-03-19 15:53:36 +01:00
|
|
|
|
2000-07-10 14:11:52 +02:00
|
|
|
ALL_TARGET= freebsd
|
2002-09-02 20:22:56 +02:00
|
|
|
|
2008-07-25 14:48:47 +02:00
|
|
|
MAKE_ENV+= INSTALLROOT=${LOCALBASE} INSTALLDIR=${LOCALBASE}/bin \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
PKGCONFIGDIR=${LOCALBASE}/libdata/pkgconfig \
|
2005-11-04 20:20:01 +01:00
|
|
|
SINSTALLROOT=${PREFIX} SINSTALLDIR=${PREFIX}/sbin \
|
|
|
|
SPKGCONFIGDIR=${PREFIX}/libdata/pkgconfig \
|
|
|
|
MANDIR=${MAN1PREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8 \
|
|
|
|
VERSION=${PORTVERSION}
|
2002-09-02 20:22:56 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CFLAGS+= -DSYSTEM_THEMES_DIR='\"${LOCALBASE}/share/gkrellm2/themes\"' \
|
|
|
|
-DSYSTEM_PLUGINS_DIR='\"${LOCALBASE}/libexec/gkrellm2/plugins\"' \
|
2004-05-15 19:37:42 +02:00
|
|
|
-DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"' \
|
|
|
|
-DGKRELLMD_SYSTEM_PLUGINS_DIR='\"${PREFIX}/libexec/gkrellm2/plugins-gkrellmd\"'
|
2002-09-02 20:22:56 +02:00
|
|
|
|
2005-11-04 20:20:01 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's/INCLUDEDIR/SINCLUDEDIR/g' \
|
|
|
|
-e 's/INSTALLROOT/SINSTALLROOT/g' \
|
|
|
|
-e 's/PKGCONFIGDIR/SPKGCONFIGDIR/g' \
|
|
|
|
${WRKSRC}/server/Makefile
|
|
|
|
|
2002-09-02 20:22:56 +02:00
|
|
|
post-install:
|
2008-10-04 17:00:55 +02:00
|
|
|
.if defined(WITH_GKRELLM_CLIENT)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/libexec/gkrellm2/plugins
|
|
|
|
@${MKDIR} ${LOCALBASE}/share/gkrellm2/themes
|
2002-09-09 19:51:57 +02:00
|
|
|
@${GZIP_CMD} ${MAN1PREFIX}/man/man1/gkrellm.1
|
2008-02-19 18:14:13 +01:00
|
|
|
.endif
|
2004-05-15 19:37:42 +02:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins-gkrellmd
|
2004-07-19 10:41:57 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2002-09-02 20:22:56 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf \
|
2004-07-19 10:41:57 +02:00
|
|
|
${EXAMPLESDIR}/gkrellmd.conf
|
2002-09-02 20:22:56 +02:00
|
|
|
if [ ! -f ${PREFIX}/etc/gkrellmd.conf ]; then \
|
2004-07-19 10:41:57 +02:00
|
|
|
${CP} -p ${EXAMPLESDIR}/gkrellmd.conf \
|
2002-09-02 20:22:56 +02:00
|
|
|
${PREFIX}/etc/gkrellmd.conf; \
|
|
|
|
fi
|
2000-03-19 15:53:36 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-01-01 17:14:25 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-02-04 13:42:11 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2004-05-15 19:37:42 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2000-03-19 15:53:36 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|