annotate src/smpeg.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 0967c751db7a
children dfc67c276c6b
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: 324
diff changeset
3
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # smpeg
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := smpeg
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
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 := 0.4.5+cvs20030824
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_CHECKSUM := d3460181f4b5e79b33f3bf4e9642a4fe6f98bc89
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := smpeg-$($(PKG)_VERSION).orig
324
beb10af0e886 improved coding style: use a consistent order of variables
Volker Grabsch <vog@notjusthosting.com>
parents: 321
diff changeset
10 $(PKG)_FILE := smpeg_$($(PKG)_VERSION).orig.tar.gz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://icculus.org/smpeg/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
12 $(PKG)_URL := http://ftp.debian.org/debian/pool/main/s/smpeg/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_DEPS := gcc sdl
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://packages.debian.org/unstable/source/smpeg' | \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*smpeg_\([0-9][^>]*\)\.orig\.tar.*,\1,p' | \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
c910739ef7ed translated package: smpeg
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: 735
diff changeset
22 $(SED) -i 's,\(-lsmpeg\),\1 -lstdc++,' '$(1)/smpeg-config.in'
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 cd '$(1)' && ./configure \
224
879f74dc81eb portability fix for MacOS X
Volker Grabsch <vog@notjusthosting.com>
parents: 160
diff changeset
24 AR='$(TARGET)-ar' \
160
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 NM='$(TARGET)-nm' \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --host='$(TARGET)' \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-shared \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-debug \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --prefix='$(PREFIX)/$(TARGET)' \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --with-sdl-prefix='$(PREFIX)/$(TARGET)' \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --disable-sdltest \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-gtk-player \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --disable-opengl-player \
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 CFLAGS='-ffriend-injection'
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
c910739ef7ed translated package: smpeg
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 endef