comparison src/plotutils.mk @ 532:a298ac430b8e

new package: plotutils (by Bart van Andel)
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Nov 2009 04:05:29 +0100
parents
children dab071eac9c0
comparison
equal deleted inserted replaced
531:0eea9b2a19ef 532:a298ac430b8e
1 # Copyright (C) 2009 Bart van Andel
2 # Volker Grabsch
3 #
4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish,
8 # distribute, sublicense, and/or sell copies of the Software, and to
9 # permit persons to whom the Software is furnished to do so, subject
10 # to the following conditions:
11 #
12 # The above copyright notice and this permission notice shall be
13 # included in all copies or substantial portions of the Software.
14 #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 # plotutils
24 PKG := plotutils
25 $(PKG)_IGNORE :=
26 $(PKG)_VERSION := 2.6
27 $(PKG)_CHECKSUM := 7921301d9dfe8991e3df2829bd733df6b2a70838
28 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
29 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
30 $(PKG)_WEBSITE := http://www.gnu.org/software/plotutils/
31 $(PKG)_URL := http://ftpmirror.gnu.org/$(PKG)/$($(PKG)_FILE)
32 $(PKG)_URL_2 := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE)
33 $(PKG)_DEPS := gcc libpng
34
35 define $(PKG)_UPDATE
36 wget -q -O- 'http://ftp.gnu.org/gnu/plotutils/?C=M;O=D' | \
37 grep '<a href="plotutils-' | \
38 $(SED) -n 's,.*plotutils-\([0-9][^<]*\)\.tar\.gz.*,\1,p' | \
39 head -1
40 endef
41
42 define $(PKG)_BUILD
43 cd '$(1)' && ./configure \
44 --prefix='$(PREFIX)/$(TARGET)' \
45 --host='$(TARGET)' \
46 --disable-shared \
47 --enable-libplotter \
48 --enable-libxmi \
49 --with-png \
50 --without-x \
51 CFLAGS='-DNO_SYSTEM_GAMMA'
52 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= man_MANS= INFO_DEPS=
53 endef