Mercurial > mxe-octave
annotate src/libmikmod.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:
1950
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
4 PKG := libmikmod |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
444
diff
changeset
|
5 $(PKG)_IGNORE := |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
6 $(PKG)_CHECKSUM := f16fc09ee643af295a8642f578bda97a81aaf744 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
7 $(PKG)_SUBDIR := libmikmod-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
8 $(PKG)_FILE := libmikmod-$($(PKG)_VERSION).tar.bz2 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
9 $(PKG)_URL := http://mikmod.raphnet.net/files/$($(PKG)_FILE) |
2376
477a6e439c92
package libmikmod: add pthreads dependency
Lothar May <lothar.imap@googlemail.com>
parents:
2365
diff
changeset
|
10 $(PKG)_DEPS := gcc pthreads |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
e0f30dabc752
translated package: libmikmod
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:
2376
diff
changeset
|
13 $(WGET) -q -O- 'http://mikmod.raphnet.net/' | \ |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*libmikmod-\([0-9][^>]*\)\.tar.*,\1,p' | \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 head -1 |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
734
diff
changeset
|
19 $(SED) -i 's,-Dunix,,' '$(1)/libmikmod/Makefile.in' |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
734
diff
changeset
|
20 $(SED) -i 's,`uname`,MinGW,g' '$(1)/configure' |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 CC='$(TARGET)-gcc' \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 NM='$(TARGET)-nm' \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 RANLIB='$(TARGET)-ranlib' \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 STRIP='$(TARGET)-strip' \ |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 ./configure \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
27 $(ENABLE_SHARED_OR_STATIC) \ |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 --prefix='$(PREFIX)/$(TARGET)' \ |
1950
f97ce88183f5
packages gcc libmikmod: explicitly specify --libdir
Mark Brand <mabrand@mabrand.nl>
parents:
1313
diff
changeset
|
29 --libdir='$(PREFIX)/$(TARGET)/lib' \ |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --disable-esd |
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
1313
b445aadc70d1
add test program for package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
32 |
b445aadc70d1
add test program for package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
33 '$(TARGET)-gcc' \ |
b445aadc70d1
add test program for package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
34 -W -Wall -Werror -std=c99 -pedantic \ |
b445aadc70d1
add test program for package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
35 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-libmikmod.exe' \ |
b445aadc70d1
add test program for package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
935
diff
changeset
|
36 `'$(PREFIX)/$(TARGET)/bin/libmikmod-config' --cflags --libs` |
155
e0f30dabc752
translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
37 endef |