annotate src/libmikmod.mk @ 759:bf4bcb3370fa

changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 16 Feb 2010 04:12:53 +0100
parents 25087a6e47ed
children 9993be51f18d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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
155
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # libMikMod
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := libmikmod
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 444
diff changeset
6 $(PKG)_IGNORE :=
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_VERSION := 3.2.0-beta2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_CHECKSUM := f16fc09ee643af295a8642f578bda97a81aaf744
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := libmikmod-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_FILE := libmikmod-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://mikmod.raphnet.net/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
12 $(PKG)_URL := http://mikmod.raphnet.net/files/$($(PKG)_FILE)
444
c828215f90ae enable libgomp (OpenMP) in package gcc by interweaving the pthread build into the gcc build
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
13 $(PKG)_DEPS := gcc
155
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://mikmod.raphnet.net/' | \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*libmikmod-\([0-9][^>]*\)\.tar.*,\1,p' | \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 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
22 $(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
23 $(SED) -i 's,`uname`,MinGW,g' '$(1)/configure'
155
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 CC='$(TARGET)-gcc' \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 NM='$(TARGET)-nm' \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 RANLIB='$(TARGET)-ranlib' \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 STRIP='$(TARGET)-strip' \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 LIBS='-lws2_32' \
734
25087a6e47ed bugfix in *-config result of package libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
30 LIBRARY_LIB='-lws2_32' \
155
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 ./configure \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-shared \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --prefix='$(PREFIX)/$(TARGET)' \
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-esd
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
e0f30dabc752 translated package: libmikmod
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 endef