mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 10:03:08 +02:00
4d83e4431a
- set C_INCLUDE_PATH and LIBRARY_PATH to Pmodules installation directories +include and +lib
44 lines
654 B
Python
Executable File
44 lines
654 B
Python
Executable File
#!/usr/bin/env modbuild
|
|
|
|
|
|
pbuild::configure() {
|
|
:
|
|
}
|
|
|
|
pbuild::build() {
|
|
declare -x C_INCLUDE_PATH="${PREFIX}/include"
|
|
declare -x LIBRARY_PATH="${PREFIX}/lib"
|
|
case ${OS} in
|
|
Linux )
|
|
declare -x LDFLAGS="-lintl"
|
|
;;
|
|
Darwin )
|
|
declare -x LDFLAGS="-lintl -liconv -framework CoreFoundation"
|
|
;;
|
|
esac
|
|
|
|
cd "${MODULE_SRCDIR}"
|
|
make -e
|
|
}
|
|
|
|
pbuild::install() {
|
|
cd "${MODULE_SRCDIR}"
|
|
declare -x DESTDIR="${PREFIX}"
|
|
declare -x prefix=''
|
|
make -e install
|
|
}
|
|
|
|
pbuild::cleanup_build() {
|
|
cd "${MODULE_SRCDIR}"
|
|
make -e realclean
|
|
}
|
|
|
|
pbuild::add_to_group 'Tools'
|
|
pbuild::make_all
|
|
|
|
# Local Variables:
|
|
# mode: sh
|
|
# sh-basic-offset: 8
|
|
# tab-width: 8
|
|
# End:
|