[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / archivers / arqiver

File: [cvs.NetBSD.org] / pkgsrc / archivers / arqiver / Makefile (download)

Revision 1.22, Wed Nov 23 16:19:15 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.21: +2 -1 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.22 2022/11/23 16:19:15 adam Exp $

DISTNAME=	Arqiver-0.10.0
PKGNAME=	${DISTNAME:tl}
PKGREVISION=	1
CATEGORIES=	archivers
MASTER_SITES=	${MASTER_SITE_GITHUB:=tsujan/}
GITHUB_TAG=	V${PKGVERSION_NOREV}

MAINTAINER=	pin@NetBSD.org
HOMEPAGE=	https://github.com/tsujan/Arqiver/
COMMENT=	Simple Qt5 archive manager
LICENSE=	gnu-gpl-v3

WRKSRC=		${WRKDIR}/${DISTNAME}
USE_CMAKE=	yes
USE_LANGUAGES=	c c++
USE_TOOLS+=	pkg-config bsdtar:run gzip:run 7za:run

CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	..

CMAKE_ARGS+=	-DCMAKE_INSTALL_PREFIX=${PREFIX}

pre-configure:
	${MKDIR} -p ${WRKSRC}/build

SUBST_CLASSES+=		prefix
SUBST_MESSAGE.prefix=	Fixing paths.
SUBST_STAGE.prefix=	pre-configure
SUBST_FILES.prefix=	backends.cpp
SUBST_SED.prefix=	-e 's,"tar","${TOOLS_PATH.bsdtar}",g'
SUBST_SED.prefix+=	-e 's,"bsdtar","${TOOLS_PATH.bsdtar}",g'
SUBST_SED.prefix+=	-e 's,"gzip","${TOOLS_PATH.gzip}",g'
SUBST_SED.prefix+=	-e 's,"7z","${TOOLS_PATH.7za}",g'
# (Can't include closing double-quotes below, as there are varying
# character sequences following the command references.)
SUBST_SED.prefix+=	-e 's,"xdg-open,"${PREFIX}/bin/xdg-open,g'

# Either needs misc/xdg-utils for xdg-open or devel/glib2 for gio.
# Upstream prefers glib2, but xdg-utils is a lot smaller, so use
# that for now.
DEPENDS+=	xdg-utils-[0-9]*:../../misc/xdg-utils
TOOL_DEPENDS+=	qt5-qttools-[0-9]*:../../x11/qt5-qttools

.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../x11/qt5-qtx11extras/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"