annotate src/flac.mk @ 513:c5d1f0ee0f0b

new package: flac
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 27 Oct 2009 20:14:55 +0100
parents
children dab071eac9c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
513
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Copyright (C) 2009 Volker Grabsch
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 #
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 # Permission is hereby granted, free of charge, to any person obtaining
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # a copy of this software and associated documentation files (the
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 # "Software"), to deal in the Software without restriction, including
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 # without limitation the rights to use, copy, modify, merge, publish,
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 # distribute, sublicense, and/or sell copies of the Software, and to
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 # permit persons to whom the Software is furnished to do so, subject
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 # to the following conditions:
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 #
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 # The above copyright notice and this permission notice shall be
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 # included in all copies or substantial portions of the Software.
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 #
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # FLAC
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 PKG := flac
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(PKG)_IGNORE :=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(PKG)_VERSION := 1.2.1
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(PKG)_CHECKSUM := bd54354900181b59db3089347cc84ad81e410b38
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_SUBDIR := flac-$($(PKG)_VERSION)
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_FILE := flac-$($(PKG)_VERSION).tar.gz
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_WEBSITE := http://www.xiph.org/ogg/
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/flac/flac-src/flac-$($(PKG)_VERSION)-src/$($(PKG)_FILE)
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(PKG)_DEPS := gcc libiconv ogg
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 define $(PKG)_UPDATE
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 wget -q -O- 'http://flac.cvs.sourceforge.net/viewvc/flac/flac/' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 grep '<option>FLAC_RELEASE_' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 $(SED) -n 's,.*FLAC_RELEASE_\([0-9][0-9_]*\)__.*,\1,p' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 $(SED) 's,_,.,g' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 head -1
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 endef
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 define $(PKG)_BUILD
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 cd '$(1)' && ./configure \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --host='$(TARGET)' \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 --disable-shared \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --prefix='$(PREFIX)/$(TARGET)' \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --disable-doxygen-docs \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --disable-xmms-plugin \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --enable-cpplibs \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --enable-ogg \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --disable-oggtest
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 endef