annotate src/libgcrypt.mk @ 2442:3a37e58eab36

package libgcrypt: add test program and prefixed libgcrypt-config
author Tony Theodore <tonyt@logyst.com>
date Mon, 23 Apr 2012 00:36:06 +1000
parents b5321bdec505
children 4d0f3a9da57e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 :=
2140
0504c33af9fd Revert "update package libgcrypt" (oops)
Mark Brand <mabrand@mabrand.nl>
parents: 2139
diff changeset
6 $(PKG)_CHECKSUM := 3e776d44375dc1a710560b98ae8437d5da6e32cf
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)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_DEPS := gcc 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
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'ftp://ftp.gnupg.org/gcrypt/libgcrypt/' | \
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
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
22 --build="`config.guess`" \
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --disable-shared \
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)' \
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --with-gpg-error-prefix='$(PREFIX)/$(TARGET)'
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
2442
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
27 ln -sf '$(PREFIX)/$(TARGET)/bin/libgcrypt-config' '$(PREFIX)/bin/$(TARGET)-libgcrypt-config'
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
28
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
29 '$(TARGET)-gcc' \
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
30 -W -Wall -Werror -ansi -pedantic \
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
31 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libgcrypt.exe' \
3a37e58eab36 package libgcrypt: add test program and prefixed libgcrypt-config
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
32 `$(TARGET)-libgcrypt-config --cflags --libs`
139
c37e2998b4a2 translated package: libgcrypt
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef