freebsd-ports/sysutils/xfce4-netload-plugin/Makefile
Bryan Drewery 63408327b0 USES=xfce: Stop overriding MASTER_SITE_SUBDIR.
Add an XFCE SITE_SUBDIR abbreviation and use it forf or the xfce ports,
which removes the need to set MASTER_SITE_SUBDIR in any of them.

This fixes ports that have USES=xfce but do not use the XFCE MASTER_SITE,
namely sysutils/xfce4-bsdcpufreq-plugin.

With hat:	portmgr
2015-04-28 17:01:46 +00:00

45 lines
1,022 B
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= xfce4-netload-plugin
PORTVERSION= 1.2.4
PORTREVISION= 1
CATEGORIES= sysutils xfce
MASTER_SITES= XFCE/src/panel-plugins/${PORTNAME}/${PORTVERSION:R}
DIST_SUBDIR= xfce4
MAINTAINER= xfce@FreeBSD.org
COMMENT= Network Load plugin for Xfce4
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
USE_GNOME= intltool intlhack
USE_XFCE= panel
USES= gmake pkgconfig libtool gettext-tools xfce tar:bzip2
INSTALLS_ICONS= yes
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext-runtime
.include <bsd.port.options.mk>
do-patch:
@${REINPLACE_CMD} -e 's, || __FreeBSD_kernel__,,' \
${WRKSRC}/panel-plugin/net.c \
${WRKSRC}/panel-plugin/net.h \
${WRKSRC}/panel-plugin/os.h
.if ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e \
's|$$(prefix)/$$(DATADIRNAME)/locale|$$(datarootdir)/locale|' \
${WRKSRC}/po/Makefile.in.in
.else
${REINPLACE_CMD} -e 's|po ||' ${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>