mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
octoxbps: fix cross
This commit is contained in:
parent
d571c80436
commit
0c51fc88d5
1 changed files with 19 additions and 11 deletions
|
@ -8,25 +8,33 @@ makedepends="qt5-declarative-devel"
|
|||
depends="curl"
|
||||
short_desc="Qt-based XBPS front-end"
|
||||
maintainer="beefcurtains <beefcurtains@voidlinux.org>"
|
||||
license="GPL-2"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://github.com/aarnt/octoxbps"
|
||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||
checksum=6f7643bb07960d8c8f60ce70dc495f866ae60a4d6d8160a7f108f79bf53d2d22
|
||||
|
||||
do_configure() {
|
||||
for _dir in ${wrksrc} ${wrksrc}/notifier/octoxbps-notifier; do
|
||||
cd $_dir && qmake-qt5 ${configure_args} \
|
||||
PREFIX=/usr \
|
||||
LIB=/usr/lib \
|
||||
QMAKE_CFLAGS="${CFLAGS}" \
|
||||
QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
||||
QMAKE_LFLAGS="${LDFLAGS}"
|
||||
done
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" qt5-declarative-devel"
|
||||
fi
|
||||
|
||||
post_configure() {
|
||||
local qmake_args
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
qmake_args="-qtconf ${wrksrc}/qt.conf"
|
||||
fi
|
||||
cd ${wrksrc}/notifier/octoxbps-notifier && qmake-qt5 ${configure_args} \
|
||||
PREFIX=/usr \
|
||||
LIB=/usr/lib \
|
||||
QMAKE_CC=$CC QMAKE_CXX=$CXX QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
|
||||
QMAKE_CFLAGS="${CFLAGS}" \
|
||||
QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
||||
QMAKE_LFLAGS="${LDFLAGS}" \
|
||||
${qmake_args}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
for _dir in ${wrksrc} ${wrksrc}/notifier/octoxbps-notifier; do
|
||||
cd $_dir && make ${makejobs} ${make_build_args} ${make_build_target}
|
||||
cd $_dir && make ${makejobs} ${make_build_args} ${make_build_target} CC="$CC" CXX="$CXX" LINK="$CXX"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue