diff options
author | knu <knu@FreeBSD.org> | 2000-06-05 00:47:24 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-06-05 00:47:24 +0800 |
commit | 5db9c5981f07be7afd7c0f41b42611abcab01c4c (patch) | |
tree | 56de3277ca5118952ec2f46074d8d40835cdab85 /databases/postgresql91-server | |
parent | c0c84efabbf9c04d52237029451fd91203598a2c (diff) | |
download | freebsd-ports-gnome-5db9c5981f07be7afd7c0f41b42611abcab01c4c.tar.gz freebsd-ports-gnome-5db9c5981f07be7afd7c0f41b42611abcab01c4c.tar.zst freebsd-ports-gnome-5db9c5981f07be7afd7c0f41b42611abcab01c4c.zip |
Enable multibyte support by default, and add knobs to disable it or set the
default encoding.
Still the "default" default encoding is singlebyte, so this shouldn't hurt
anything but a little code increase.
Approved by: andreas (the maintainer)
Diffstat (limited to 'databases/postgresql91-server')
-rw-r--r-- | databases/postgresql91-server/Makefile | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/databases/postgresql91-server/Makefile b/databases/postgresql91-server/Makefile index 0d4f2a236977..2c799c1b647f 100644 --- a/databases/postgresql91-server/Makefile +++ b/databases/postgresql91-server/Makefile @@ -41,6 +41,23 @@ LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 \ CONFIGURE_TCL= --with-tcl --with-tclconfig="${LOCALBASE}/lib/tcl8.2 ${LOCALBASE}/lib/tk8.2" .endif +# if you want to disable the multibyte support, type: +# make -DWITHOUT_MULTIBYTE +# +# if you want to set the default encoding for the multibyte support, type: +# make DEFAULT_ENCODING=<encoding> +# where <encoding> is one of these: +# SQL_ASCII LATIN1 LATIN2 LATIN3 LATIN4 LATIN5 +# EUC_JP EUC_CN EUC_KR EUC_TW KOI8 +# UNICODE MULE_INTERNAL WIN ALT +.if defined(WITHOUT_MULTIBYTE) +CONFIGURE_MULTIBYTE= # none +.elif defined(DEFAULT_ENCODING) +CONFIGURE_MULTIBYTE= --enable-multibyte="${DEFAULT_ENCODING}" +.else +CONFIGURE_MULTIBYTE= --enable-multibyte +.endif + # if you want jdbc, type make -DWITH_JDBC # Honors JAVA_HOME if you have it set, and don't want the dependency. .if defined(WITH_JDBC) @@ -60,6 +77,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \ --with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \ --with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \ ${CONFIGURE_TCL} \ + ${CONFIGURE_MULTIBYTE} \ --with-libraries=${PREFIX}/lib MAN1= createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \ @@ -88,18 +106,34 @@ MANPREFIX= ${PREFIX}/pgsql pre-fetch: @${ECHO_MSG} "To install and run postgresql you need to compile kernel with:" - @${ECHO_MSG} " options \"SYSVSHM, SYSVSEM, SYSVMSG\"" + @${ECHO_MSG} " options \"SYSVSHM, SYSVSEM, SYSVMSG\"" .if !defined(WITH_TCL) @${ECHO_MSG} "To build the \"PostgreSQL to Tcl interface library\", libpgtcl, type:" @${ECHO_MSG} " make -DWITH_TCL" .else @${ECHO_MSG} "Building PostgreSQL with \"libpgtcl\"." .endif +.if !defined(WITHOUT_MULTIBYTE) + @${ECHO_MSG} "To disable multibyte support, type:" + @${ECHO_MSG} " make -DWITHOUT_MULTIBYTE" +.if !defined(DEFAULT_ENCODING) + @${ECHO_MSG} "To set the default encoding for the multibyte support, type:" + @${ECHO_MSG} " make DEFAULT_ENCODING=<encoding>" + @${ECHO_MSG} "where <encoding> is one of these:" + @${ECHO_MSG} " SQL_ASCII LATIN1 LATIN2 LATIN3 LATIN4 LATIN5" + @${ECHO_MSG} " EUC_JP EUC_CN EUC_KR EUC_TW KOI8" + @${ECHO_MSG} " UNICODE MULE_INTERNAL WIN ALT" +.else + @${ECHO_MSG} "The default encoding is '${DEFAULT_ENCODING}'." +.endif +.else + @${ECHO_MSG} "Building PostgreSQL without multibyte support." +.endif .if !defined(WITH_JDBC) - @ ${ECHO_MSG} "To build Java (JDBC) support, type:" - @ ${ECHO_MSG} " make -DWITH_JDBC" + @${ECHO_MSG} "To build Java (JDBC) support, type:" + @${ECHO_MSG} " make -DWITH_JDBC" .else - @ ${ECHO_MSG} "Building PostgreSQL with \"postgresql.jar\"." + @${ECHO_MSG} "Building PostgreSQL with \"postgresql.jar\"." .endif post-patch: |