diff options
author | gutteridge <gutteridge@pkgsrc.org> | 2020-02-14 04:58:54 +0000 |
---|---|---|
committer | gutteridge <gutteridge@pkgsrc.org> | 2020-02-14 04:58:54 +0000 |
commit | c0aa1bbc13f97b24cb0a93dc8c6fa3315d1281c0 (patch) | |
tree | b2f2d65d4bad65918032d0b6bee3d9e1bfde8066 /archivers/arqiver | |
parent | 8e9929db05d1297e636a13ad967f0e08069e1a73 (diff) | |
download | pkgsrc-c0aa1bbc13f97b24cb0a93dc8c6fa3315d1281c0.tar.gz |
arqiver: first pass at correcting dependency issues
This software has a lot of hard-coded references to external binaries,
with sometimes incorrect assumptions. Deal with these through the SUBST
framework for now. (Any mistakes here are solely mine.)
Diffstat (limited to 'archivers/arqiver')
-rw-r--r-- | archivers/arqiver/Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/archivers/arqiver/Makefile b/archivers/arqiver/Makefile index 4e31e63f8ae..53a4b009da2 100644 --- a/archivers/arqiver/Makefile +++ b/archivers/arqiver/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1 2020/02/13 03:00:16 gutteridge Exp $ +# $NetBSD: Makefile,v 1.2 2020/02/14 04:58:54 gutteridge Exp $ DISTNAME= Arqiver-V0.3.2 PKGNAME= arqiver-0.3.2 +PKGREVISION= 1 CATEGORIES= archivers MASTER_SITES= ${MASTER_SITE_GITHUB:=tsujan/} GITHUB_TAG= V${PKGVERSION_NOREV} @@ -13,15 +14,31 @@ LICENSE= gnu-gpl-v3 WRKSRC= ${WRKDIR}/Arqiver-0.3.2 USE_LANGUAGES= c++ -USE_TOOLS+= pkg-config +USE_TOOLS+= pkg-config bsdtar:run gzip:run 7za:run INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR} +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' + do-configure: cd ${WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} \ ${QTDIR}/bin/qmake -o Makefile PREFIX=${PREFIX} +# 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" |