Skip to content
Snippets Groups Projects
Commit d73c4865 authored by Sebastien Binet's avatar Sebastien Binet Committed by Graeme Stewart
Browse files

PyCmt refactorization (AtlasSzip-00-01-00)

parent 2b8c3627
No related branches found
No related tags found
No related merge requests found
#
#
from PyCmt.pkgbuild.cmmi import *
pkg_name= "szip"
pkg_ver = "2.1"
def configure(self):
sh = self.sh
msg = self.msg
env = self.env
orig_cflags = env['CFLAGS']
orig_cxxflags = env['CXXFLAGS']
# patch for macosx...
import sys
if sys.platform == 'darwin':
env['CFLAGS'] = env['CFLAGS'].replace(' -g', ' ')
env['CXXFLAGS'] = env['CXXFLAGS'].replace(' -g', ' ')
msg.debug('configure...')
sh.chdir("%(pkg_build_dir)s/%(pkg_name)s-%(pkg_ver)s" % env)
cmd = [
'./configure',
'--prefix=%(pkg_install_dir)s'%env,
'--disable-static',
'--enable-shared',
'--enable-encoding',
'--with-pic',
]
self.run(cmd)
if sys.platform == 'darwin':
env['CFLAGS'] = orig_cflags
env['CXXFLAGS'] = orig_cxxflags
## Automatically generated CMT requirements file
package AtlasSzip
author Sebastien Binet <binet@cern.ch>
## For Athena policies: it has to be the first use statement
use AtlasPolicy AtlasPolicy-*
use PyCmt PyCmt-* Tools -no_auto_imports
macro_append AtlasSzip_linkopts " -lsz"
apply_pattern include_path extras=$(CMTINSTALLAREA)/$(CMTCONFIG)/include
private
apply_pattern make_pkgbuild \
name=szip \
file=pkgbuild_szip.py
end_private
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment