From owner-freebsd-ports@freebsd.org Thu Sep 13 21:15:52 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 B6A031099BEE for ; Thu, 13 Sep 2018 21:15:52 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from smtp.smtpout.orange.fr (smtp04.smtpout.orange.fr [80.12.242.126]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 10E1B83527 for ; Thu, 13 Sep 2018 21:15:51 +0000 (UTC) (envelope-from lbartoletti@tuxfamily.org) Received: from imac-de-loic.home ([90.114.93.43]) by mwinf5d27 with ME id b9Fj1y00M0w8FgA039Fjvv; Thu, 13 Sep 2018 23:15:43 +0200 X-ME-Helo: imac-de-loic.home X-ME-Auth: YmFydG9sZXR0aS5sb2ljQG9yYW5nZS5mcg== X-ME-Date: Thu, 13 Sep 2018 23:15:43 +0200 X-ME-IP: 90.114.93.43 Subject: Re: creating makefile for new pgadmin4 port: qmake error To: freebsd-ports@freebsd.org References: From: =?UTF-8?Q?Lo=c3=afc_Bartoletti?= Message-ID: <65474b8e-ba7a-e908-7032-5f2244a19adb@tuxfamily.org> Date: Thu, 13 Sep 2018 23:15:43 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr 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 21:15:52 -0000 You have to build outsource so: USES=            pgsql python qmake:outsource qt:5 QMAKE_SOURCE_PATH=    ${WRKSRC}/runtime Good luck for the next steps Loïc Le 13/09/2018 à 22:03, Marco Beishuizen a écrit : > 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 >