m2m-aligner: cross build support; use our CFLAGS.

This commit is contained in:
Juan RP 2014-05-06 09:22:19 +02:00
parent ae3d5cb0d6
commit f33a43d0d5

View file

@ -1,18 +1,21 @@
# Template file for 'm2m-aligner' # Template file for 'm2m-aligner'
pkgname=m2m-aligner pkgname=m2m-aligner
version=1.2 version=1.2
revision=1 revision=2
short_desc="Implemenation of many-to-many alignments for string transduction" short_desc="Implementation of many-to-many alignments for string transduction"
maintainer="Martin Riese <grauehaare@gmx.de>" maintainer="Martin Riese <grauehaare@gmx.de>"
license="MIT" license="MIT"
homepage="https://code.google.com/p/m2m-aligner/" homepage="https://code.google.com/p/m2m-aligner/"
distfiles="https://m2m-aligner.googlecode.com/files/${pkgname}-${version}.tar.gz" distfiles="https://m2m-aligner.googlecode.com/files/${pkgname}-${version}.tar.gz"
checksum="ca5b1176293e91f797f3588c01390d046e2dae0278034044f8a081d6bd674e91" checksum="ca5b1176293e91f797f3588c01390d046e2dae0278034044f8a081d6bd674e91"
do_build () { pre_build() {
make sed -e "s,g++,$CXX,g" -i makefile
sed -e "s,CFLAGS=,CFLAGS=${CFLAGS} ,g" -i makefile
}
do_build() {
make ${makejobs}
} }
do_install () { do_install () {
vinstall m2m-aligner 755 usr/bin vinstall m2m-aligner 755 usr/bin
} }