annotate src/popt.mk @ 684:6ab8ff5ab4f6

use the autotools for package popt
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 05 Feb 2010 03:06:08 +0100
parents dab071eac9c0
children 29f1ba4559ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
1 # This file is part of mingw-cross-env.
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
2 # See doc/index.html or doc/README for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 395
diff changeset
3
395
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # popt
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := popt
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
395
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 1.15
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := d9bc3067a4e7e62ac0bd9818e8cd649ee0dd12dc
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://freshmeat.net/projects/popt/
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://rpm5.org/files/popt/$($(PKG)_FILE)
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc libiconv gettext
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://rpm5.org/files/popt/' | \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep 'popt-' | \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*popt-\([0-9][^>]*\)\.tar.*,\1,p' | \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 tail -1
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
684
6ab8ff5ab4f6 use the autotools for package popt
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
23 cd '$(1)' && aclocal -I m4
6ab8ff5ab4f6 use the autotools for package popt
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
24 cd '$(1)' && autoheader
6ab8ff5ab4f6 use the autotools for package popt
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
25 cd '$(1)' && automake --add-missing
6ab8ff5ab4f6 use the autotools for package popt
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
26 cd '$(1)' && autoconf
395
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 cd '$(1)' && ./configure \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --host='$(TARGET)' \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --disable-shared \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --prefix='$(PREFIX)/$(TARGET)' \
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --enable-nls
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
efb6136728a8 new package: popt (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef