Mercurial > mxe-octave
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 |
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 | 3 |
4 PKG := liboauth | |
5 $(PKG)_IGNORE := | |
2838 | 6 $(PKG)_CHECKSUM := cc936a440084f159cc46dab9018f1353f8bee80a |
1526 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://liboauth.sourceforge.net/pool/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc curl openssl | |
11 | |
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 | 16 endef |
17 | |
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 | 31 endef |