source: branches/packages_8.09/libs/libpng/Makefile @ 16752

Last change on this file since 16752 was 16752, checked in by nico, 7 years ago

[packages] libpng: fix 1-bit interlaced images information disclosure vulnerability, bump release number

  • CVE-2009-2042
  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=libpng
12PKG_VERSION:=1.2.29
13PKG_RELEASE:=1.1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=@SF/libpng
17PKG_MD5SUM:=f588cb4ee39e3a333604096f937ea157
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/libpng
22  SECTION:=libs
23  CATEGORY:=Libraries
24  DEPENDS:=+zlib
25  TITLE:=A PNG format files handling library
26  URL:=http://www.libpng.org/pub/png/libpng.html
27endef
28
29define Build/Configure
30        $(call Build/Configure/Default, \
31                --enable-shared \
32                --enable-static \
33                --with-zlib="$(STAGING_DIR)/usr" \
34        )
35endef
36
37TARGET_CFLAGS += $(FPIC)
38
39define Build/Compile
40        $(MAKE) -C $(PKG_BUILD_DIR) \
41                DESTDIR="$(PKG_INSTALL_DIR)" \
42                all install
43endef
44
45define Build/InstallDev
46        mkdir -p $(2)/bin
47        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libpng{,12}-config $(2)/bin/
48        mkdir -p $(1)/usr/include
49        $(CP) $(PKG_INSTALL_DIR)/usr/include/png{,conf}.h $(1)/usr/include/
50        $(CP) $(PKG_INSTALL_DIR)/usr/include/libpng12 $(1)/usr/include/
51        mkdir -p $(1)/usr/lib
52        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.{a,so*} $(1)/usr/lib/
53        mkdir -p $(1)/usr/lib/pkgconfig
54        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpng{,12}.pc $(1)/usr/lib/pkgconfig/
55        $(SED) 's,^[ILR]_opts=".\+",,g' $(2)/bin/libpng*-config
56endef
57
58define Package/libpng/install
59        $(INSTALL_DIR) $(1)/usr/lib
60        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(1)/usr/lib/
61endef
62
63$(eval $(call BuildPackage,libpng))
Note: See TracBrowser for help on using the repository browser.