pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/osm2pgsql geography/osm2pgsql: cmake build d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a73e6283fe76
branches:  trunk
changeset: 424671:a73e6283fe76
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Fri Mar 13 14:50:40 2020 +0000

description:
geography/osm2pgsql: cmake build dir cleanup

Per pkglint, use a build directory within WRKSRC.  Make the
relationship between creating the build dir and using it really
obvious.

diffstat:

 geography/osm2pgsql/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r 1b7f0d2581f7 -r a73e6283fe76 geography/osm2pgsql/Makefile
--- a/geography/osm2pgsql/Makefile      Fri Mar 13 13:57:04 2020 +0000
+++ b/geography/osm2pgsql/Makefile      Fri Mar 13 14:50:40 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2020/03/13 13:08:51 gdt Exp $
+# $NetBSD: Makefile,v 1.22 2020/03/13 14:50:40 gdt Exp $
 
 DISTNAME=      osm2pgsql-1.2.1
 CATEGORIES=    geography
@@ -14,12 +14,12 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 
-CONFIGURE_DIRS=        ${WRKDIR}/build
+# osm2pgsql does not allow srcdir builds (and separate is better anyway)
+post-extract:
+       ${RUN} mkdir -p ${WRKSRC}/build
+CONFIGURE_DIRS=        build
 CMAKE_ARG_PATH=        ${WRKSRC}
 
-post-extract:
-       ${RUN} mkdir -p ${WRKDIR}/build
-
 .include "../../geography/proj/buildlink3.mk"
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"



Home | Main Index | Thread Index | Old Index