Building pinentry on Windows 7

Andre Heinecke aheinecke at intevation.de
Wed Oct 23 12:18:38 CEST 2013


Hi,

On Wednesday 23 October 2013 10:14:37 Werner Koch wrote:
> However, unless you only want the really ugly native pinentry you need
> to install lots of libraries first.  Thus using the gpg4win installer
> framework is easier.

I've recently played around with MXE ( http://mxe.cc/ ) which is another cross 
compilation environment that aims to provide an easy way to handle 
dependencys for Windows.

To build a static pinentry-qt4 with it you can just set it up as documented on 
their homepage. Drop the attached pinentry.mk in mxe/src/ and do
"make pinentry"

Worked like a charm for me on a debian wheezy system.

Regards,
Andre

-- 
Andre Heinecke |  ++49-541-335083-262 |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
PKG             := pinentry
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.8.3
$(PKG)_CHECKSUM := fc0efe5d375568f90ddbb23ee68e173411a49d4a
$(PKG)_SUBDIR   := pinentry-$($(PKG)_VERSION)
$(PKG)_FILE     := pinentry-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL      := ftp://ftp.gnupg.org/gcrypt/pinentry/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc qt

define $(PKG)_UPDATE
    $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/pinentry/' | \
    $(SED) -n 's,.*pinentry-\([1-9]\.[1-9][0-9][^>]*\)\.tar.*,\1,p' | \
    tail -1
endef

define $(PKG)_BUILD
    cd '$(1)' && ./configure \
        --host='$(TARGET)' \
        --build="`config.guess`" \
        --disable-shared \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-pinentry-qt \
        --disable-ncurses \
        --disable-pinentry-gtk2 \
        --disable-glibtest \
        --disable-gtktest \
        --enable-pinentry-qt4 \
        --enable-pinentry-qt4-clipboard
    $(MAKE) -C '$(1)' -j '$(JOBS)'
    $(MAKE) -C '$(1)' -j 1 install
endef



More information about the Gnupg-users mailing list