Author: Helmut Grohne Last-Update: 2021-01-28 Bug-Debian: https://bugs.debian.org/981264 Forwarded: https://github.com/rosorio/buici-clock/pull/1 Description: Enable cross building --- buici-clock-0.4.9.4+nmu2.orig/configure.in +++ buici-clock-0.4.9.4+nmu2/configure.in @@ -57,6 +57,7 @@ dnl AC_FUNC_VPRINTF dnl -- We use vsprintf dnl AC_CHECK_FUNCS(mktime stime strftime) dnl -- Include in the source +PKG_CHECK_MODULES([CAIRO],[cairo]) AC_SUBST(XO_PATH) AC_SUBST(CFLAGS_W) @@ -72,7 +73,7 @@ dnl -- Configure XO, too, if it is local if test ! "${XO_PATH}" = "../xo" ; then if test ! -e ${XO_PATH}/config.cache ; then cp config.cache ${XO_PATH} ; fi - (cd ${XO_PATH} ; ./configure ) + (cd ${XO_PATH} ; ./configure --build=$build_alias --host=$host_alias ) fi dnl -- Check for missing RESOURCE_MANAGER string --- buici-clock-0.4.9.4+nmu2.orig/Makefile.in +++ buici-clock-0.4.9.4+nmu2/Makefile.in @@ -57,7 +57,7 @@ XO_PATH=@XO_PATH@ CC=@CXX@ -CFLAGS_I=-I${XO_PATH} `pkg-config --cflags cairo` +CFLAGS_I=-I${XO_PATH} @CAIRO_CFLAGS@ CXXFLAGS=@CXXFLAGS@ #CXXFLAGS=$(CXXFLAGS) -O #CXXFLAGS=$(CXXFLAGS) -O2 @@ -65,7 +65,7 @@ #CXXFLAGS=$(CXXFLAGS) -pg CXXFLAGS_=-g $(CFLAGS_I)@CFLAGS_W@@X_CFLAGS@ -LFLAGS=-g @LDFLAGS@@X_LIBS@ -L${XO_PATH} @LIBS@ -lxo -lX11 -lXext@X_EXTRA_LIBS@ `pkg-config --libs cairo` +LFLAGS=-g @LDFLAGS@@X_LIBS@ -L${XO_PATH} @LIBS@ -lxo -lX11 -lXext@X_EXTRA_LIBS@ @CAIRO_LIBS@ #LFLAGS=-pg ${LFLAGS} DEPEND=depend.m ECHO=@/bin/echo