annotate src/taglib.mk @ 1652:34e2c7640502

update package taglib
author Mark Brand <mabrand@mabrand.nl>
date Sun, 13 Mar 2011 22:49:51 +0100
parents 9e587ca588dc
children 9577f70222f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 533
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.
533
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # TagLib
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := taglib
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1652
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
7 $(PKG)_VERSION := 1.7
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
8 $(PKG)_CHECKSUM := 5138e1665182bc2171e298ff31518c9ad72ddf23
1465
b680227d8892 improved update script of package taglib
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1465
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
533
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://developer.kde.org/~wheeler/taglib.html
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://developer.kde.org/~wheeler/files/src/$($(PKG)_FILE)
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc zlib
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
1465
b680227d8892 improved update script of package taglib
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
16 wget -q -O- 'http://developer.kde.org/~wheeler/files/src/?C=M;O=D' | \
b680227d8892 improved update script of package taglib
Volker Grabsch <vog@notjusthosting.com>
parents: 956
diff changeset
17 $(SED) -n 's,.*"taglib-\([0-9][^"]*\)\.tar.*,\1,p' | \
533
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
1652
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
22 mkdir '$(1)/build'
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
23 cd '$(1)/build' && cmake .. \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
24 -DCMAKE_SYSTEM_NAME=Windows \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
25 -DCMAKE_FIND_ROOT_PATH='$(PREFIX)/$(TARGET)' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
26 -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
27 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
28 -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
29 -DCMAKE_C_COMPILER='$(PREFIX)/bin/$(TARGET)-gcc' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
30 -DCMAKE_CXX_COMPILER='$(PREFIX)/bin/$(TARGET)-g++' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
31 -DCMAKE_INCLUDE_PATH='$(PREFIX)/$(TARGET)/include' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
32 -DCMAKE_LIB_PATH='$(PREFIX)/$(TARGET)/lib' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
33 -DPKG_CONFIG_EXECUTABLE=$(TARGET)-pkg-config \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
34 -DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
35 -DCMAKE_BUILD_TYPE=Release \
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
36 -DENABLE_STATIC=ON
34e2c7640502 update package taglib
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
37 $(MAKE) -C '$(1)/build' -j '$(JOBS)' install
533
aba85d15295c new package: taglib (by Sven Oliver Moll)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 endef