cbp2make: builds on musl; fix cross compilation. (close #3009).
This commit is contained in:
parent
c23daff127
commit
278c45d995
1 changed files with 4 additions and 15 deletions
|
@ -1,7 +1,8 @@
|
|||
# Template file for 'cbp2make'
|
||||
pkgname=cbp2make
|
||||
version=1.4.7
|
||||
revision=1
|
||||
wrksrc=$pkgname-stl-rev${version//./}-all
|
||||
wrksrc="$pkgname-stl-rev${version//./}-all"
|
||||
hostmakedepends="doxygen p7zip"
|
||||
short_desc="Makefile generation tool for Code::Blocks IDE"
|
||||
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
|
||||
|
@ -10,22 +11,10 @@ homepage="http://sourceforge.net/projects/cbp2make/"
|
|||
distfiles="${SOURCEFORGE_SITE}/$pkgname/cbp2make-stl-rev${version//./}-all.tar.7z"
|
||||
checksum=1b211abb8de00dc3048fccad6ebd076ab03dcb9f672cdff379de33a1346ed129
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) broken="Build fails on muslc";;
|
||||
esac
|
||||
|
||||
do_extract() {
|
||||
7z x ${XBPS_SRCDISTDIR}/$pkgname-$version/$pkgname-stl-rev${version//./}-all.tar.7z -o$XBPS_BUILDDIR
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
cp cbp2make.cbp.mak.unix Makefile
|
||||
}
|
||||
|
||||
do_build() {
|
||||
make release CC=$CC CXX=$CXX LD=$CXX
|
||||
cp -f cbp2make.cbp.mak.unix Makefile
|
||||
make release CC=$CC CXX=$CXX LD=$CXX CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin bin/Release/cbp2make
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue