From owner-freebsd-ports@freebsd.org Thu Sep 13 20:05:09 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23CD91098054 for ; Thu, 13 Sep 2018 20:05:09 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from lb1-smtp-cloud7.xs4all.net (lb1-smtp-cloud7.xs4all.net [194.109.24.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.xs4all.net", Issuer "RapidSSL SHA256 CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A293B80B86 for ; Thu, 13 Sep 2018 20:05:07 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan ([83.160.85.125]) by smtp-cloud7.xs4all.net with ESMTP id 0XqIgVHOcw2L80XqJgXZUL; Thu, 13 Sep 2018 22:03:59 +0200 Received: from yokozuna (yokozuna [IPv6:0:0:0:0:0:0:0:1]) by yokozuna.lan (8.15.2/8.15.2) with ESMTPS id w8DK3vWI032624 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 13 Sep 2018 22:03:58 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Date: Thu, 13 Sep 2018 22:03:57 +0200 (CEST) From: Marco Beishuizen Sender: marco@yokozuna.lan Reply-To: Marco Beishuizen To: freebsd-ports@freebsd.org Subject: creating makefile for new pgadmin4 port: qmake error Message-ID: User-Agent: Alpine 2.21.9999 (BSF 287 2018-06-16) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-CMAE-Envelope: MS4wfMo0zn7YYwSOxaJjNl2LH3QE99M46/Ul0o2UmUclWRIPRl1J2LO6p0vLmRRgqm6bh2gfOCPRJxjr0c/ewCe9GNiR4V4Ti82+ivgP8BxWReUwjude/VA4 U+Ip/lhNqtt+Kar16/K43HPi4TTIk83qBe5egz0OYfWtZmPhNZeSLFHo X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2018 20:05:09 -0000 Hi, I'm trying to create a port for pgadmin4. If I follow the instructions in the readme file for building from source (first a qmake and the a make), all works fine and the pgAdmin4 binary is build. Next step is to create the makefile for the port. So far I have: [...] PORTNAME= pgadmin4 PORTVERSION= 3.3 CATEGORIES= databases MASTER_SITES= PGSQL/pgadmin/pgadmin4/v${PORTVERSION}/source/ DISTNAME= pgadmin4-${PORTVERSION} MAINTAINER= mbeis@xs4all.nl COMMENT= PostgreSQL Administration Tool LICENSE= PostgreSQL BUILD_DEPENDS sphinx-build:textproc/py-sphinx USES= pgsql python qmake qt:5 USE_QT= core gui network widgets .include [...] The error I get at this point is that qmake doesn't seem to work: [...] ===> License PostgreSQL accepted by the user ===> pgadmin4-3.3 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by pgadmin4-3.3 for building ===> Extracting for pgadmin4-3.3 => SHA256 Checksum OK for pgadmin4-3.3.tar.gz. ===> Patching for pgadmin4-3.3 ===> pgadmin4-3.3 depends on file: /usr/local/bin/python2.7 - found ===> pgadmin4-3.3 depends on file: /usr/local/lib/qt5/bin/qmake - found ===> pgadmin4-3.3 depends on shared library: libpq.so.5 - found (/usr/local/lib/libpq.so.5) ===> pgadmin4-3.3 depends on shared library: libQt5Core.so - found (/usr/local/lib/qt5/libQt5Core.so) ===> pgadmin4-3.3 depends on shared library: libQt5Gui.so - found (/usr/local/lib/qt5/libQt5Gui.so) ===> pgadmin4-3.3 depends on shared library: libQt5Network.so - found (/usr/local/lib/qt5/libQt5Network.so) ===> pgadmin4-3.3 depends on shared library: libQt5Widgets.so - found (/usr/local/lib/qt5/libQt5Widgets.so) ===> Configuring for pgadmin4-3.3 Usage: /usr/local/lib/qt5/bin/qmake [mode] [options] [files] QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project Mode: -project Put qmake into project file generation mode In this mode qmake interprets files as files to be built, defaults to *; *; *; *.ts; *.xlf; *.qrc Note: The created .pro file probably will need to be edited. For example add the QT variable to specify what modules are required. -makefile Put qmake into makefile generation mode (default) In this mode qmake interprets files as project files to be processed, if skipped qmake will try to find a project file in your current working directory Warnings Options: -Wnone Turn off all warnings; specific ones may be re-enabled by later -W options -Wall Turn on all warnings -Wparser Turn on parser warnings -Wlogic Turn on logic warnings (on by default) -Wdeprecated Turn on deprecation warnings (on by default) Options: * You can place any variable assignment in options and it will be * * processed as if it was in [files]. These assignments will be * * processed before [files] by default. * -o file Write output to file -d Increase debug level -t templ Overrides TEMPLATE as templ -tp prefix Overrides TEMPLATE so that prefix is prefixed into the value -help This help -v Version information -early All subsequent variable assignments will be parsed right before default_pre.prf -before All subsequent variable assignments will be parsed right before [files] (the default) -after All subsequent variable assignments will be -late All subsequent variable assignments will be parsed right after default_post.prf -norecursive Don't do a recursive search -recursive Do a recursive search -set Set persistent property -unset Unset persistent property -query Query persistent property. Show all if is empty. -qtconf file Use file instead of looking for qt.conf -cache file Use file as cache [makefile mode only] -spec spec Use spec as QMAKESPEC [makefile mode only] -nocache Don't use a cache file [makefile mode only] -nodepend Don't generate dependencies [makefile mode only] -nomoc Don't generate moc targets [makefile mode only] -nopwd Don't look for files in pwd [project mode only] *** Error code 1 Stop. make: stopped in /home/marco/devel/_freebsd/ports/databases/pgadmin4 [...] So question is why is qmake not working? Probably need to add something in the Makefile but I've no idea what. I've tried all the possibilities in chapter 6.12 in the porters handbook. Help would be greatly appreciated. Thanks in advance, Regards, Marco -- Do not stoop to tie your laces in your neighbor's melon patch.