mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] xlslib - mk and patch files


From: Alexandre
Subject: [Mingw-cross-env-list] xlslib - mk and patch files
Date: Fri, 18 May 2012 23:24:49 +0400

Hello, all!
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.
The patch comments one pragma_pack check in the configure.ac file, cause the configure script constantly fails at this stage.
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.
 =================================================================

reply via email to

[Prev in Thread] Current Thread [Next in Thread]