libjpeg-turbo: added virtualpkg.d plist files.

This commit is contained in:
Juan RP 2011-10-20 17:19:55 +02:00
parent 67a103cdbb
commit f1b3615534
6 changed files with 45 additions and 5 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>virtual-pkgver</key>
<string>jpeg-devel-8</string>
<key>target-pkgpattern</key>
<string>libjpeg-turbo-devel>=0</string>
</dict>
</plist>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>virtual-pkgver</key>
<string>jpeg-tools-8</string>
<key>target-pkgpattern</key>
<string>libjpeg-turbo-tools>=0</string>
</dict>
</plist>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>virtual-pkgver</key>
<string>jpeg-8</string>
<key>target-pkgpattern</key>
<string>libjpeg-turbo>=0</string>
</dict>
</plist>

View file

@ -11,9 +11,12 @@ Add_dependency run libjpeg-turbo
provides="jpeg-devel-8" provides="jpeg-devel-8"
replaces="jpeg-devel>=0" replaces="jpeg-devel>=0"
revision=1
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/usr/lib vmove usr/include usr
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr vmove "usr/lib/*.a" usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
} }

View file

@ -11,8 +11,12 @@ Add_dependency run libjpeg-turbo ">=${version}"
provides="jpeg-tools-8" provides="jpeg-tools-8"
replaces="jpeg-tools>=0" replaces="jpeg-tools>=0"
revision=1
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/usr vmove usr/bin usr
mv ${SRCPKGDESTDIR}/usr/{bin,share} ${DESTDIR}/usr vmove usr/share/man usr/share
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
} }

View file

@ -1,6 +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
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
@ -26,6 +27,8 @@ Add_dependency build nasm
post_install() { post_install() {
vinstall jpegint.h 644 usr/include vinstall jpegint.h 644 usr/include
vinstall LICENSE.txt 644 usr/share/licenses/${pkgname} vinstall LICENSE.txt 644 usr/share/licenses/${pkgname}
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/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