3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=e5a39003eed16103cbbd3b6a8bc6b1f9
10 PKG_SOURCE_URL:=@SF/libpng
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-config.tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-config
16 include $(TOPDIR)/package/rules.mk
18 $(eval $(call PKG_template,LIBPNG,libpng,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=$(STAGING_DIR)/usr \
31 --with-zlib=$(STAGING_DIR)/usr/ \
34 --with-zlib=$(STAGING_DIR)/usr/ \
36 $(DISABLE_LARGEFILE) \
38 touch $(PKG_BUILD_DIR)/.configured
40 $(PKG_BUILD_DIR)/.built:
41 $(MAKE) -C $(PKG_BUILD_DIR) all
44 install -d -m0755 $(IDIR_LIBPNG)/usr/lib
45 cp -fpR $(PKG_BUILD_DIR)/.libs/libpng{,12}.so.* $(IDIR_LIBPNG)/usr/lib/
46 $(RSTRIP) $(IDIR_LIBPNG)
47 $(IPKG_BUILD) $(IDIR_LIBPNG) $(PACKAGE_DIR)
49 $(STAGING_DIR)/usr/lib/libpng.so: $(PKG_BUILD_DIR)/.built
50 $(MAKE) -C $(PKG_BUILD_DIR) all
52 install-dev: $(STAGING_DIR)/usr/lib/libpng.so
56 $(STAGING_DIR)/usr/bin/libpng{,12}-config \
57 $(STAGING_DIR)/usr/include/png{,conf}.h \
58 $(STAGING_DIR)/usr/include/libpng \
59 $(STAGING_DIR)/usr/lib/libpng{,12}.{a,so*} \
60 $(STAGING_DIR)/usr/lib/pkgconfig/libpng{,12}.pc