From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Building gpgme with Qt support? Date: Mon, 5 Jun 2017 15:21:43 +0200 Message-ID: <20170605152143.58bd2087@scratchpost.org> References: <5934503C.3060101@crazy-compilers.com> <20170604183540.GA2840@jasmine> <593531E2.4020008@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHrxA-0001be-EJ for guix-devel@gnu.org; Mon, 05 Jun 2017 09:21:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHrx6-0003fu-F4 for guix-devel@gnu.org; Mon, 05 Jun 2017 09:21:52 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:48972) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHrx6-0003eH-7z for guix-devel@gnu.org; Mon, 05 Jun 2017 09:21:48 -0400 In-Reply-To: <593531E2.4020008@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel Hi, a possible way would be: - in qt-gpgme depend on gpgme as a regular input - in qt-gpgme do: - cd lang/qt - cp ../../NEWS . - cp ../../AUTHORS . - cp ../../ChangeLog . - add configure.ac (see below - although it needs to be fixed so that Makefile.am and it regularily refers to gpgme) - run libtoolize - run aclocal -I ../../m4 - run automake --add-missing - run autoconf - run configure configure.ac: AC_INIT([qt-gpgme],[mym4_full_version],[http://bugs.gnupg.org]) AC_CONFIG_MACRO_DIR([../../m4]) AM_INIT_AUTOMAKE([serial-tests dist-bzip2 no-dist-gzip]) AC_PROG_CXX AM_MAINTAINER_MODE AC_CANONICAL_HOST AM_SILENT_RULES AM_CONDITIONAL(HAVE_MACOS_SYSTEM, false) AM_CONDITIONAL(HAVE_W32_SYSTEM, false) NEED_GPG_ERROR_VERSION=1.17 NEED_LIBASSUAN_API=2 NEED_LIBASSUAN_VERSION=2.0.2 # Checking for libgpg-error. have_gpg_error=no AM_PATH_GPG_ERROR("$NEED_GPG_ERROR_VERSION", have_gpg_error=yes, have_gpg_error=no) AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME, [The default error source for GPGME.]) # And for libassuan. have_libassuan=no AM_PATH_LIBASSUAN("$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION", have_libassuan=yes, have_libassuan=no) if test "$have_libassuan" = "yes"; then AC_DEFINE_UNQUOTED(GPGME_LIBASSUAN_VERSION, "$libassuan_version", [version of the libassuan library]) fi LT_PREREQ([2.2.6]) LT_INIT([win32-dll disable-static]) LT_LANG([Windows Resource]) # Check that if qt is enabled cpp also is enabled if true ; then # We need to ensure that in the langauge order qt comes after cpp # so we remove qt first and explicitly add it as last list member. enabled_languages='cpp qt' FIND_QT if test "$have_qt5_libs" != "yes"; then if test "$explicit_languages" = "1"; then AC_MSG_ERROR([[ *** *** Qt5 (Qt5Core) is required for Qt binding. ***]]) else AC_MSG_WARN([[ *** *** Qt5 (Qt5Core) not found Qt Binding will be disabled. ***]]) fi else enabled_languages=`echo $enabled_languages qt` AC_CHECK_PROGS([DOXYGEN], [doxygen]) if test -z "$DOXYGEN"; # This is not highlighted becase it's not really important. then AC_MSG_WARN([Doxygen not found - Qt binding doc will not be built.]) fi AC_CHECK_PROGS([GRAPHVIZ], [dot]) if test -z "$GRAPHVIZ"; then AC_MSG_WARN([Graphviz not found - Qt binding doc will not have diagrams.]) fi fi fi AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) if test -n "$GRAPHVIZ"; then HAVE_DOT="YES" else HAVE_DOT="NO" fi AC_SUBST(HAVE_DOT) AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile doc/Makefile]) AC_OUTPUT