Files
Pmodules/getopt/build
T
gsell 4d83e4431a getopt/build
- set C_INCLUDE_PATH and LIBRARY_PATH to Pmodules installation directories +include and +lib
2016-10-12 15:33:24 +02:00

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: