Mercurial > mxe-octave
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 |
rev | line source |
---|---|
1023 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # xvidcore | |
5 PKG := xvidcore | |
6 $(PKG)_IGNORE := | |
1690 | 7 $(PKG)_VERSION := 1.3.1 |
8 $(PKG)_CHECKSUM := 68c73b9a00dfb830083f619335eb876b0f845bec | |
1023 | 9 $(PKG)_SUBDIR := xvidcore/build/generic |
10 $(PKG)_FILE := xvidcore-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_WEBSITE := http://www.xvid.org/ | |
12 $(PKG)_URL := http://downloads.xvid.org/downloads/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc pthreads | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://www.xvid.org/' | \ | |
17 $(SED) -n 's,.*Xvid \([0-9][^ ]*\) .*,\1,p' | \ | |
18 head -1 | |
19 endef | |
20 | |
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 | 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 | 27 $(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB= |
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' | |
29 $(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(PREFIX)/$(TARGET)/include/' | |
30 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' | |
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 | 33 endef |