Files
MX_Pmodule/System/getopt/build
2019-08-23 16:01:05 +02:00

43 lines
690 B
Plaintext
Executable File

#!/usr/bin/env modbuild
pbuild::set_download_url "http://frodo.looijaard.name/system/files/software/$P/$P-${V_PKG}.tar.gz"
pbuild::compile_in_sourcetree
pbuild::add_to_group System
pbuild::pre_configure_Linux() {
pbuild::add_patch "files/Makefile.patch"
}
pbuild::configure() {
:
}
pbuild::compile() {
case ${OS} in
Linux )
declare -x LDFLAGS="-lintl"
;;
Darwin )
declare -x LDFLAGS="-lintl -liconv -framework CoreFoundation"
;;
esac
make -e all
}
pbuild::install() {
declare -x DESTDIR="${PREFIX}"
declare -x prefix=''
make -e install
}
pbuild::cleanup_build() {
make -e realclean
}
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: