Mercurial > mxe-octave
changeset 1951:d58e1dd10c0a
new package dlfcn-win32
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Fri, 19 Aug 2011 14:09:44 +0200 |
parents | f97ce88183f5 |
children | cbbc5b45f1f8 |
files | src/dlfcn-win32-1-fixes.patch src/dlfcn-win32.mk src/guile.mk |
diffstat | 3 files changed, 56 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/dlfcn-win32-1-fixes.patch Fri Aug 19 14:09:44 2011 +0200 @@ -0,0 +1,23 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +Contains ad hoc patches for cross building. + +From 5c32340c7e89fc36c881de1ee8872df32e2cb91d Mon Sep 17 00:00:00 2001 +From: mingw-cross-env +Date: Wed, 17 Aug 2011 21:58:39 +0200 +Subject: [PATCH] let configure succeed + + +diff --git a/configure b/configure +index 3ae2f88..a16c7eb 100755 +--- a/configure ++++ b/configure +@@ -190,3 +190,4 @@ enabled shared && { + echo "msvc: $msvc"; + echo "strip: $stripping"; + } ++true +-- +1.7.6 +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/dlfcn-win32.mk Fri Aug 19 14:09:44 2011 +0200 @@ -0,0 +1,31 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# dlfcn-win32 +PKG := dlfcn-win32 +$(PKG)_IGNORE := +$(PKG)_VERSION := r19 +$(PKG)_CHECKSUM := a0033e37a547c52059d0bf8664a96ecdeeb66419 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://code.google.com/p/dlfcn-win32/ +$(PKG)_URL := http://$(PKG).googlecode.com/files/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://code.google.com/p/dlfcn-win32/downloads/list?sort=-uploaded' | \ + $(SED) -n 's,.*dlfcn-win32-\(r[0-9][^<]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --prefix='$(PREFIX)/$(TARGET)' \ + --incdir='$(PREFIX)/$(TARGET)/include' \ + --libdir='$(PREFIX)/$(TARGET)/lib' \ + --cross-prefix='$(TARGET)-' \ + --disable-shared \ + --enable-static + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j '$(JOBS)' install +endef
--- a/src/guile.mk Fri Aug 19 13:54:26 2011 +0200 +++ b/src/guile.mk Fri Aug 19 14:09:44 2011 +0200 @@ -10,7 +10,7 @@ $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_WEBSITE := http://www.gnu.org/software/$(PKG)/ $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) -$(PKG)_DEPS := gcc libtool gmp libiconv gettext libunistring gc libffi readline +$(PKG)_DEPS := gcc libtool gmp libiconv gettext libunistring gc libffi readline dlfcn-win32 define $(PKG)_UPDATE wget -q -O- 'http://git.savannah.gnu.org/gitweb/?p=$(PKG).git;a=tags' | \ @@ -30,7 +30,7 @@ --disable-shared \ --without-threads \ scm_cv_struct_timespec=no \ - LIBS='-lunistring -lintl -liconv' \ + LIBS='-lunistring -lintl -liconv -ldl' \ CFLAGS='-Wno-unused-but-set-variable' $(MAKE) -C '$(1)' -j '$(JOBS)' schemelib_DATA= $(MAKE) -C '$(1)' -j 1 install schemelib_DATA=