libjpeg-turbo: enable virtualpkg by default.

This commit is contained in:
Juan RP 2011-10-20 17:41:27 +02:00
parent 6f8a3f56ae
commit 71a14be355
3 changed files with 12 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Add_dependency run libjpeg-turbo
provides="jpeg-devel-8"
replaces="jpeg-devel>=0"
revision=1
revision=2
do_install()
{
@ -19,4 +19,7 @@ do_install()
vmove "usr/lib/*.a" usr/lib
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
vmkdir etc/xbps/virtualpkg.d.wants
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname} .
}

View File

@ -11,7 +11,7 @@ Add_dependency run libjpeg-turbo ">=${version}"
provides="jpeg-tools-8"
replaces="jpeg-tools>=0"
revision=1
revision=2
do_install()
{
@ -19,4 +19,7 @@ do_install()
vmove usr/share/man usr/share
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
vmkdir etc/xbps/virtualpkg.d.wants
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname} .
}

View File

@ -1,7 +1,7 @@
# Template build file for 'libjpeg-turbo'.
pkgname=libjpeg-turbo
version=1.1.1
revision=1
revision=2
homepage="http://libjpeg-turbo.virtualgl.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
build_style=gnu_configure
@ -29,6 +29,9 @@ post_install() {
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname}
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
vmkdir etc/xbps/virtualpkg.d.wants
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname} .
rm -f ${DESTDIR}/usr/bin/jpegut
rm -f ${DESTDIR}/usr/bin/jpgtest