Mercurial > mxe-octave
annotate src/xvidcore.mk @ 1259:8ab68c8615ca
improve ffmpeg: move link creation to respective packages
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Mon, 20 Sep 2010 22:20:00 +1000 |
parents | db1081a60679 |
children | 038474ea27af |
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 := | |
7 $(PKG)_VERSION := 1.2.2 | |
8 $(PKG)_CHECKSUM := d6e73c725b2fe74695f9fd129966c98f81b27fea | |
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)' \ |
26 --prefix='$(PREFIX)/$(TARGET)' \ | |
27 --disable-assembly | |
28 $(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB= | |
29 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' | |
30 $(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(PREFIX)/$(TARGET)/include/' | |
31 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' | |
32 $(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
|
33 ln -sf $(PREFIX)/$(TARGET)/lib/xvidcore.a $(PREFIX)/$(TARGET)/lib/libxvidcore.a |
1023 | 34 endef |