1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# $NetBSD: Makefile.common,v 1.3 2000/05/24 09:11:24 rh Exp $
DISTNAME= postgresql-${PG_VERS}
PG_VERS= 7.0
WRKSRC= ${WRKDIR}/${DISTNAME}/src
CATEGORIES= databases
MASTER_SITES= ftp://ftp.PostgreSQL.org/pub/v7.0/ \
ftp://ftp.de.postgresql.org/v7.0/ \
ftp://ch.postgresql.org/mirror/postgresql/pub/v7.0/ \
ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/v7.0/ \
ftp://looking-glass.usask.ca/pub/postgresql/v7.0/ \
ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/pub/v7.0/ \
ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/v7.0/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.PostgreSQL.ORG/
BUILD_DEPENDS+= ${LOCALBASE}/bin/autoreconf:../../devel/autoconf
USE_GMAKE= # defined
GNU_CONFIGURE= # defined
FILESDIR= ${.CURDIR}/../../databases/postgresql/files
PATCHDIR= ${.CURDIR}/../../databases/postgresql/patches
.include "../../mk/bsd.prefs.mk"
CONFIGURE_ARGS+= --with-template="${LOWER_OPSYS}" \
--enable-locale
# PG_MB_ENCODING may be set to any of:
#
# SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL,
# LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, KOI8, WIN, ALT
#
# This variable controls the language encoding on the backend process.
.if defined(PG_MB_ENCODING)
CONFIGURE_ARGS+= --enable-multibyte=${PG_MB_ENCODING}
.else
CONFIGURE_ARGS+= --enable-multibyte # accept default
.endif
post-extract:
${CP} ${FILESDIR}/Makefile.custom ${WRKSRC}
pre-configure:
cd ${WRKSRC}; ${LOCALBASE}/bin/autoreconf
.include "../../mk/bsd.pkg.mk"
|