annotate src/libmodplug.mk @ 3048:5ef49fb3299d

treat gcc and binutils as build tools use a separate target for building the cmake toolchain file don't unpack gcc or binutils if we are using the system compiler
author John W. Eaton <jwe@octave.org>
date Fri, 14 Jun 2013 16:51:29 -0400
parents 951da75fd09c
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2469
51a4ed33302d various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents: 2447
diff changeset
1 # This file is part of MXE.
51a4ed33302d various packages: fix references to mingw-cross-env and doc/index.html
Tony Theodore <tonyt@logyst.com>
parents: 2447
diff changeset
2 # See index.html for further information.
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
3
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
4 # libmodplug
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
5 PKG := libmodplug
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := df4deffe542b501070ccb0aee37d875ebb0c9e22
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/modplug-xmms/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS :=
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
12
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2469
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/modplug-xmms/files/libmodplug/' | \
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
16 head -1
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
17 endef
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
18
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
19 define $(PKG)_BUILD
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
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)'
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
24 $(MAKE) -C '$(1)' -j '$(JOBS)' install
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
25
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
26 '$(MXE_CC)' \
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
27 -W -Wall -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
28 '$(2).c' -o '$(HOST_BINDIR)/test-libmodplug.exe' \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
29 `'$(MXE_PKG_CONFIG)' libmodplug --cflags --libs`
2447
7dbb9f04ee33 new package: libmodplug
Nikos Chantziaras <realnc@gmail.com>
parents:
diff changeset
30 endef