mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 20:28:14 +02:00
Fix build error during autoreconf with gettext 0.24.1. ``` configure:20880: error: possibly undefined macro: AC_LIB_PREPARE_PREFIX If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:20881: error: possibly undefined macro: AC_LIB_RPATH configure:20886: error: possibly undefined macro: AC_LIB_LINKFLAGS_BODY configure:20894: error: possibly undefined macro: AC_LIB_APPENDTOVAR autoreconf: error: /usr/bin/autoconf failed with exit status: 1 ```
89 lines
2.6 KiB
Text
89 lines
2.6 KiB
Text
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
|
|
maintainer="Holger Jaekel <holger.jaekel@gmx.de>"
|
|
pkgname=mdbtools
|
|
pkgver=1.0.1
|
|
pkgrel=1
|
|
pkgdesc="library for reading MS Access database files"
|
|
url="https://github.com/mdbtools/mdbtools"
|
|
arch="all !s390x" # no support for big-endian
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
autoconf
|
|
automake
|
|
bison
|
|
flex
|
|
gawk
|
|
gettext-dev
|
|
gnu-libiconv-dev
|
|
libtool
|
|
unixodbc-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-utils
|
|
$pkgname-odbc
|
|
"
|
|
_testdata=e649f792cb8f966d404e052d1523e93de0192d50
|
|
source="
|
|
https://github.com/mdbtools/mdbtools/releases/download/v$pkgver/mdbtools-$pkgver.tar.gz
|
|
mdbtestdata-$_testdata.tar.gz::https://github.com/mdbtools/mdbtestdata/archive/$_testdata.tar.gz
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
mv "$srcdir"/mdbtestdata-$_testdata "$builddir"/test
|
|
|
|
# gettext m4 macros moved in 0.24.1, include the new path
|
|
autoreconf -i -f -I /usr/share/gettext/m4
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--enable-static=no \
|
|
--with-unixodbc=/usr/include \
|
|
--with-libiconv-prefix=/usr/include
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# taken from https://github.com/mdbtools/mdbtools/blob/master/test_script.sh
|
|
./src/util/mdb-json test/data/ASampleDatabase.accdb "Asset Items"
|
|
./src/util/mdb-json test/data/nwind.mdb "Umsätze"
|
|
./src/util/mdb-count test/data/ASampleDatabase.accdb "Asset Items"
|
|
./src/util/mdb-count test/data/nwind.mdb "Umsätze"
|
|
./src/util/mdb-prop test/data/ASampleDatabase.accdb "Asset Items"
|
|
./src/util/mdb-prop test/data/nwind.mdb "Umsätze"
|
|
./src/util/mdb-schema test/data/ASampleDatabase.accdb
|
|
./src/util/mdb-schema test/data/nwind.mdb
|
|
./src/util/mdb-schema test/data/nwind.mdb -T "Umsätze" postgres
|
|
./src/util/mdb-tables test/data/ASampleDatabase.accdb
|
|
./src/util/mdb-tables test/data/nwind.mdb
|
|
./src/util/mdb-ver test/data/ASampleDatabase.accdb
|
|
./src/util/mdb-ver test/data/nwind.mdb
|
|
./src/util/mdb-queries test/data/ASampleDatabase.accdb qryCostsSummedByOwner
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
utils() {
|
|
pkgdesc="library for reading MS Access database files (command line utilities)"
|
|
amove /usr/bin
|
|
}
|
|
|
|
odbc() {
|
|
pkgdesc="library for reading MS Access database files (ODBC driver for use with unixODBC)"
|
|
amove /usr/lib/odbc/libmdbodbc*
|
|
}
|
|
|
|
sha512sums="
|
|
3f033db4c036f53f800982b5499a64756d3a859d9284ef5202a7062dc7a2d1ef1a657d43b8ea3f76aa999f5adcc4b3799eaaa8b8084adf6f60d55ba9ccc78b72 mdbtools-1.0.1.tar.gz
|
|
e7bee8761ff20e231ccf50fe5b4eb917c774a8c60fab4769f39bac024c5a507537db407ac616930203222e5965e0a7556a87d39555e3c4e2a543f6a49e890aea mdbtestdata-e649f792cb8f966d404e052d1523e93de0192d50.tar.gz
|
|
"
|