================================ phpextension:source=20100610-1 (previous: 20100513-2) cvc rdiff phpextension -1 /weasel.rpath.org@wgl:3-devel/20100610-1 ================================ 20100610-1 Filip Brcic (brcha@xxxxxxxxxxxx) Thu Jun 10 07:29:05 2010 added support for in-dir compilation (used in ming library, for example) phpextension.recipe: changed Index: phpextension.recipe ==================================================================== contents(size sha1) inode(mtime) --- phpextension.recipe /weasel.rpath.org@wgl:3-devel/20100513-2 +++ phpextension.recipe /weasel.rpath.org@wgl:3-devel/20100610-1 @@ -66,15 +66,23 @@ r.addAction('rm aclocal.m4') r.Autoreconf() - def build(r): + def build(r, dir=None): r.confArgs = '--prefix=%(prefix)s --with-php-config=%(bindir)s/php-config ' + r.confArgs # First compile round - default one - r.Configure(r.confArgs) - r.Make() + if dir == None: + r.Configure(r.confArgs) + r.Make() + else: + r.Configure(r.confArgs, dir=dir) + r.Make(dir=dir) - def install(r): - r.Install('modules/%(php_ext_name)s.so', + def install(r, dir=None): + start = '' + if dir != None: + start = dir + '/' + + r.Install(start + 'modules/%(php_ext_name)s.so', '%(libdir)s/php/extensions/') if not r.php_ext_ini: Committed by: brcha