[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] xlslib - mk and patch files
From: |
Volker Grabsch |
Subject: |
Re: [Mingw-cross-env-list] xlslib - mk and patch files |
Date: |
Sat, 19 May 2012 14:47:46 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Alexandre schrieb:
> I've recently had to cross-compile xlslib (
> http://sourceforge.net/projects/xlslib/) for my project, so here are the
> xlslib.mk and patch files I created.
Thanks for your contribution!
Would you mind proposing it as a pull request on GitHub?
(Sorry, our documentation still has to be adjusted to
reflect our preference of pull requests over mailing
list postings.)
> The patch comments one pragma_pack check in the configure.ac file, cause
> the configure script constantly fails at this stage.
Since the patch is more a "hack" and will not be proposed
to upstream, you should remove its line "This patch has been
taken from: ...".
Regards,
Volker
> With this option disabled there're no checks performed and the script
> assumes we've got #pragma and whatever it provides.
>
> Tested on fedora installation of mingw-cross-env.
>
> *xlslib.mk*
> =================================================================
> # This file is part of mingw-cross-env.
> # See doc/index.html for further information.
>
> # xlslib
> PKG := xlslib
> $(PKG)_IGNORE :=
> $(PKG)_VERSION := 2.3.4
> $(PKG)_CHECKSUM := 5f06a4195239753083594fb83cf0178d12545f15
> $(PKG)_SUBDIR := xlslib
> $(PKG)_FILE := xlslib-$($(PKG)_VERSION).zip
> $(PKG)_WEBSITE := http://xlslib.sourceforge.net/
> $(PKG)_URL := http://
> $(SOURCEFORGE_MIRROR)/projects/xlslib/files/$($(PKG)_FILE)
> $(PKG)_DEPS := gcc
>
> define $(PKG)_UPDATE
> wget -q -O- 'http://sourceforge.net/projects/xlslib/files/' | \
> $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
> head -1
> endef
>
> define $(PKG)_BUILD
> cd '$(1)' && ./configure \
> --host='$(TARGET)' \
> --target='$(TARGET)' \
> --build='$(OSTYPE)' \
> --enable-static \
> --disable-shared \
> --prefix='$(PREFIX)/$(TARGET)'
> $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS=
> noinst_PROGRAMS=
> endef
> =================================================================
> *
> *
> *
> *
> *xlslib-1-disable_pragma.patch*
> =================================================================
> This file is part of mingw-cross-env.
> See doc/index.html for further information.
>
> This patch has been taken from:
>
> --- a/configure.ac 2012-05-18 21:45:06.240019317 +0400
> +++ b/configure.ac 2012-05-18 21:45:30.380150000 +0400
> @@ -65,7 +65,7 @@
> AC_C_STRINGIZE
> AX_C_PREDEF___FUNCTION__
>
> -AX_CC_PRAGMA_PACK
> +#AX_CC_PRAGMA_PACK
>
>
> # Checks for library functions.
> =================================================================
--
Volker Grabsch
---<<(())>>---