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