annotate src/liboauth.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 47558e958113
children bcc26ffe9a0f
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: 2329
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.
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
3
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
4 PKG := liboauth
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2838
e1a8935c0ee6 update package liboauth
Mark Brand <mabrand@mabrand.nl>
parents: 2654
diff changeset
6 $(PKG)_CHECKSUM := cc936a440084f159cc46dab9018f1353f8bee80a
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://liboauth.sourceforge.net/pool/$($(PKG)_FILE)
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc curl openssl
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
11
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://liboauth.sourceforge.net/' | \
1528
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
14 $(SED) -n 's,.*liboauth-\([0-9][^>]*\)\.tar.*,\1,p' | \
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
15 head -1
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
16 endef
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
17
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
18 define $(PKG)_BUILD
1528
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
19 cd '$(1)' && ./configure \
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
20 --host='$(TARGET)' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
21 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2838
diff changeset
22 $(ENABLE_SHARED_OR_STATIC) \
1528
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
23 --disable-curl
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)'
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
25 $(MAKE) -C '$(1)' -j 1 install
2329
466e77a78672 Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents: 2173
diff changeset
26
1528
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
27 '$(TARGET)-gcc' \
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
28 -W -Wall -Werror -ansi -pedantic \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
29 '$(2).c' -o '$(HOST_PREFIX)/bin/test-liboauth.exe' \
1528
76279a31ddf6 package liboauth: fix spacing
Tony Theodore <tonyt@logyst.com>
parents: 1527
diff changeset
30 `'$(TARGET)-pkg-config' oauth --cflags --libs`
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
31 endef