Mercurial > mxe-octave
annotate src/pdcurses.mk @ 2525:4d0f3a9da57e
all packages: use $(WGET) portability variable
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 09 May 2012 01:16:05 +1000 |
parents | b5321bdec505 |
children | 94c2c61023a0 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1462
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
408
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
4 PKG := pdcurses |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
422
diff
changeset
|
5 $(PKG)_IGNORE := |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
6 $(PKG)_CHECKSUM := e36684442a6171cc3a5165c8c49c70f67db7288c |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
7 $(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
8 $(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz |
422
d2f5eb27e051
improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/pdcurses/pdcurses/$($(PKG)_VERSION)/$($(PKG)_FILE) |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
10 $(PKG)_DEPS := gcc |
128
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
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://sourceforge.net/projects/pdcurses/files/pdcurses/' | \ |
1033
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
14 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ |
dd28c487a6b1
improved version recognition of packages: boost freetype gcc glew libgee mingwrt openssl pcre pdcurses w32api wxwidgets
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
15 head -1 |
128
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
19 $(SED) -i 's,copy,cp,' '$(1)/win32/mingwin32.mak' |
131
ed98f6b98e35
use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents:
128
diff
changeset
|
20 $(MAKE) -C '$(1)' -j '$(JOBS)' libs -f '$(1)/win32/mingwin32.mak' \ |
128
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 CC='$(TARGET)-gcc' \ |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 LIBEXE='$(TARGET)-ar' \ |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 DLL=N \ |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 PDCURSES_SRCDIR=. \ |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
25 WIDE=Y \ |
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 UTF8=Y |
131
ed98f6b98e35
use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents:
128
diff
changeset
|
27 $(TARGET)-ranlib '$(1)/pdcurses.a' '$(1)/panel.a' |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
28 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
29 $(INSTALL) -m644 '$(1)/curses.h' '$(1)/panel.h' '$(1)/term.h' '$(PREFIX)/$(TARGET)/include/' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
30 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib/' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
31 $(INSTALL) -m644 '$(1)/pdcurses.a' '$(PREFIX)/$(TARGET)/lib/libpdcurses.a' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
32 $(INSTALL) -m644 '$(1)/panel.a' '$(PREFIX)/$(TARGET)/lib/libpanel.a' |
128
934257e8c8aa
translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 endef |