gsasl: New package

This commit is contained in:
Alexpux
2014-07-18 14:35:47 +04:00
parent 1a924486db
commit 213ea5cb9c
2 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
diff --git a/gl/msvc-inval.c b/gl/msvc-inval.c
--- a/gl/msvc-inval.c
+++ b/gl/msvc-inval.c
@@ -28,7 +28,7 @@
# if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -45,7 +45,7 @@ gl_msvc_invalid_parameter_handler (const wchar_t *expression,
# if defined _MSC_VER
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -94,7 +94,7 @@ gl_msvc_inval_current (void)
}
}
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
diff --git a/lib/gltests/msvc-inval.c b/lib/gltests/msvc-inval.c
--- a/lib/gltests/msvc-inval.c
+++ b/lib/gltests/msvc-inval.c
@@ -28,7 +28,7 @@
# if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -45,7 +45,7 @@ gl_msvc_invalid_parameter_handler (const wchar_t *expression,
# if defined _MSC_VER
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -94,7 +94,7 @@ gl_msvc_inval_current (void)
}
}
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,

48
mingw-w64-gsasl/PKGBUILD Normal file
View File

@@ -0,0 +1,48 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=gsasl
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.8.0
pkgrel=1
pkgdesc="Simple Authentication and Security Layer framework and a few common SASL mechanisms (mingw-w64)"
arch=('any')
url="http://josefsson.org/gsasl/"
license=("GPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc")
options=('strip' 'staticlibs')
depends=("${MINGW_PACKAGE_PREFIX}-gss"
"${MINGW_PACKAGE_PREFIX}-gnutls"
"${MINGW_PACKAGE_PREFIX}-libidn"
"${MINGW_PACKAGE_PREFIX}-libgcrypt"
"${MINGW_PACKAGE_PREFIX}-libntlm"
"${MINGW_PACKAGE_PREFIX}-readline")
source=("ftp://ftp.gnu.org/gnu/gsasl/${_realname}-${pkgver}.tar.gz"
002-gnulib.patch)
md5sums=('982fe54a20016aa46a871c084c990c36'
'c33f7c93cba138ad1baacc870c1255a2')
prepare() {
cd ${_realname}-${pkgver}
sed -i 's|error too old libgcrypt|/*error too old libgcrypt*/|' lib/configure
patch -p1 -i ${srcdir}/002-gnulib.patch
}
build() {
#mkdir -p build-${MINGW_CHOST}
#cd build-${MINGW_CHOST}
cd ${_realname}-${pkgver}
./configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--enable-shared \
--enable-static \
--disable-kerberos_v5
make -j1
}
package() {
cd ${_realname}-${pkgver}
make DESTDIR="${pkgdir}" install
}