[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / dhcpcd-qt

File: [cvs.NetBSD.org] / pkgsrc / net / dhcpcd-qt / Makefile (download)

Revision 1.7, Sat Dec 21 23:09:24 2019 UTC (11 months, 2 weeks ago) by nros
Branch: MAIN
Changes since 1.6: +7 -1 lines

Fix installation of xdg autostart desktop files in dhcpcd-*

Make dhcpcd-gtk and dhcpcd-qt install xdg autostart files in the right
locations and use pkg_install framework to put then in PKG_SYSCONFDIR.
Fixes installation that was broken due to non updated PLIST files.

# $NetBSD: Makefile,v 1.7 2019/12/21 23:09:24 nros Exp $
#

PKGNAME=		dhcpcd-qt-${DHCPCD_UI_VERSION}
PKGREVISION=		4
CATEGORIES=		net

COMMENT=		Qt system tray monitor for dhcpcd

DEPENDS+=	dhcpcd>=6.4.4:../../net/dhcpcd
DEPENDS+=	dhcpcd-icons>=${DHCPCD_UI_VERSION}:../../net/dhcpcd-icons

.include "../../net/dhcpcd-icons/Makefile.common"

USE_LANGUAGES=		c99 c++
CONFIGURE_ARGS+=	--with-qt
CONFIGURE_ARGS+=	--disable-notification

INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR:Q}
EGDIR=                  ${PREFIX}/share/examples/${PKGBASE}
MAKEFLAGS+=             SYSCONFDIR=${EGDIR}

CONF_FILES=             ${EGDIR}/xdg/autostart/${PKGBASE}.desktop \
                        ${PKG_SYSCONFDIR}/xdg/autostart/${PKGBASE}.desktop
MAKE_DIRS+=             ${PKG_SYSCONFDIR}/xdg/autostart

.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"