new packages: libgda, libgdamm, mdbtools

This commit is contained in:
Ryan Laboucane 2012-05-02 21:53:10 +10:00 committed by Tony Theodore
parent 225212c5e1
commit 380392bcd5
4 changed files with 111 additions and 0 deletions

37
src/libgda.mk Normal file
View File

@ -0,0 +1,37 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# LibGDA
PKG := libgda
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.2.8
$(PKG)_CHECKSUM := 01b859233407407807b2da1c4c244a5907695b7b
$(PKG)_SUBDIR := libgda-$($(PKG)_VERSION)
$(PKG)_FILE := libgda-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.gnome-db.org/
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libgda/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc glib libxml2 postgresql
define $(PKG)_UPDATE
wget -q -O- 'http://git.gnome.org/browse/libgda/refs/tags' | \
$(SED) -n "s,.*tag/?id=\([0-9]\+\.[0-9]*[02468]\.[^']*\).*,\1,p" | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--disable-gtk-doc \
--without-bdb \
--with-mdb \
--without-oracle \
--without-mysql \
--without-firebird \
--without-java \
--enable-binreloc \
--disable-crypto
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

34
src/libgdamm.mk Normal file
View File

@ -0,0 +1,34 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# libgdamm
PKG := libgdamm
$(PKG)_IGNORE :=
$(PKG)_VERSION := 4.1.2
$(PKG)_CHECKSUM := 9090858b30d38af4f476092d11de09a10e85d6b9
$(PKG)_SUBDIR := libgdamm-$($(PKG)_VERSION)
$(PKG)_FILE := libgdamm-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := https://launchpad.net/libgdamm
$(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/libgdamm/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc libgda glibmm
define $(PKG)_UPDATE
wget -q -O- 'http://git.gnome.org/browse/libgdamm/refs/tags' | \
grep '<a href=' | \
$(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\)<.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
# cross build
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
CXX='$(TARGET)-c++' \
PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
MAKE=$(MAKE)
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
endef

View File

@ -0,0 +1,12 @@
diff -ur mdbtools-0.6pre1-orig//include/mdbtools.h mdbtools-0.6pre1//include/mdbtools.h
--- mdbtools-0.6pre1-orig//include/mdbtools.h 2011-06-01 00:07:12.336088034 +0900
+++ mdbtools-0.6pre1//include/mdbtools.h 2011-06-01 00:10:51.536088143 +0900
@@ -147,7 +147,7 @@
#define IS_JET3(mdb) (mdb->f->jet_version==MDB_VER_JET3)
/* hash to store registered backends */
-extern GHashTable *mdb_backends;
+static GHashTable *mdb_backends;
/* forward declarations */
typedef struct mdbindex MdbIndex;

28
src/mdbtools.mk Normal file
View File

@ -0,0 +1,28 @@
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# mdbtools
PKG := mdbtools
$(PKG)_IGNORE :=
$(PKG)_VERSION := 0.6pre1
$(PKG)_CHECKSUM := 37a50d623a444ec690d2677b12b59c2f11e497c0
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_WEBSITE := http://sourceforge.net/projects/$(PKG)/
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://sourceforge.net/projects/mdbtools/files/mdbtools/' | \
$(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
PKG_CONFIG='$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= html_DATA=
endef