annotate src/xvidcore.mk @ 1690:79cd458d80d8

update package xvidcore
author Mark Brand <mabrand@mabrand.nl>
date Fri, 25 Mar 2011 18:55:39 +0100
parents b7381f5f300c
children c0a4e94c22fb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1023
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # See doc/index.html for further information.
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # xvidcore
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := xvidcore
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
1690
79cd458d80d8 update package xvidcore
Mark Brand <mabrand@mabrand.nl>
parents: 1604
diff changeset
7 $(PKG)_VERSION := 1.3.1
79cd458d80d8 update package xvidcore
Mark Brand <mabrand@mabrand.nl>
parents: 1604
diff changeset
8 $(PKG)_CHECKSUM := 68c73b9a00dfb830083f619335eb876b0f845bec
1023
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := xvidcore/build/generic
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := xvidcore-$($(PKG)_VERSION).tar.gz
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://www.xvid.org/
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://downloads.xvid.org/downloads/$($(PKG)_FILE)
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc pthreads
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://www.xvid.org/' | \
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*Xvid \([0-9][^ ]*\) .*,\1,p' | \
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
1041
db1081a60679 wine fix for package xvidcore (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1025
diff changeset
22 # wine confuses the cross-compiling detection, so set it explicitly
db1081a60679 wine fix for package xvidcore (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1025
diff changeset
23 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
1025
d563764317d0 remove the unnecessary call to ./bootstrap.sh in package xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents: 1023
diff changeset
24 cd '$(1)' && ./configure \
1023
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --host='$(TARGET)' \
1265
038474ea27af package xvidcore: enable assembly since yasm is now present
Tony Theodore <tonyt@logyst.com>
parents: 1259
diff changeset
26 --prefix='$(PREFIX)/$(TARGET)'
1023
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB=
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(PREFIX)/$(TARGET)/include/'
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib'
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(INSTALL) -m644 '$(1)/build/xvidcore.a' '$(PREFIX)/$(TARGET)/lib/'
1259
8ab68c8615ca improve ffmpeg: move link creation to respective packages
Tony Theodore <tonyt@logyst.com>
parents: 1041
diff changeset
32 ln -sf $(PREFIX)/$(TARGET)/lib/xvidcore.a $(PREFIX)/$(TARGET)/lib/libxvidcore.a
1023
7297c0adc12a new package: xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 endef