mutt: fix cross-compile properly.

This commit is contained in:
Christian Neukirchen 2015-07-23 13:16:51 +02:00
parent 01c7a72cc1
commit 062657ddb4
2 changed files with 4 additions and 53 deletions
srcpkgs/mutt

View File

@ -1,44 +0,0 @@
--- doc/Makefile.in.orig 2013-11-19 10:10:58.977629650 +0100
+++ doc/Makefile.in 2013-11-19 10:12:15.468057050 +0100
@@ -116,14 +116,14 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+COMPILE = cc $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+CCLD = cc
+LINK = $(CCLD) $(AM_CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
@@ -159,7 +159,7 @@ ACLOCAL = @ACLOCAL@
ALLOCA = @ALLOCA@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
-AR = @AR@
+AR = ar
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
@@ -167,11 +167,11 @@ AWK = @AWK@
BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
-CC = @CC@
+CC = cc
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
-CPP = @CPP@
+CPP = cpp
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DATADIRNAME = @DATADIRNAME@

View File

@ -1,9 +1,9 @@
# Template file for 'mutt'
pkgname=mutt
version=1.5.23
revision=11
revision=12
build_style=gnu-configure
configure_args="--enable-pop --enable-imap --enable-smtp
configure_args="--enable-pop --enable-imap --enable-smtp --enable-hcache
--enable-gpgme --with-regex --with-idn --with-ssl --with-sasl
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
--with-gdbm=${XBPS_CROSS_BASE}/usr mutt_cv_regex_broken=no"
@ -24,11 +24,6 @@ build_options="trash sidebar"
desc_option_trash="apply trash folder patch"
desc_option_sidebar="apply sidebar patch"
# Disable hcache for cross builds
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --enable-hcache"
fi
pre_configure() {
if [ "$build_option_trash" ]; then
patch -sNp1 -i ${FILESDIR}/trashfolder-1.5.22.diff0
@ -41,14 +36,14 @@ pre_configure() {
fi
autoreconf -fi
# apply cross.patch after autoreconf
patch -sNp0 -i ${FILESDIR}/cross.patch
}
pre_build() {
find -name Makefile -exec sed \
-e 's,-I/usr/include,,g' \
-e 's,${prefix}/include,,g' -i {} \;
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS= mutt_md5
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" CPPFLAGS= -C doc
}
post_install() {