|
From: | Alexandre |
Subject: | Re: [Mingw-cross-env-list] xlslib - mk and patch files |
Date: | Sat, 19 May 2012 22:11:23 +0400 |
Alexandre schrieb:
> I've recently had to cross-compile xlslib (Thanks for your contribution!
> http://sourceforge.net/projects/xlslib/) for my project, so here are the
> xlslib.mk and patch files I created.
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.)
Since the patch is more a "hack" and will not be proposed
> The patch comments one pragma_pack check in the configure.ac file, cause
> the configure script constantly fails at this stage.
to upstream, you should remove its line "This patch has been
taken from: ...".
Regards,
Volker
> *xlslib.mk*
> 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.
>
> *> =================================================================
> # 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
---<<(())>>---
[Prev in Thread] | Current Thread | [Next in Thread] |