diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-04-26 15:14:18 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2005-04-26 15:14:18 +0000 |
commit | 0c7ef346e4d2bb94cc77d9a800328ab3fabc4911 (patch) | |
tree | 6dd780b10d6dceab82eaddf58a5e7df7bee720c9 /rules/gnupg.make | |
parent | 9baa0add2972661f7399633b785e7795c650d693 (diff) | |
download | ptxdist-0c7ef346e4d2bb94cc77d9a800328ab3fabc4911.tar.gz ptxdist-0c7ef346e4d2bb94cc77d9a800328ab3fabc4911.tar.xz |
added gnupg; patch by Jiri Nesladek
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2521 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/gnupg.make')
-rw-r--r-- | rules/gnupg.make | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/rules/gnupg.make b/rules/gnupg.make new file mode 100644 index 000000000..ec8222411 --- /dev/null +++ b/rules/gnupg.make @@ -0,0 +1,173 @@ +# $Id: gnupg.make,v 1.4 2005/04/26 12:16:24 michl Exp $ +# +# Copyright (C) 2005 by Jiri Nesladek +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +ifdef PTXCONF_GNUPG +PACKAGES += gnupg +endif + +# +# Paths and names +# +GNUPG_VERSION = 1.4.1 +GNUPG = gnupg-$(GNUPG_VERSION) +GNUPG_SUFFIX = tar.bz2 +GNUPG_URL = ftp://ftp.gnupg.org/gcrypt/gnupg/$(GNUPG).$(GNUPG_SUFFIX) +GNUPG_SOURCE = $(SRCDIR)/$(GNUPG).$(GNUPG_SUFFIX) +GNUPG_DIR = $(BUILDDIR)/$(GNUPG) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +gnupg_get: $(STATEDIR)/gnupg.get + +gnupg_get_deps = $(GNUPG_SOURCE) + +$(STATEDIR)/gnupg.get: $(gnupg_get_deps) + @$(call targetinfo, $@) + @$(call get_patches, $(GNUPG)) + touch $@ + +$(GNUPG_SOURCE): + @$(call targetinfo, $@) + @$(call get, $(GNUPG_URL)) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +gnupg_extract: $(STATEDIR)/gnupg.extract + +gnupg_extract_deps = $(STATEDIR)/gnupg.get + +$(STATEDIR)/gnupg.extract: $(gnupg_extract_deps) + @$(call targetinfo, $@) + @$(call clean, $(GNUPG_DIR)) + @$(call extract, $(GNUPG_SOURCE)) + @$(call patchin, $(GNUPG)) + touch $@ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +gnupg_prepare: $(STATEDIR)/gnupg.prepare + +# +# dependencies +# +gnupg_prepare_deps = \ + $(STATEDIR)/gnupg.extract \ + $(STATEDIR)/virtual-xchain.install + +GNUPG_PATH = PATH=$(CROSS_PATH) +GNUPG_ENV = $(CROSS_ENV) + +# +# autoconf +# +GNUPG_AUTOCONF = $(CROSS_AUTOCONF) +GNUPG_AUTOCONF += --prefix=$(CROSS_LIB_DIR) \ + --disable-card-support \ + --disable-gnupg-iconv \ + --disable-exec \ + --disable-idea \ + --enable-cast5 \ + --enable-blowfish \ + --enable-aes \ + --enable-twofish \ + --enable-sha256 \ + --enable-sha512 \ + --disable-exec \ + --disable-photo-viewers \ + --disable-keyserver-helpers \ + --disable-ldap \ + --disable-hkp \ + --disable-http \ + --disable-finger \ + --disable-ftp \ + --disable-keyserver-path \ + --disable-largefile \ + --disable-dns-srv \ + --disable-nls \ + --disable-rpath \ + --disable-regex + +$(STATEDIR)/gnupg.prepare: $(gnupg_prepare_deps) + @$(call targetinfo, $@) + @$(call clean, $(GNUPG_DIR)/config.cache) + cd $(GNUPG_DIR) && \ + $(GNUPG_PATH) $(GNUPG_ENV) \ + ./configure $(GNUPG_AUTOCONF) + touch $@ + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +gnupg_compile: $(STATEDIR)/gnupg.compile + +gnupg_compile_deps = $(STATEDIR)/gnupg.prepare + +$(STATEDIR)/gnupg.compile: $(gnupg_compile_deps) + @$(call targetinfo, $@) + cd $(GNUPG_DIR) && $(GNUPG_ENV) $(GNUPG_PATH) make + touch $@ + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +gnupg_install: $(STATEDIR)/gnupg.install + +$(STATEDIR)/gnupg.install: $(STATEDIR)/gnupg.compile + @$(call targetinfo, $@) + cd $(GNUPG_DIR) && $(GNUPG_ENV) $(GNUPG_PATH) make install + touch $@ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +gnupg_targetinstall: $(STATEDIR)/gnupg.targetinstall + +gnupg_targetinstall_deps = $(STATEDIR)/gnupg.install + +$(STATEDIR)/gnupg.targetinstall: $(gnupg_targetinstall_deps) + @$(call targetinfo, $@) + + @$(call install_init,default) + @$(call install_fixup,PACKAGE,gnupg) + @$(call install_fixup,PRIORITY,optional) + @$(call install_fixup,VERSION,$(GNUPG_VERSION)) + @$(call install_fixup,SECTION,base) + @$(call install_fixup,AUTHOR,"Jiri Nesladek <nesladek\@2n.cz>") + @$(call install_fixup,DEPENDS,libc) + @$(call install_fixup,DESCRIPTION,missing) + + @$(call install_copy, 0, 0, 0755, $(GNUPG_DIR)/g10/gpg, /usr/bin/gpg) + + @$(call install_finish) + + touch $@ + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +gnupg_clean: + rm -rf $(STATEDIR)/gnupg.* + rm -rf $(IMAGEDIR)/gnupg_* + rm -rf $(GNUPG_DIR) + +# vim: syntax=make |