new package dlfcn-win32

This commit is contained in:
Mark Brand 2011-08-19 14:09:44 +02:00
parent 1b755cf68f
commit 94eb675d3b
3 changed files with 56 additions and 2 deletions

View File

@ -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

31
src/dlfcn-win32.mk Normal file
View File

@ -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

View File

@ -10,7 +10,7 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(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 @@ define $(PKG)_BUILD
--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=