Date: Thu, 13 Sep 2018 23:15:43 +0200 From: =?UTF-8?Q?Lo=c3=afc_Bartoletti?= <lbartoletti@tuxfamily.org> To: freebsd-ports@freebsd.org Subject: Re: creating makefile for new pgadmin4 port: qmake error Message-ID: <65474b8e-ba7a-e908-7032-5f2244a19adb@tuxfamily.org> In-Reply-To: <alpine.BSF.2.21.9999.1809132143370.2970@yokozuna.lan> References: <alpine.BSF.2.21.9999.1809132143370.2970@yokozuna.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> > [...] > > > 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 <prop> <value> Set persistent property > -unset <prop> Unset persistent property > -query <prop> Query persistent property. Show all if <prop> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65474b8e-ba7a-e908-7032-5f2244a19adb>