annotate src/liboauth.mk @ 1527:5717df60d379

package liboauth: add test program and remove check target and associated variables
author Tony Theodore <tonyt@logyst.com>
date Mon, 03 Jan 2011 16:34:14 +1100
parents 7e8f36740d45
children 76279a31ddf6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
2 # See doc/index.html for further information.
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 # liboauth
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
5 PKG := liboauth
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
7 $(PKG)_VERSION := 0.9.1
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := f554a8f5e4edbabd64df7638cf4a2f9060ac5671
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://liboauth.sourceforge.net/
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
12 $(PKG)_URL := http://liboauth.sourceforge.net/pool/$($(PKG)_FILE)
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc curl openssl
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
14
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
16 wget -q -O- 'http://liboauth.sourceforge.net/' | \
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
17 $(SED) -n 's,.*liboauth-\([0-9][^>]*\)\.tar.*,\1,p' | \
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
18 head -1
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
19 endef
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
20
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
21 define $(PKG)_BUILD
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
23 --host='$(TARGET)' \
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)' \
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
25 --disable-shared \
1527
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
26 --disable-curl
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)'
1527
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
28 $(MAKE) -C '$(1)' -j 1 install
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
29
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
30 '$(TARGET)-gcc' \
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
31 -W -Wall -Werror -ansi -pedantic \
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
32 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-liboauth.exe' \
5717df60d379 package liboauth: add test program and remove check target and associated variables
Tony Theodore <tonyt@logyst.com>
parents: 1526
diff changeset
33 `'$(TARGET)-pkg-config' oauth --cflags --libs`
1526
7e8f36740d45 new package: liboauth
Gareth Coco <garethcoco@gmail.com>
parents:
diff changeset
34 endef