pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/arqiver



Module Name:    pkgsrc
Committed By:   pin
Date:           Tue Aug  9 12:06:15 UTC 2022

Modified Files:
        pkgsrc/archivers/arqiver: Makefile

Log Message:
archivers/arqiver: switch build to cmake


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/archivers/arqiver/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/arqiver/Makefile
diff -u pkgsrc/archivers/arqiver/Makefile:1.19 pkgsrc/archivers/arqiver/Makefile:1.20
--- pkgsrc/archivers/arqiver/Makefile:1.19      Mon Apr 18 19:10:18 2022
+++ pkgsrc/archivers/arqiver/Makefile   Tue Aug  9 12:06:15 2022
@@ -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 @@ COMMENT=    Simple Qt5 archive manager
 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 @@ SUBST_SED.prefix+=   -e 's,"7z","${TOOLS_P
 # 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