mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 15:17:13 +08:00
libpng: Update
This commit is contained in:
parent
c854f21618
commit
264a1f9609
@ -1,41 +1,43 @@
|
|||||||
# Maintainer: Anke Boersma <abveritas@chakra-project.org>
|
# Maintainer:
|
||||||
|
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
|
||||||
|
# Anke Boersma (abveritas) <abveritas@chakra-project.org>
|
||||||
|
|
||||||
pkgname=libpng
|
pkgname=libpng
|
||||||
pkgver=1.6.3
|
pkgver=1.6.7
|
||||||
_apngver=1.6.3
|
_apngver=1.6.7
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A collection of routines used to create PNG format graphics files"
|
pkgdesc='A collection of routines used to create PNG format graphics files'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://www.libpng.org/pub/png/libpng.html"
|
url='http://www.libpng.org/pub/png/libpng.html'
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('zlib' 'sh')
|
depends=('zlib'
|
||||||
|
'sh')
|
||||||
options=('!libtool')
|
options=('!libtool')
|
||||||
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"
|
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz"
|
||||||
"http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz")
|
"http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz")
|
||||||
sha1sums=('adc60a2c117a0929e18bf357e0a1e6115a9e3b76'
|
sha512sums=('e76bae26b49be317b87dc1465a247498a40b0f25f3eac17ce22029487297b6c639f53f233e6fa74df84c3bbccc4cfba5d262857ae84572d588acfa8c9de42768'
|
||||||
'3472f2e882301a76e3207a785344f69974a5a040')
|
'41c95920b7bb67d741aec2f88247bb59d351a8de50548f41b10516c62cd8d8d0fbb9301365ba8f12f79871a758d65941792076aed43311902a4e88c6cd3f715a')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$pkgname-$pkgver"
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
|
|
||||||
# Add animated PNG (apng) support
|
# Add animated PNG (apng) support
|
||||||
# see http://sourceforge.net/projects/libpng-apng/
|
# see http://sourceforge.net/projects/libpng-apng/
|
||||||
patch -p1 -i "$srcdir/libpng-$_apngver-apng.patch"
|
patch -p1 -i "${srcdir}/libpng-${_apngver}-apng.patch"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$pkgname-$pkgver"
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
|
./configure \
|
||||||
./configure --prefix=/usr
|
--prefix=/usr \
|
||||||
|
--disable-static
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
cd ${srcdir}/${pkgname}-${pkgver}
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
cd contrib/pngminus
|
cd contrib/pngminus
|
||||||
make PNGLIB="-L$pkgdir/usr/lib -lpng" -f makefile.std png2pnm pnm2png
|
make PNGLIB="-L${pkgdir}/usr/lib -lpng" -f makefile.std png2pnm pnm2png
|
||||||
install -m755 png2pnm pnm2png "$pkgdir/usr/bin/"
|
install -m755 png2pnm pnm2png "${pkgdir}/usr/bin/"
|
||||||
install -D -m644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
install -D -m644 ../../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user