Mercurial > mxe-octave
annotate src/libmodplug.mk @ 2469:51a4ed33302d
various packages: fix references to mingw-cross-env and doc/index.html
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 02 May 2012 21:36:59 +1000 |
parents | 7dbb9f04ee33 |
children | 4d0f3a9da57e |
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 | 3 |
4 # libmodplug | |
5 PKG := libmodplug | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_CHECKSUM := df4deffe542b501070ccb0aee37d875ebb0c9e22 | |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/modplug-xmms/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := gcc | |
12 | |
13 define $(PKG)_UPDATE | |
14 wget -q -O- 'http://sourceforge.net/projects/modplug-xmms/files/libmodplug/' | \ | |
15 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ | |
16 head -1 | |
17 endef | |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
21 --host='$(TARGET)' \ | |
22 --disable-shared \ | |
23 --enable-static \ | |
24 --prefix='$(PREFIX)/$(TARGET)' | |
25 $(MAKE) -C '$(1)' -j '$(JOBS)' install | |
26 | |
27 '$(TARGET)-gcc' \ | |
28 -W -Wall -ansi -pedantic \ | |
29 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libmodplug.exe' \ | |
30 `'$(TARGET)-pkg-config' libmodplug --cflags --libs` | |
31 endef |