Mercurial > mxe-octave
annotate src/mingwrt.mk @ 285:08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 07 Mar 2009 08:52:50 +0100 |
parents | 5bf9071e67b6 |
children | 85ffa9259036 |
rev | line source |
---|---|
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # MinGW Runtime |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
3 PKG := mingwrt |
219
dc72b46ffb67
update version of packages geos and mingwrt
Volker Grabsch <vog@notjusthosting.com>
parents:
218
diff
changeset
|
4 $(PKG)_VERSION := 3.15.2-mingw32 |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 $(PKG)_SUBDIR := . |
218
0b626230c49b
don't install the DLL file of mingwrt, because there is no need for it
Volker Grabsch <vog@notjusthosting.com>
parents:
200
diff
changeset
|
6 $(PKG)_FILE := mingwrt-$($(PKG)_VERSION)-dev.tar.gz |
265
5bf9071e67b6
put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents:
219
diff
changeset
|
7 $(PKG)_WEBSITE := http://mingw.sourceforge.net/ |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/mingw/$($(PKG)_FILE) |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_DEPS := |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 define $(PKG)_UPDATE |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=11598' | \ |
218
0b626230c49b
don't install the DLL file of mingwrt, because there is no need for it
Volker Grabsch <vog@notjusthosting.com>
parents:
200
diff
changeset
|
13 grep 'mingwrt-' | \ |
0b626230c49b
don't install the DLL file of mingwrt, because there is no need for it
Volker Grabsch <vog@notjusthosting.com>
parents:
200
diff
changeset
|
14 $(SED) -n 's,.*mingwrt-\([0-9][^>]*\)-dev\.tar.*,\1,p' | \ |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 head -1 |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
19 $(INSTALL) -d '$(PREFIX)/$(TARGET)' |
131
ed98f6b98e35
use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents:
118
diff
changeset
|
20 cd '$(1)' && \ |
218
0b626230c49b
don't install the DLL file of mingwrt, because there is no need for it
Volker Grabsch <vog@notjusthosting.com>
parents:
200
diff
changeset
|
21 cp -rpv include lib '$(PREFIX)/$(TARGET)' |
115
ae21cae1b378
translated packages: mingwrt, w32api, binutils, gcc
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |