speedo: Minor improvements.

--
This commit is contained in:
Werner Koch 2014-01-09 19:14:09 +01:00
parent aedfa95bcc
commit 1dbf4a7573
1 changed files with 23 additions and 23 deletions

View File

@ -43,13 +43,19 @@
# #
# Set this to "git" or "release".
WHAT=release
# -------- # Set target to "native" or "w32"
TARGETOS=native
# Number of parallel make jobs
MAKE_J=3
# The packages that should be built. The order is also the build order. # The packages that should be built. The order is also the build order.
speedo_spkgs = libgpg-error npth libgcrypt libassuan libksba gnupg gpgme gpa speedo_spkgs = libgpg-error npth libgcrypt libassuan libksba gnupg gpgme gpa
# version numbers of the released packages # Version numbers of the released packages
# Fixme: Take the version numbers from gnupg-doc/web/swdb.mac # Fixme: Take the version numbers from gnupg-doc/web/swdb.mac
libgpg_error_ver = 1.12 libgpg_error_ver = 1.12
npth_ver = 0.91 npth_ver = 0.91
@ -64,6 +70,9 @@ gpa_ver = 0.9.5
#gitrep = git://git.gnupg.org #gitrep = git://git.gnupg.org
gitrep = ${HOME}/s gitrep = ${HOME}/s
# The tarball directory
pkgrep = ftp://ftp.gnupg.org/gcrypt
# For each package, the following variables can be defined: # For each package, the following variables can be defined:
# #
@ -87,15 +96,6 @@ gitrep = ${HOME}/s
# Note that you can override the defaults in this file in a local file # Note that you can override the defaults in this file in a local file
# "config.mk" # "config.mk"
# Set this to "git" or "release".
WHAT=release
# Set target to "native" or "w32"
TARGETOS=native
# Number of parallel make jobs
MAKE_J=3
ifeq ($(WHAT),git) ifeq ($(WHAT),git)
speedo_pkg_libgpg_error_git = $(gitrep)/libgpg-error speedo_pkg_libgpg_error_git = $(gitrep)/libgpg-error
speedo_pkg_libgpg_error_gitref = master speedo_pkg_libgpg_error_gitref = master
@ -114,7 +114,6 @@ ifeq ($(WHAT),git)
speedo_pkg_gpa_git = $(gitrep)/gpa speedo_pkg_gpa_git = $(gitrep)/gpa
speedo_pkg_gpa_gitref = master speedo_pkg_gpa_gitref = master
else else
pkgrep = ftp://ftp.gnupg.org/gcrypt
speedo_pkg_libgpg_error_tar = \ speedo_pkg_libgpg_error_tar = \
$(pkgrep)/libgpg-error/libgpg-error-$(libgpg_error_ver).tar.bz2 $(pkgrep)/libgpg-error/libgpg-error-$(libgpg_error_ver).tar.bz2
speedo_pkg_npth_tar = \ speedo_pkg_npth_tar = \
@ -248,13 +247,13 @@ $(stampdir)/stamp-$(1)-00-unpack: $(stampdir)/stamp-directories
@echo "speedo: /*" @echo "speedo: /*"
@echo "speedo: * $(1)" @echo "speedo: * $(1)"
@echo "speedo: */" @echo "speedo: */"
@(cd $(sdir); \ @(set -e; cd $(sdir); \
$(call SETVARS,$(1)); \ $(call SETVARS,$(1)); \
if [ -n "$$$${git}" ]; then \ if [ -n "$$$${git}" ]; then \
echo "speedo: unpacking $(1) from $$$${git}:$$$${gitref}"; \ echo "speedo: unpacking $(1) from $$$${git}:$$$${gitref}"; \
git clone -q -b "$$$${gitref}" "$$$${git}" "$$$${pkg}"; \ git clone -b "$$$${gitref}" "$$$${git}" "$$$${pkg}"; \
cd "$$$${pkg}" && \ cd "$$$${pkg}"; \
AUTOGEN_SH_SILENT=1 ./autogen.sh; \ AUTOGEN_SH_SILENT=1 ./autogen.sh; \
elif [ -n "$$$${tar}" ]; then \ elif [ -n "$$$${tar}" ]; then \
echo "speedo: unpacking $(1) from $$$${tar}"; \ echo "speedo: unpacking $(1) from $$$${tar}"; \
case "$$$${tar}" in \ case "$$$${tar}" in \
@ -283,8 +282,8 @@ $(stampdir)/stamp-$(1)-01-configure: $(stampdir)/stamp-$(1)-00-unpack
if [ -n "$(speedo_autogen_buildopt)" ]; then \ if [ -n "$(speedo_autogen_buildopt)" ]; then \
eval AUTOGEN_SH_SILENT=1 w32root="$(idir)" \ eval AUTOGEN_SH_SILENT=1 w32root="$(idir)" \
"$$$${pkgsdir}/autogen.sh" \ "$$$${pkgsdir}/autogen.sh" \
$(speedo_autogen_buildopt) --silent \ $(speedo_autogen_buildopt) \
$$$${pkgcfg}; \ $$$${pkgcfg}; \
else \ else \
eval "$$$${pkgsdir}/configure" \ eval "$$$${pkgsdir}/configure" \
--silent \ --silent \
@ -318,10 +317,11 @@ $(stampdir)/stamp-final-$(1): $(stampdir)/stamp-$(1)-03-install
clean-$(1): clean-$(1):
@echo "speedo: uninstalling $(1)" @echo "speedo: uninstalling $(1)"
@($(call SETVARS,$(1)); \ @($(call SETVARS,$(1)); \
(cd "$$$${pkgbdir}"; \ (cd "$$$${pkgbdir}" 2>/dev/null && \
$(MAKE) --no-print-directory $$$${pkgmkargs_inst} uninstall V=0); \ $(MAKE) --no-print-directory \
rm -fR "$$$${pkgsdir}" "$$$${pkgbdir}") $$$${pkgmkargs_inst} uninstall V=0 ) || true;\
@rm -f $(stampdir)/stamp-final-$(1) $(stampdir)/stamp-$(1)-* rm -fR "$$$${pkgsdir}" "$$$${pkgbdir}" || true)
-rm -f $(stampdir)/stamp-final-$(1) $(stampdir)/stamp-$(1)-*
.PHONY : report-$(1) .PHONY : report-$(1)
report-$(1): report-$(1):