|
|
-e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \ | -e 's:$(G4BIN)/$(G4SYSTEM):$(G4TMP):g' \ |
-e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \ | -e 's:$(G4TMP)/$(G4SYSTEM):$(G4TMP):g' \ |
source/GNUmakefile || die "sed GNUmakefile failed" | source/GNUmakefile || die "sed GNUmakefile failed" |
|
sed -i \ |
|
-e 's:$(G4LIB)/$(G4SYSTEM):$(G4TMP):g' \ |
|
config/globlib.gmk || die "sed globlib.gmk failed" |
} | } |
| |
src_compile() { | src_compile() { |
|
|
export G4LIB_BUILD_SHARED=y | export G4LIB_BUILD_SHARED=y |
emake || die "Building shared geant failed" | emake || die "Building shared geant failed" |
| |
|
if use global; then |
|
export G4LIB_USE_GRANULAR=y |
|
emake global || die "Building global libraries failed" |
|
fi |
|
|
if use static; then | if use static; then |
rm -rf tmp | rm -rf tmp |
export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED | export G4LIB_BUILD_STATIC=y ; unset G4LIB_BUILD_SHARED |
emake || die "Building static geant failed" | emake || die "Building static geant failed" |
fi | fi |
|
|
if use global; then |
|
export G4LIB_USE_GRANULAR=y |
|
emake global || die "Building global libraries failed" |
|
fi |
|
} | } |
| |
g4_create_env_script() { | g4_create_env_script() { |