mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
libpqtypes is a libpq extension that offers a new way of handling parameterized
queries and getting result field values. Both putting parameters and getting values use a printf/scanf style interface, with consistent specifiers for both. WWW: http://libpqtypes.esilo.com/ PR: 196767 Submitted by: Dave Green <dg@fastmail.co.uk>
This commit is contained in:
parent
ee0a764829
commit
4d918154d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=381291
@ -147,6 +147,7 @@
|
||||
SUBDIR += libmongo-client
|
||||
SUBDIR += libodbc++
|
||||
SUBDIR += libpbl
|
||||
SUBDIR += libpqtypes
|
||||
SUBDIR += libsdb
|
||||
SUBDIR += libzdb
|
||||
SUBDIR += linux-c6-sqlite3
|
||||
|
21
databases/libpqtypes/Makefile
Normal file
21
databases/libpqtypes/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# Created by: Dave Green <dg@fastmail.co.uk>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libpqtypes
|
||||
PORTVERSION= 1.5.1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://pgfoundry.org/frs/download.php/3484/
|
||||
|
||||
MAINTAINER= dg@fastmail.co.uk
|
||||
COMMENT= Extension to libpq parameter handling
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
USES= gmake libtool pgsql autoreconf
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
INSTALL_TARGET= install-strip
|
||||
|
||||
.include <bsd.port.mk>
|
2
databases/libpqtypes/distinfo
Normal file
2
databases/libpqtypes/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libpqtypes-1.5.1.tar.gz) = 8376d5b5ecd77453f8896d59a9bb96ecb6ac7ef9672c3ce9167740b6baf7ecfe
|
||||
SIZE (libpqtypes-1.5.1.tar.gz) = 411341
|
9
databases/libpqtypes/files/patch-Makefile.am
Normal file
9
databases/libpqtypes/files/patch-Makefile.am
Normal file
@ -0,0 +1,9 @@
|
||||
--- Makefile.am.orig 2015-01-04 17:27:39.467515754 +0000
|
||||
+++ Makefile.am 2015-01-04 17:28:01.265514225 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
AM_LDFLAGS =
|
||||
-AUTOMAKE_OPTIONS = foreign
|
||||
+AUTOMAKE_OPTIONS = foreign subdir-objects
|
||||
@SET_MAKE@
|
||||
|
||||
srcfiles = src/array.c src/datetime.c src/error.c \
|
41
databases/libpqtypes/files/patch-configure.ac
Normal file
41
databases/libpqtypes/files/patch-configure.ac
Normal file
@ -0,0 +1,41 @@
|
||||
--- configure.ac.orig 2013-06-27 19:30:46.000000000 +0100
|
||||
+++ configure.ac 2015-01-04 17:19:48.036548382 +0000
|
||||
@@ -5,7 +5,7 @@
|
||||
AC_INIT(libpqtypes, 1.5.1, libpqtypes@esilo.com)
|
||||
AC_CANONICAL_TARGET
|
||||
AC_PROG_MAKE_SET
|
||||
-SET_MAKE="MAKE=make --no-print-directory"
|
||||
+SET_MAKE="MAKE=gmake --no-print-directory"
|
||||
AC_CONFIG_AUX_DIR([.])
|
||||
AM_INIT_AUTOMAKE(libpqtypes,1.5.1)
|
||||
AC_SUBST([LIBPQTYPES_SO_VERSION], [1:5:1])
|
||||
@@ -18,16 +18,15 @@
|
||||
AC_PROG_CC
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -Isrc"
|
||||
-if test "$CC" = "gcc" ; then
|
||||
# always want reentrant funcs, not just thread-safe mode. -s
|
||||
- CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char"
|
||||
+ CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char -I/usr/local/include"
|
||||
|
||||
# gcc doesn't indicate an error for unknown options when they are
|
||||
# not warning/feature options, -Wxxx or -fxxx. We have to test manually.
|
||||
cprog="int main(void){return 0;}"
|
||||
- gcctest="gcc -x c -c - -o /dev/null"
|
||||
+ gcctest="$CC -x c -c - -o /dev/null"
|
||||
|
||||
- AC_MSG_CHECKING(CFLAGS for gcc -std=gnu99...)
|
||||
+ AC_MSG_CHECKING(CFLAGS for $CC -std=gnu99...)
|
||||
result=`echo "$cprog" | $gcctest -std=gnu99 2>&1`
|
||||
if test -z "$result" ; then
|
||||
CFLAGS="$CFLAGS -std=gnu99"
|
||||
@@ -51,9 +50,6 @@
|
||||
AX_CFLAGS_GCC_OPTION([-fno-strict-aliasing])
|
||||
AX_CFLAGS_GCC_OPTION([-funroll-all-loops])
|
||||
AX_CFLAGS_GCC_OPTION([-funit-at-a-time])
|
||||
-else
|
||||
- AC_MSG_ERROR([Using $CC instead of gcc, currently not supported])
|
||||
-fi
|
||||
|
||||
# Each case has an example of what target_os contains
|
||||
case ${target_os} in
|
5
databases/libpqtypes/pkg-descr
Normal file
5
databases/libpqtypes/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
libpqtypes is a libpq extension that offers a new way of handling parameterized
|
||||
queries and getting result field values. Both putting parameters and getting
|
||||
values use a printf/scanf style interface, with consistent specifiers for both.
|
||||
|
||||
WWW: http://libpqtypes.esilo.com/
|
37
databases/libpqtypes/pkg-plist
Normal file
37
databases/libpqtypes/pkg-plist
Normal file
@ -0,0 +1,37 @@
|
||||
include/libpqtypes.h
|
||||
lib/libpqtypes.so
|
||||
lib/libpqtypes.so.0
|
||||
lib/libpqtypes.so.0.1.5
|
||||
man/man3/PQclearSpecs.3.gz
|
||||
man/man3/PQclearTypes.3.gz
|
||||
man/man3/PQexecf.3.gz
|
||||
man/man3/PQexecvf.3.gz
|
||||
man/man3/PQgetErrorField.3.gz
|
||||
man/man3/PQgeterror.3.gz
|
||||
man/man3/PQgetf.3.gz
|
||||
man/man3/PQgetvf.3.gz
|
||||
man/man3/PQinitTypes.3.gz
|
||||
man/man3/PQlocalTZInfo.3.gz
|
||||
man/man3/PQparamClear.3.gz
|
||||
man/man3/PQparamCount.3.gz
|
||||
man/man3/PQparamCreate.3.gz
|
||||
man/man3/PQparamExec.3.gz
|
||||
man/man3/PQparamExecPrepared.3.gz
|
||||
man/man3/PQparamReset.3.gz
|
||||
man/man3/PQparamSendQuery.3.gz
|
||||
man/man3/PQparamSendQueryPrepared.3.gz
|
||||
man/man3/PQputf.3.gz
|
||||
man/man3/PQputvf.3.gz
|
||||
man/man3/PQregisterComposites.3.gz
|
||||
man/man3/PQregisterResult.3.gz
|
||||
man/man3/PQregisterSubClasses.3.gz
|
||||
man/man3/PQregisterTypes.3.gz
|
||||
man/man3/PQregisterUserDefinedTypes.3.gz
|
||||
man/man3/PQsendf.3.gz
|
||||
man/man3/PQsendvf.3.gz
|
||||
man/man3/PQseterror.3.gz
|
||||
man/man3/PQspecPrepare.3.gz
|
||||
man/man3/PQtypesRegister.3.gz
|
||||
man/man3/pqt-composites.3.gz
|
||||
man/man3/pqt-handlers.3.gz
|
||||
man/man3/pqt-specs.3.gz
|
Loading…
Reference in New Issue
Block a user