annotate src/libsndfile.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 47558e958113
children bcc26ffe9a0f
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: 1933
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.
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libsndfile
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
1933
5e55e00138d5 update package libsndfile
Mark Brand <mabrand@mabrand.nl>
parents: 1686
diff changeset
6 $(PKG)_CHECKSUM := e95d9fca57f7ddace9f197071cbcfb92fa16748e
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := libsndfile-$($(PKG)_VERSION)
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := libsndfile-$($(PKG)_VERSION).tar.gz
607
0e4f707cd651 update version of packages geos, libgcrypt, libsndfile, pango and xmlwrapp
Volker Grabsch <vog@notjusthosting.com>
parents: 514
diff changeset
9 $(PKG)_URL := http://www.mega-nerd.com/libsndfile/files/$($(PKG)_FILE)
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc sqlite flac ogg vorbis
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
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://www.mega-nerd.com/libsndfile/' | \
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<META NAME="Version"' | \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*CONTENT="libsndfile-\([0-9][^"]*\)">.*,\1,p' | \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --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
22 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
23 --prefix='$(HOST_PREFIX)' \
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --enable-sqlite \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --enable-external-libs \
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-octave \
1318
969696473158 upgrade packages: imagemagick libsndfile x264
Tony Theodore <tonyt@logyst.com>
parents: 1279
diff changeset
27 --disable-alsa \
969696473158 upgrade packages: imagemagick libsndfile x264
Tony Theodore <tonyt@logyst.com>
parents: 1279
diff changeset
28 --disable-shave
514
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= html_DATA=
28cdf34ea090 new packages: libmad, libsndfile, sdl_net and speex (by Gregory Smith)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef