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" provides="jpeg-devel-8"
replaces="jpeg-devel>=0" replaces="jpeg-devel>=0"
revision=1 revision=2
do_install() do_install()
{ {
@ -19,4 +19,7 @@ do_install()
vmove "usr/lib/*.a" usr/lib vmove "usr/lib/*.a" usr/lib
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname} 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" provides="jpeg-tools-8"
replaces="jpeg-tools>=0" replaces="jpeg-tools>=0"
revision=1 revision=2
do_install() do_install()
{ {
@ -19,4 +19,7 @@ do_install()
vmove usr/share/man usr/share vmove usr/share/man usr/share
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname} 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'. # Template build file for 'libjpeg-turbo'.
pkgname=libjpeg-turbo pkgname=libjpeg-turbo
version=1.1.1 version=1.1.1
revision=1 revision=2
homepage="http://libjpeg-turbo.virtualgl.org/" homepage="http://libjpeg-turbo.virtualgl.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
build_style=gnu_configure build_style=gnu_configure
@ -29,6 +29,9 @@ post_install() {
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname} vinstall LICENSE.txt 644 usr/share/licenses/${pkgname}
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \ vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname} 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/jpegut
rm -f ${DESTDIR}/usr/bin/jpgtest rm -f ${DESTDIR}/usr/bin/jpgtest