1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/sysutils/gkrellm2/Makefile

85 lines
2.2 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= gkrellm
2016-06-05 17:36:47 +00:00
PORTVERSION= 2.3.7
#PORTREVISION= 0
CATEGORIES= sysutils ipv6
2016-06-05 17:36:47 +00:00
MASTER_SITES= http://gkrellm.srcbox.net/releases/ \
LOCAL/ume
PKGNAMESUFFIX= 2
MAINTAINER= ume@FreeBSD.org
COMMENT= GTK based system monitor
2012-06-16 19:11:44 +00:00
LICENSE= GPLv3
USES= gmake pkgconfig tar:bzip2
USE_RC_SUBR= gkrellmd
2008-10-04 15:00:55 +00:00
WANT_GNOME= yes
2003-08-31 10:27:18 +00:00
OPTIONS_DEFINE= DOCS CLIENT NLS NTLM OPENSSL
OPTIONS_DEFAULT= CLIENT NTLM OPENSSL
OPTIONS_SUB= yes
CLIENT_DESC= GKrellM Client
CLIENT_CONFLICTS= gkrellm-[^2].* gkrellm[^2]-[^2].*
CLIENT_USE= GNOME=gtk20 XORG=sm,x11
CLIENT_USE_OFF= GNOME=glib20
CLIENT_VARS_OFF= BUILD_WRKSRC=${WRKSRC}/server \
INSTALL_WRKSRC=${WRKSRC}/server
NTLM_LIB_DEPENDS= libntlm.so:security/libntlm
NTLM_VARS_OFF= MAKE_ENV+=without-ntlm=1
2008-10-04 15:00:55 +00:00
2012-06-16 19:11:44 +00:00
.include <bsd.port.options.mk>
2008-10-04 15:00:55 +00:00
.if ${PORT_OPTIONS:MCLIENT}
2012-06-16 19:11:44 +00:00
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
2012-06-16 19:11:44 +00:00
.else
MAKE_ENV+= enable_nls=0
.endif
.if ${PORT_OPTIONS:MOPENSSL}
2003-12-17 19:36:58 +00:00
USE_OPENSSL= yes
MAKE_ENV+= without-gnutls=1
.else
MAKE_ENV+= without-gnutls=1 without-ssl=1
.endif
.endif
2012-06-16 19:11:44 +00:00
2005-02-04 12:42:11 +00:00
PORTDOCS= COPYRIGHT CREDITS README Themes.html
2000-07-10 12:11:52 +00:00
ALL_TARGET= freebsd
MAKE_ENV+= INSTALLROOT=${PREFIX} INSTALL_PREFIX=$(STAGEDIR) \
PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig \
SINSTALLDIR=${PREFIX}/sbin \
MANDIR=${MAN1PREFIX}/man/man1 SMANDIR=${MANPREFIX}/man/man8 \
VERSION=${PORTVERSION}
CFLAGS+= -DSYSTEM_THEMES_DIR='\"${LOCALBASE}/share/gkrellm2/themes\"' \
-DSYSTEM_PLUGINS_DIR='\"${LOCALBASE}/libexec/gkrellm2/plugins\"' \
-DGKRELLMD_SYS_ETC='\"${PREFIX}/etc\"' \
-DGKRELLMD_SYSTEM_PLUGINS_DIR='\"${PREFIX}/libexec/gkrellm2/plugins-gkrellmd\"'
post-patch:
2013-07-28 20:33:15 +00:00
@${REINPLACE_CMD} -e 's/gthread-2.0/gmodule-2.0 gthread-2.0/g' \
${WRKSRC}/src/Makefile
post-install-CLIENT-on:
2013-10-04 12:40:50 +00:00
@${MKDIR} ${STAGEDIR}${LOCALBASE}/libexec/gkrellm2/plugins
@${MKDIR} ${STAGEDIR}${LOCALBASE}/share/gkrellm2/themes
post-install:
2013-10-04 12:40:50 +00:00
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins-gkrellmd
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf \
2013-10-04 12:40:50 +00:00
${STAGEDIR}${EXAMPLESDIR}/gkrellmd.conf
post-install-DOCS-on:
2013-10-04 12:40:50 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
2005-02-04 12:42:11 +00:00
.for f in ${PORTDOCS}
2013-10-04 12:40:50 +00:00
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
2012-06-16 19:11:44 +00:00
.include <bsd.port.mk>