annotate src/pdcurses.mk @ 265:5bf9071e67b6

put all package's project websites into Make variables $($(PKG)_WEBSITE)
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 01 Mar 2009 16:35:21 +0100
parents e3f4909ed0d5
children 08a32251156c
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
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 PKG := pdcurses
177
e3f4909ed0d5 update packages binutils, curl, fltk, fontconfig, freetype, gdal, geos, libgcrypt, libpng, libxml2, libxslt, pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents: 131
diff changeset
4 $(PKG)_VERSION := 3.4
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_SUBDIR := PDCurses-$($(PKG)_VERSION)
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_FILE := PDCurses-$($(PKG)_VERSION).tar.gz
265
5bf9071e67b6 put all package's project websites into Make variables $($(PKG)_WEBSITE)
Volker Grabsch <vog@notjusthosting.com>
parents: 177
diff changeset
7 $(PKG)_WEBSITE := http://pdcurses.sourceforge.net/
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/pdcurses/$($(PKG)_FILE)
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_DEPS := gcc
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 define $(PKG)_UPDATE
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 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
13 grep 'PDCurses-' | \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*PDCurses-\([0-9][^>]*\)\.tar.*,\1,p' | \
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 head -1
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
131
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
19 $(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
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'
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 install -d '$(PREFIX)/$(TARGET)/include/'
131
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
29 install -m644 '$(1)/curses.h' '$(1)/panel.h' '$(1)/term.h' '$(PREFIX)/$(TARGET)/include/'
128
934257e8c8aa translated package: pdcurses
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 install -d '$(PREFIX)/$(TARGET)/lib/'
131
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
diff changeset
31 install -m644 '$(1)/pdcurses.a' '$(PREFIX)/$(TARGET)/lib/libpdcurses.a'
ed98f6b98e35 use $(1) instead of $(2) to address to temporary build dir
Volker Grabsch <vog@notjusthosting.com>
parents: 128
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