Mercurial > mxe-octave
annotate src/xvidcore.mk @ 3013:bcc26ffe9a0f
use variable for --host and --build configure arguments
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 02 Jun 2013 12:40:32 -0400 |
parents | 100e618349f7 |
children | b6c7244a2f66 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2153
diff
changeset
|
1 # This file is part of MXE. |
2353
99516e73b368
Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents:
2349
diff
changeset
|
2 # See index.html for further information. |
1023 | 3 |
4 PKG := xvidcore | |
5 $(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
|
6 $(PKG)_CHECKSUM := 56e065d331545ade04c63c91153b9624b51d6e1b |
1023 | 7 $(PKG)_SUBDIR := xvidcore/build/generic |
8 $(PKG)_FILE := xvidcore-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://downloads.xvid.org/downloads/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc pthreads | |
11 | |
12 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
13 $(WGET) -q -O- 'http://www.xvid.org/' | \ |
1023 | 14 $(SED) -n 's,.*Xvid \([0-9][^ ]*\) .*,\1,p' | \ |
15 head -1 | |
16 endef | |
17 | |
18 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
|
19 cd '$(1)' && autoconf |
1025
d563764317d0
remove the unnecessary call to ./bootstrap.sh in package xvidcore
Volker Grabsch <vog@notjusthosting.com>
parents:
1023
diff
changeset
|
20 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
22 --prefix='$(HOST_PREFIX)' |
1023 | 23 $(MAKE) -C '$(1)' -j '$(JOBS)' BUILD_DIR='build' SHARED_LIB= |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
24 $(INSTALL) -d '$(HOST_PREFIX)/include' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
25 $(INSTALL) -m644 '$(1)/../../src/xvid.h' '$(HOST_PREFIX)/include/' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
26 $(INSTALL) -d '$(HOST_PREFIX)/lib' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
27 $(INSTALL) -m644 '$(1)/build/xvidcore.a' '$(HOST_PREFIX)/lib/' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
3006
diff
changeset
|
28 $(LN_SF) '$(HOST_PREFIX)/lib/xvidcore.a' '$(HOST_PREFIX)/lib/libxvidcore.a' |
1023 | 29 endef |