annotate src/pdcurses.mk @ 306:85ffa9259036

validate downloads using SHA-1 checksums
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 05 Apr 2009 14:00:17 +0200
parents 08a32251156c
children 413750a629be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # PDcurses
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
3 PKG := pdcurses
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
4 $(PKG)_VERSION := 3.4
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
5 $(PKG)_CHECKSUM := e36684442a6171cc3a5165c8c49c70f67db7288c
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
6 $(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
7 $(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
8 $(PKG)_WEBSITE := http://pdcurses.sourceforge.net/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pdcurses/$($(PKG)_FILE)
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
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=30480&package_id=22452' | \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'PDCurses-' | \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*PDCurses-\([0-9][^>]*\)\.tar.*,\1,p' | \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
131
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
20 $(SED) 's,copy,cp,' -i '$(1)/win32/mingwin32.mak'
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
21 $(MAKE) -C '$(1)' -j '$(JOBS)' libs -f '$(1)/win32/mingwin32.mak' \
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 CC='$(TARGET)-gcc' \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 LIBEXE='$(TARGET)-ar' \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 DLL=N \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 PDCURSES_SRCDIR=. \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 WIDE=Y \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 UTF8=Y
131
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
28 $(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
29 $(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
30 $(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
31 $(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
32 $(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
33 $(INSTALL) -m644 '$(1)/panel.a' '$(PREFIX)/$(TARGET)/lib/libpanel.a'
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 endef