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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := flac
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := bd54354900181b59db3089347cc84ad81e410b38
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := flac-$($(PKG)_VERSION)
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := flac-$($(PKG)_VERSION).tar.gz
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(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
10 $(PKG)_DEPS := gcc libiconv ogg
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<option>FLAC_RELEASE_' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*FLAC_RELEASE_\([0-9][0-9_]*\)__.*,\1,p' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 $(SED) 's,_,.,g' | \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 head -1
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
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
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --prefix='$(PREFIX)/$(TARGET)' \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --disable-doxygen-docs \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-xmms-plugin \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --enable-cpplibs \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --enable-ogg \
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --disable-oggtest
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c5d1f0ee0f0b new package: flac
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 endef