1 #############################################################
3 # jpeg (libraries needed by some apps)
5 #############################################################
6 # Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
7 # Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
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.
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.
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
23 JPEG_DIR
=$(BUILD_DIR
)/jpeg-6b
24 JPEG_SITE
:=ftp
://ftp.uu.net
/graphics
/jpeg
/
25 JPEG_SOURCE
=jpegsrc.v6b.
tar.gz
28 $(DL_DIR
)/$(JPEG_SOURCE
):
29 $(WGET
) -P
$(DL_DIR
) $(JPEG_SITE
)/$(JPEG_SOURCE
)
31 jpeg-source
: $(DL_DIR
)/$(JPEG_SOURCE
)
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
40 $(JPEG_DIR
)/.configured
: $(JPEG_DIR
)/.unpacked
41 (cd
$(JPEG_DIR
); rm -rf config.cache
; \
42 $(TARGET_CONFIGURE_OPTS
) \
44 --target
=$(GNU_TARGET_NAME
) \
45 --host
=$(GNU_TARGET_NAME
) \
46 --build
=$(GNU_HOST_NAME
) \
51 --libexecdir
=/usr
/lib \
53 --datadir=/usr
/share \
54 --localstatedir
=/var \
59 touch
$(JPEG_DIR
)/.configured
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
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
70 jpeg
: uclibc
$(TARGET_DIR
)/lib
/libjpeg.so
.62.0.0
73 -$(MAKE
) -C
$(JPEG_DIR
) clean