pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/arqiver archivers/arqiver: switch build to c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10a9a8e4b9fe
branches:  trunk
changeset: 382942:10a9a8e4b9fe
user:      pin <pin%pkgsrc.org@localhost>
date:      Tue Aug 09 12:06:15 2022 +0000

description:
archivers/arqiver: switch build to cmake

diffstat:

 archivers/arqiver/Makefile |  20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 1a8f5f57f909 -r 10a9a8e4b9fe archivers/arqiver/Makefile
--- a/archivers/arqiver/Makefile        Tue Aug 09 12:05:24 2022 +0000
+++ b/archivers/arqiver/Makefile        Tue Aug 09 12:06:15 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2022/04/18 19:10:18 adam Exp $
+# $NetBSD: Makefile,v 1.20 2022/08/09 12:06:15 pin Exp $
 
 DISTNAME=      Arqiver-0.9.0
 PKGNAME=       ${DISTNAME:tl}
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    archivers
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=tsujan/}
 GITHUB_TAG=    V${PKGVERSION_NOREV}
@@ -13,10 +13,17 @@
 LICENSE=       gnu-gpl-v3
 
 WRKSRC=                ${WRKDIR}/${DISTNAME}
-USE_LANGUAGES= c++
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
 USE_TOOLS+=    pkg-config bsdtar:run gzip:run 7za:run
 
-INSTALL_MAKE_FLAGS+=   INSTALL_ROOT=${DESTDIR}
+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.
@@ -30,11 +37,6 @@
 # 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.



Home | Main Index | Thread Index | Old Index