Mercurial > mxe-octave
annotate src/libtool.mk @ 2855:47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 15 Nov 2012 16:11:45 -0500 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2014
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. |
841 | 3 |
4 PKG := libtool | |
5 $(PKG)_IGNORE := | |
2014
1093671745df
update packages freetype lame libtool x264
Mark Brand <mabrand@mabrand.nl>
parents:
1185
diff
changeset
|
6 $(PKG)_CHECKSUM := 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 |
841 | 7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
9 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) | |
10 $(PKG)_DEPS := gcc | |
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://ftp.gnu.org/gnu/libtool/?C=M;O=D' | \ |
1020
38bd5aef58a0
avoid alpha releases of package libtool
Volker Grabsch <vog@notjusthosting.com>
parents:
841
diff
changeset
|
14 $(SED) -n 's,.*<a href="libtool-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
841 | 15 head -1 |
16 endef | |
17 | |
18 define $(PKG)_BUILD | |
19 cd '$(1)/libltdl' && ./configure \ | |
20 --host='$(TARGET)' \ | |
21 --prefix='$(PREFIX)/$(TARGET)' \ | |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
22 $(ENABLE_SHARED_OR_STATIC) \ |
841 | 23 --enable-ltdl-install |
24 $(MAKE) -C '$(1)/libltdl' -j '$(JOBS)' | |
25 $(MAKE) -C '$(1)/libltdl' -j 1 install | |
26 endef |