Convert pixman to AutotoolsPackage (#4231)
This commit is contained in:
parent
1a6b4afe7f
commit
c612781f6f
@ -26,7 +26,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
class Pixman(Package):
|
class Pixman(AutotoolsPackage):
|
||||||
"""The Pixman package contains a library that provides low-level
|
"""The Pixman package contains a library that provides low-level
|
||||||
pixel manipulation features such as image compositing and
|
pixel manipulation features such as image compositing and
|
||||||
trapezoid rasterization."""
|
trapezoid rasterization."""
|
||||||
@ -37,18 +37,16 @@ class Pixman(Package):
|
|||||||
version('0.34.0', 'e80ebae4da01e77f68744319f01d52a3')
|
version('0.34.0', 'e80ebae4da01e77f68744319f01d52a3')
|
||||||
version('0.32.6', '3a30859719a41bd0f5cccffbfefdd4c2')
|
version('0.32.6', '3a30859719a41bd0f5cccffbfefdd4c2')
|
||||||
|
|
||||||
depends_on('pkg-config', type='build')
|
depends_on('pkg-config@0.9.0:', type='build')
|
||||||
depends_on('libpng')
|
depends_on('libpng')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
config_args = ["--prefix=" + prefix,
|
args = [
|
||||||
"--disable-gtk"]
|
'--enable-libpng',
|
||||||
|
'--disable-gtk',
|
||||||
|
]
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == 'darwin':
|
||||||
config_args.append("--disable-mmx")
|
args.append('--disable-mmx')
|
||||||
|
|
||||||
configure(*config_args)
|
return args
|
||||||
|
|
||||||
make()
|
|
||||||
make('check')
|
|
||||||
make('install')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user