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