forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
826 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- origsrc/db-5.3.21/dist/aclocal_java/ac_jni_include_dirs.m4 2012-05-11 12:57:48.000000000 -0500 | ||
+++ src/db-5.3.21/dist/aclocal_java/ac_jni_include_dirs.m4 2013-03-08 00:21:17.541594900 -0600 | ||
@@ -75,7 +75,6 @@ if test "$_JTOPDIR" != "/usr"; then | ||
case "$host_os" in | ||
aix*) _JNI_INC_SUBDIRS="aix";; | ||
bsdi*) _JNI_INC_SUBDIRS="bsdos";; | ||
- cygwin*) _JNI_INC_SUBDIRS="win32";; | ||
freebsd*) _JNI_INC_SUBDIRS="freebsd";; | ||
hp*) _JNI_INC_SUBDIRS="hp-ux";; | ||
linux*) _JNI_INC_SUBDIRS="linux genunix";; | ||
--- origsrc/db-5.3.21/dist/configure.ac 2012-05-11 12:57:48.000000000 -0500 | ||
+++ src/db-5.3.21/dist/configure.ac 2013-03-08 00:20:48.257920000 -0600 | ||
@@ -435,7 +435,7 @@ if test "$db_cv_java" = "yes" -o "$db_cv | ||
# A classpath that includes . is needed to check for Java | ||
# Since Cygwin uses Windows' javac, we need Windows path separators | ||
case "$host_os" in | ||
- cygwin*) CLASSPATH=".;$CLASSPATH";; | ||
+ mingw*) CLASSPATH=".;$CLASSPATH";; | ||
*) CLASSPATH=".:$CLASSPATH";; | ||
esac | ||
export CLASSPATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- origsrc/db-5.3.21/dist/aclocal/tcl.m4 2012-05-11 12:57:48.000000000 -0500 | ||
+++ src/db-5.3.21/dist/aclocal/tcl.m4 2013-03-08 00:21:33.268494500 -0600 | ||
@@ -107,7 +107,7 @@ AC_DEFUN(SC_LOAD_TCLCONFIG, [ | ||
# given by the Tcl spec are insufficient for our use. [#5779],[#17109] | ||
# | ||
case "$host_os" in | ||
- aix*) | ||
+ aix*|cygwin*) | ||
LIBTSO_LIBS="$LIBTSO_LIBS $TCL_LIB_SPEC $TCL_LIB_FLAG" | ||
LIBTSO_LIBS="$LIBTSO_LIBS -L$TCL_EXEC_PREFIX/lib -ltcl$TCL_VERSION";; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- origsrc/db-5.3.21/dist/aclocal/sql.m4 2012-05-11 12:57:48.000000000 -0500 | ||
+++ src/db-5.3.21/dist/aclocal/sql.m4 2013-03-08 01:47:48.453498100 -0600 | ||
@@ -91,7 +91,7 @@ esac | ||
# !!! END COPIED from autoconf distribution | ||
|
||
sqlite_dir=$srcdir/../lang/sql/sqlite | ||
-(cd sql && eval "\$SHELL ../$sqlite_dir/configure --disable-option-checking $ac_sub_configure_args CPPFLAGS=\"-I.. $CPPFLAGS\" --enable-amalgamation=$db_cv_sql_amalgamation --enable-readline=$with_readline" && cat build_config.h >> config.h) || exit 1 | ||
+(cd sql && eval "\$SHELL $sqlite_dir/configure --disable-option-checking $ac_sub_configure_args CPPFLAGS=\"-I.. $CPPFLAGS\" --enable-amalgamation=$db_cv_sql_amalgamation --enable-readline=$with_readline" && cat build_config.h >> config.h) || exit 1 | ||
|
||
# Configure JDBC if --enable-jdbc | ||
if test "$db_cv_jdbc" != "no"; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Maintainer: Alexey Pavlov <[email protected]> | ||
|
||
pkgname=('db' 'libdb' 'libdb-devel' 'db-docs') | ||
pkgver=5.3.28 | ||
pkgrel=1 | ||
pkgdesc="The Berkeley DB embedded database system" | ||
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html" | ||
license=('custom') | ||
arch=('i686' 'x86_64') | ||
depends=('sh') | ||
source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz | ||
5.3-java.patch | ||
5.3-tcl.patch | ||
5.3-vpath.patch | ||
db-5.3.28-msys2.patch) | ||
options=('!makeflags') | ||
md5sums=('b99454564d5b4479750567031d66fe24' | ||
'78b946e5ce7a942bfb447cdb2298fa84' | ||
'b348d5e357bfc844ed159fc49317963a' | ||
'ffd862de5ec0f41f1c5a4bc0e7f0dd33' | ||
'a3e2a49d1cf66aeea12233d21809ab7d') | ||
|
||
prepare() { | ||
cd "${srcdir}/${pkgname}-${pkgver}" | ||
|
||
patch -Np2 -i ${srcdir}/5.3-java.patch | ||
patch -Np2 -i ${srcdir}/5.3-tcl.patch | ||
patch -Np2 -i ${srcdir}/5.3-vpath.patch | ||
patch -Np1 -i ${srcdir}/db-5.3.28-msys2.patch | ||
|
||
cd dist | ||
ac_macrodir=aclocal libtoolize --copy --force --install | ||
./s_config | ||
} | ||
|
||
build() { | ||
cd "${srcdir}"/$pkgname-${pkgver}/build_unix | ||
../dist/configure \ | ||
--prefix=/usr \ | ||
--enable-compat185 \ | ||
--enable-shared \ | ||
--enable-static \ | ||
--enable-dynamic \ | ||
--enable-cxx \ | ||
--enable-dbm \ | ||
--disable-java \ | ||
--disable-tcl \ | ||
--disable-test | ||
make | ||
make DESTDIR=${srcdir}/dest docdir=/usr/share/doc/db/html emode=755 fmode=644 install | ||
} | ||
|
||
check() { | ||
cd "${srcdir}/${pkgname}-${pkgver}" | ||
make check | ||
} | ||
|
||
package_db() { | ||
depends=(libdb=$pkgver) | ||
groups=('Database') | ||
|
||
mkdir -p ${pkgdir}/usr/{bin,share} | ||
|
||
cp -f ${srcdir}/dest/usr/bin/*.exe ${pkgdir}/usr/bin/ | ||
} | ||
|
||
package_libdb() { | ||
depends=('gcc-libs') | ||
groups=('libraries') | ||
|
||
mkdir -p ${pkgdir}/usr/bin | ||
cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/ | ||
} | ||
|
||
package_libdb-devel() { | ||
pkgdesc="libdb headers and libraries" | ||
options=('staticlibs') | ||
depends=("libdb=${pkgver}") | ||
groups=('development') | ||
|
||
mkdir -p ${pkgdir}/usr | ||
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/ | ||
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/ | ||
|
||
# replace unslotted libs with symlinks | ||
rm -f ${pkgdir}/usr/lib/libdb{_cxx,}.a | ||
cp -f ${pkgdir}/usr/lib/libdb-${pkgver%.*}.a ${pkgdir}/usr/lib/libdb.a | ||
cp -f ${pkgdir}/usr/lib/libdb-${pkgver%.*}.dll.a ${pkgdir}/usr/lib/libdb.dll.a | ||
cp -f ${pkgdir}/usr/lib/libdb_cxx-${pkgver%.*}.a ${pkgdir}/usr/lib/libdb_cxx.a | ||
cp -f ${pkgdir}/usr/lib/libdb_cxx-${pkgver%.*}.dll.a ${pkgdir}/usr/lib/libdb_cxx.dll.a | ||
#cp -f ${pkgdir}/usr/lib/libdb_sql-${pkgver%.*}.a ${pkgdir}/usr/lib/libdb_sql.a | ||
#cp -f ${pkgdir}/usr/lib/libdb_sql-${pkgver%.*}.dll.a ${pkgdir}/usr/lib/libdb_sql.dll.a | ||
} | ||
|
||
package_db-docs() { | ||
pkgdesc="BerkleyDB documentation" | ||
|
||
mkdir -p ${pkgdir}/usr/share | ||
cp -rf ${srcdir}/dest/usr/share/doc ${pkgdir}/usr/share/ | ||
} |
Oops, something went wrong.