Index: head/databases/Makefile =================================================================== --- head/databases/Makefile +++ head/databases/Makefile @@ -152,6 +152,7 @@ SUBDIR += libmemcache SUBDIR += libmemcached SUBDIR += libmongo-client + SUBDIR += libmswstr SUBDIR += libnvpair SUBDIR += libodbc++ SUBDIR += libpbl Index: head/databases/libmswstr/Makefile =================================================================== --- head/databases/libmswstr/Makefile +++ head/databases/libmswstr/Makefile @@ -0,0 +1,22 @@ +# Created by: Rainer Hurling +# $FreeBSD$ + +PORTNAME= libmswstr +PORTVERSION= 0.0.1 +CATEGORIES= databases + +MAINTAINER= rhurlin@FreeBSD.org +COMMENT= Read and parse mdb file indices + +# https://github.com/leecher1337/libmswstr/blob/master/COPYING +#DISABLE_LICENSES= yes +USES= autoreconf dos2unix libtool +DOS2UNIX_FILES= mswstr.c nls.h nlstables.h +DOS2UNIX_WRKSRC= ${WRKSRC}/src +USE_GITHUB= yes +GH_ACCOUNT= leecher1337 +GH_TAGNAME= 5682d51 +USE_LDCONFIG= yes +GNU_CONFIGURE= yes + +.include Index: head/databases/libmswstr/distinfo =================================================================== --- head/databases/libmswstr/distinfo +++ head/databases/libmswstr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1593859309 +SHA256 (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 3113412e52023f4d9e51e6ccb9c24f129939e194ebefb4573b269f96de469fa1 +SIZE (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 249155 Index: head/databases/libmswstr/files/patch-src_mswstr.c =================================================================== --- head/databases/libmswstr/files/patch-src_mswstr.c +++ head/databases/libmswstr/files/patch-src_mswstr.c @@ -0,0 +1,11 @@ +--- src/mswstr.c.orig 2021-01-08 09:11:21 UTC ++++ src/mswstr.c +@@ -8,7 +8,7 @@ + + #include + #include +-#include ++#include + #include + + #include "nls.h" Index: head/databases/libmswstr/pkg-descr =================================================================== --- head/databases/libmswstr/pkg-descr +++ head/databases/libmswstr/pkg-descr @@ -0,0 +1,14 @@ +When using Microsoft Jet 4 Databases, index fields are created using +the DBLCMapStringW function (check MSDN library for documentation of +this function). +Jet 4 driver itself loads this function from mswstr.dll on Microsoft +Windows. The library contains static translation tables (as opposed to +LCMapStringW API) in order to have consistent translations across all +Windows Versions. + +Libraries that try to read and parse mdb file indices like +databases/mdbtools should work on every platform and therefore a +platform independent version of this library is needed. This is an +attempt to port the library to Posix-systems. + +WWW: https://github.com/leecher1337/libmswstr Index: head/databases/libmswstr/pkg-plist =================================================================== --- head/databases/libmswstr/pkg-plist +++ head/databases/libmswstr/pkg-plist @@ -0,0 +1,7 @@ +include/mswstr/mswstr.h +include/mswstr/winnls.h +include/mswstr/wintypes.h +lib/libmswstr.a +lib/libmswstr.so +lib/libmswstr.so.0 +lib/libmswstr.so.0.0.1