summaryrefslogtreecommitdiff
path: root/databases/postgresql73-lib/Makefile
blob: 15350f5254352bfac89fb48adcc917174678ce5f (plain)
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
# $NetBSD: Makefile,v 1.14 2005/12/05 23:55:04 rillig Exp $

PKGNAME=		postgresql73-lib-${BASE_VERS}
PKGREVISION=		1
SVR4_PKGNAME=		pstgl
COMMENT=		PostgreSQL database headers and libraries

PKG_INSTALLATION_TYPES=	overwrite pkgviews

.include "../../databases/postgresql73/Makefile.common"

CONFIGURE_ARGS+=	--with-openssl=${SSLBASE:Q}
BUILD_DIRS=		${WRKSRC}/src/include
BUILD_DIRS+=		${WRKSRC}/src/interfaces
BUILD_DIRS+=		${WRKSRC}/src/pl
USE_TOOLS+=		gtar

USE_PKGINSTALL=		yes
DEINSTALL_EXTRA_TMPL=	${.CURDIR}/INSTALL
INSTALL_EXTRA_TMPL=	${.CURDIR}/INSTALL

INSTALLATION_DIRS=	man

.if ${OPSYS} == "FreeBSD"
PLIST_SUBST+=		LIBECPG="@comment "
PLIST_SUBST+=		LIBPQ="@comment "
.else
PLIST_SUBST+=		LIBECPG=
PLIST_SUBST+=		LIBPQ=
.endif

post-wrapper:
#
# Avoid conflict between "${LOCALBASE}/include/openssl/des.h" and
# "/usr/include/crypt.h" -- we want the definitions in the former.
#
.if (${OPSYS} == "SunOS")
	${TOUCH} ${BUILDLINK_DIR}/include/crypt.h
.endif

post-install:
	cd ${WRKSRC}/src/include && ${SETENV} ${MAKE_ENV}		\
		${MAKE_PROGRAM} install-all-headers
	${GTAR} zxCf ${PREFIX}/man ${WRKSRC}/doc/man.tar.gz             \
		`${SED} -e "s|^#.*||" ${FILESDIR}/man.lib`

.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"