Mercurial > mxe-octave
annotate src/flac.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
714
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. |
513 | 3 |
4 PKG := flac | |
5 $(PKG)_IGNORE := | |
6 $(PKG)_CHECKSUM := bd54354900181b59db3089347cc84ad81e410b38 | |
7 $(PKG)_SUBDIR := flac-$($(PKG)_VERSION) | |
8 $(PKG)_FILE := flac-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/flac/flac-src/flac-$($(PKG)_VERSION)-src/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc libiconv ogg | |
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://flac.cvs.sourceforge.net/viewvc/flac/flac/' | \ |
513 | 14 grep '<option>FLAC_RELEASE_' | \ |
15 $(SED) -n 's,.*FLAC_RELEASE_\([0-9][0-9_]*\)__.*,\1,p' | \ | |
16 $(SED) 's,_,.,g' | \ | |
17 head -1 | |
18 endef | |
19 | |
20 define $(PKG)_BUILD | |
21 cd '$(1)' && ./configure \ | |
22 --host='$(TARGET)' \ | |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
23 $(ENABLE_SHARED_OR_STATIC) \ |
513 | 24 --prefix='$(PREFIX)/$(TARGET)' \ |
25 --disable-doxygen-docs \ | |
26 --disable-xmms-plugin \ | |
27 --enable-cpplibs \ | |
28 --enable-ogg \ | |
29 --disable-oggtest | |
30 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
31 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
32 endef |