remove remaing ncurses rules file from old package dir
[openwrt.git] / obsolete-buildroot / make / jpeg.mk
1 #############################################################
2 #
3 # jpeg (libraries needed by some apps)
4 #
5 #############################################################
6 # Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
7 # Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU Library General Public License as
11 # published by the Free Software Foundation; either version 2 of the
12 # License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Library General Public License for more details.
18 #
19 # You should have received a copy of the GNU Library General Public
20 # License along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 # USA
23 JPEG_DIR=$(BUILD_DIR)/jpeg-6b
24 JPEG_SITE:=ftp://ftp.uu.net/graphics/jpeg/
25 JPEG_SOURCE=jpegsrc.v6b.tar.gz
26 JPEG_CAT:=zcat
27
28 $(DL_DIR)/$(JPEG_SOURCE):
29 $(WGET) -P $(DL_DIR) $(JPEG_SITE)/$(JPEG_SOURCE)
30
31 jpeg-source: $(DL_DIR)/$(JPEG_SOURCE)
32
33 $(JPEG_DIR)/.unpacked: $(DL_DIR)/$(JPEG_SOURCE)
34 $(JPEG_CAT) $(DL_DIR)/$(JPEG_SOURCE) | tar -C $(BUILD_DIR) -xvf -
35 # The config.guess distributed with the package is not able
36 # to handle cross compilation. Use the one from binutils.
37 cp $(BINUTILS_DIR)/config.guess $(JPEG_DIR)/
38 touch $(JPEG_DIR)/.unpacked
39
40 $(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
41 (cd $(JPEG_DIR); rm -rf config.cache; \
42 $(TARGET_CONFIGURE_OPTS) \
43 ./configure \
44 --target=$(GNU_TARGET_NAME) \
45 --host=$(GNU_TARGET_NAME) \
46 --build=$(GNU_HOST_NAME) \
47 --prefix=/usr \
48 --exec-prefix=/usr \
49 --bindir=/usr/bin \
50 --sbindir=/usr/sbin \
51 --libexecdir=/usr/lib \
52 --sysconfdir=/etc \
53 --datadir=/usr/share \
54 --localstatedir=/var \
55 --mandir=/usr/man \
56 --infodir=/usr/info \
57 --enable-shared \
58 );
59 touch $(JPEG_DIR)/.configured
60
61 $(STAGING_DIR)/lib/libjpeg.so.62.0.0: $(JPEG_DIR)/.configured
62 $(MAKE) -C $(JPEG_DIR) all
63 # Note: This does not install the utilities.
64 $(MAKE) -C $(JPEG_DIR) prefix=$(STAGING_DIR) exec_prefix=$(STAGING_DIR) install-headers install-lib
65
66 $(TARGET_DIR)/lib/libjpeg.so.62.0.0: $(STAGING_DIR)/lib/libjpeg.so.62.0.0
67 cp -dpf $(STAGING_DIR)/lib/libjpeg.so* $(TARGET_DIR)/usr/lib/
68 -$(STRIP) $(TARGET_DIR)/usr/lib/libjpeg.so.62.0.0
69
70 jpeg: uclibc $(TARGET_DIR)/lib/libjpeg.so.62.0.0
71
72 jpeg-clean:
73 -$(MAKE) -C $(JPEG_DIR) clean
This page took 0.041537 seconds and 5 git commands to generate.