Mercurial > mxe-octave
annotate src/libgcrypt.mk @ 3293:cf6f40cededb
Support file list generation in packages.
For the following modules:
- arpack
- blas
- build-autoconf
- build-automake
- build-cmake
- build-gperf
- build-libtool
- build-msvctools
- build-pkg-config
- build-texinfo
- bzip2
- curl
- dbus
- expat
- fftw
- fltk
- fontconfig
- freetype
- gettext
- glpk
- gmp
- gnuplot
- gnutls
- graphicsmagick
- hdf5
- jasper
- jpeg
- lapack
- lcms
- libgcrypt
- libgpg_error
- libiconv
- libidn
- libpng
- libssh2
- libxml2
- ncurses
- nettle
- openssl
- pcre
- pstoedit
- zlib
- qhull
- qrupdate
- qscintilla
- qt
- readline
- suitesparse
- texinfo
- tiff
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 09 Nov 2013 23:28:04 -0500 |
parents | fa1867a474e4 |
children | 2ccb71581ee9 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2153
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := libgcrypt |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
5 $(PKG)_IGNORE := |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
6 $(PKG)_CHECKSUM := 2c6553cc17f2a1616d512d6870fe95edf6b0e26e |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
7 $(PKG)_SUBDIR := libgcrypt-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_FILE := libgcrypt-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_URL := ftp://ftp.gnupg.org/gcrypt/libgcrypt/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3033
diff
changeset
|
10 $(PKG)_DEPS := libgpg_error |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2442
diff
changeset
|
13 $(WGET) -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \ |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*libgcrypt-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
2141
574353ed434c
package libgcrypt: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2140
diff
changeset
|
15 grep -v '^1\.4\.' | \ |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 tail -1 |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
19 ifeq ($(TARGET),x86_64-w64-mingw32) |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
20 $(PKG)_TARGET_CONFIGURE_OPTIONS := ac_cv_sys_symbol_underscore=no |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
21 else |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
22 $(PKG)_TARGET_CONFIGURE_OPTIONS := |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
23 endif |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
24 |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 define $(PKG)_BUILD |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
26 sed -i -e '/^ *;/d' -e '/^ *$$/d' '$(1)/src/libgcrypt.def' |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
27 cd '$(1)' && ./configure \ |
2997 | 28 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2908
b9db9b09d641
fix shared library build for libgcrypt
John W. Eaton <jwe@octave.org>
parents:
2879
diff
changeset
|
30 $(ENABLE_SHARED_OR_STATIC) \ |
3262
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
31 --prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
32 --with-gpg-error-prefix='$(HOST_PREFIX)' \ |
fa1867a474e4
new versions of libgcrypt and openssl
John W. Eaton <jwe@octave.org>
parents:
3216
diff
changeset
|
33 $($(PKG)_TARGET_CONFIGURE_OPTIONS) && $(CONFIGURE_POST_HOOK) |
3084
6f7c1f4e9b2b
[MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
34 $(if $(filter msvc,$(MXE_SYSTEM)), \ |
6f7c1f4e9b2b
[MSVC] enable libcrypt compilation and update to 1.5.2
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3048
diff
changeset
|
35 $(SED) -i -e '/^LTCPPASCOMPILE/ {s/$$(LIBTOOL)/& --tag=CC/;}' '$(1)/mpi/Makefile') |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3262
diff
changeset
|
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= DESTDIR='$(3)' |
3216
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3084
diff
changeset
|
37 if [ $(MXE_NATIVE_BUILD) = no ]; then \ |
3293
cf6f40cededb
Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3262
diff
changeset
|
38 $(INSTALL) -m755 '$(3)$(HOST_BINDIR)/libgcrypt-config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)libgcrypt-config'; \ |
3216
11f8ec654cd4
Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents:
3084
diff
changeset
|
39 fi |
139
c37e2998b4a2
translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
40 endef |