guix-devel
[Top][All Lists]
Advanced

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

Re: Building gpgme with Qt support?


From: Danny Milosavljevic
Subject: Re: Building gpgme with Qt support?
Date: Mon, 5 Jun 2017 15:21:43 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]