fbreader: fix cross
This commit is contained in:
parent
f5ed2b6de6
commit
0a90b8f3dc
|
@ -0,0 +1,19 @@
|
|||
--- makefiles/arch/desktop.mk.orig 2012-11-30 12:41:25.000000000 +0000
|
||||
+++ makefiles/arch/desktop.mk 2018-03-17 06:44:28.961588128 +0000
|
||||
@@ -7,13 +7,10 @@
|
||||
APPIMAGEDIR = $(INSTALLDIR)/share/pixmaps/%APPLICATION_NAME%
|
||||
|
||||
|
||||
-CCACHE = $(shell if which ccache > /dev/null; then echo "ccache"; fi) #if ccache is not installed, do not use it
|
||||
-CC = $(CCACHE) gcc
|
||||
-AR = ar rsu
|
||||
-LD = g++
|
||||
+AR := ${AR} rsu
|
||||
+LD := ${CXX}
|
||||
|
||||
-CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
|
||||
-LDFLAGS =
|
||||
+CFLAGS += -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
|
||||
EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
|
||||
|
||||
ifeq "$(UI_TYPE)" "qt"
|
|
@ -3,7 +3,7 @@ pkgname=fbreader
|
|||
version=0.99.4
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
hostmakedepends="pkg-config qt-host-tools"
|
||||
makedepends="fribidi-devel bzip2-devel expat-devel libcurl-devel libunibreak-devel sqlite-devel qt-devel zlib-devel"
|
||||
short_desc="An e-book reader"
|
||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||
|
@ -17,12 +17,6 @@ if [ ${XBPS_GCC_VERSION_MAJOR} -gt 5 ]; then
|
|||
CXXFLAGS="-Wno-error=narrowing"
|
||||
fi
|
||||
|
||||
post_configure() {
|
||||
sed -i makefiles/arch/desktop.mk \
|
||||
-e"s;^\(CFLAGS.*=.*\);& $CFLAGS;" \
|
||||
-e"s;^\(CXXFLAGS.*=.*\);& $CXXFLAGS;" \
|
||||
-e"s;^\(LDFLAGS.*=.*\);& $LDFLAGS;"
|
||||
}
|
||||
do_build() {
|
||||
sed -e "s:-llinebreak:-lunibreak:" -i makefiles/config.mk zlibrary/text/Makefile
|
||||
make -j1 -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy
|
||||
|
|
Loading…
Reference in New Issue