Mercurial > mxe-octave
annotate src/xvidcore.mk @ 2153:e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
For discussion, see the following email and its follow-ups:
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2011-11/msg00112.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Mon, 28 Nov 2011 09:51:56 +0100 |
parents | b005b9cf8998 |
children | f653602a0500 |
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 := | |
1880
94df9b4e71ae
upgrade packages: dbus fltk geos glib gnutls imagemagick lcms libass libevent libgsf pfstools x264 xvidcore xz
Mark Brand <mabrand@mabrand.nl>
parents:
1714
diff
changeset
|
7 $(PKG)_VERSION := 1.3.2 |
94df9b4e71ae
upgrade packages: dbus fltk geos glib gnutls imagemagick lcms libass libevent libgsf pfstools x264 xvidcore xz
Mark Brand <mabrand@mabrand.nl>
parents:
1714
diff
changeset
|
8 $(PKG)_CHECKSUM := 56e065d331545ade04c63c91153b9624b51d6e1b |
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 | |
1714
8aba3acd6389
don't remove the "-mno-cygwin" flag, but provide clean bugfixes instead for packages fltk and xvidcore
Mark Brand <mabrand@mabrand.nl>
parents:
1696
diff
changeset
|
22 cd '$(1)' && autoconf |
1025
d563764317d0
remove the unnecessary call to ./bootstrap.sh in package xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
1023
diff
changeset
|
23 cd '$(1)' && ./configure \ |
1023 | 24 --host='$(TARGET)' \ |
2153
e4c83fa61a5b
replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents:
2148
diff
changeset
|
25 --build="`config.guess`" \ |
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/' | |
1946
c6831f324cc3
improved coding style regarding creation of symlinks
Volker Grabsch <vog@notjusthosting.com>
parents:
1880
diff
changeset
|
32 ln -sf '$(PREFIX)/$(TARGET)/lib/xvidcore.a' '$(PREFIX)/$(TARGET)/lib/libxvidcore.a' |
1023 | 33 endef |