3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=dbd5f3b47ed13132f04c685d608a7547
10 PKG_SOURCE_URL
:=http
://www.ijg.org
/files
/ \
11 ftp
://ftp.uu.net
/graphics
/jpeg
/
12 PKG_SOURCE
:=$(PKG_NAME
)src.v
$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,LIBJPEG
,libjpeg
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
26 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
46 $(DISABLE_LARGEFILE
) \
53 $(PKG_BUILD_DIR
)/.built
:
54 rm -rf
$(PKG_INSTALL_DIR
)
55 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/{include,lib
}
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
58 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
59 prefix="$(PKG_INSTALL_DIR)/usr" \
60 exec_prefix="$(PKG_INSTALL_DIR)/usr" \
61 install-headers install-lib
65 install -d
-m0755
$(IDIR_LIBJPEG
)/usr
/lib
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libjpeg.so.
* $(IDIR_LIBJPEG
)/usr
/lib
/
67 $(RSTRIP
) $(IDIR_LIBJPEG
)
68 $(IPKG_BUILD
) $(IDIR_LIBJPEG
) $(PACKAGE_DIR
)
70 $(STAGING_DIR
)/usr
/lib
/libjpeg.so
: $(PKG_BUILD_DIR
)/.built
71 mkdir
-p
$(STAGING_DIR
)/usr
/include
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/jpeglib.h
$(STAGING_DIR
)/usr
/include/
73 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/j
{config
,error
,morecfg
}.h
$(STAGING_DIR
)/usr
/include/
74 mkdir
-p
$(STAGING_DIR
)/usr
/lib
75 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libjpeg.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
77 install-dev
: $(STAGING_DIR
)/usr
/lib
/libjpeg.so
81 $(STAGING_DIR
)/usr
/include/jpeglib.h \
82 $(STAGING_DIR
)/usr
/include/j
{config
,error
,morecfg
}.h \
83 $(STAGING_DIR
)/usr
/lib
/libjpeg.
{a
,so
*} \