aboutsummaryrefslogtreecommitdiff
path: root/databases/db2/Makefile
blob: efa6e057d3d55247b4357eeeaa56f251c08c1209 (plain) (blame)
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
# ports collection makefile for:	Berkeley DB
# Date created:				26 Jan 1998
# Whom:					Josh Tiefenbach <josh@ican.net>
#
# $FreeBSD$
#

PORTNAME=	db2
PORTVERSION=	2.7.7
PORTREVISION=	1
CATEGORIES=	databases
#MASTER_SITES=	http://www.sleepycat.com/update/snapshot/
MASTER_SITES=	ftp://sleepycat1.inetu.net/releases/
DISTNAME=	db-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The Berkeley DB package, revision 2

WRKSRC=		${WRKDIR}/${DISTNAME}/build_unix

INSTALLS_SHLIB=		yes
GNU_CONFIGURE=		yes
CONFIGURE_SCRIPT=	../dist/configure
CONFIGURE_ARGS=		--enable-compat185 \
			--enable-dump185 --enable-cxx

.if !defined(NOPORTDOCS)
PORTDOCS=	*
INSTALL_TARGET=	install install_docs
.endif

post-install:
	@-${RM} -fr ${PREFIX}/share/examples/db2
	${MKDIR} ${PREFIX}/share/examples/db2
	cd ${WRKSRC}/..; \
	    ${TAR} -cf - --exclude tags examples/ examples_cxx/ examples_java/. \
		| ( cd ${PREFIX}/share/examples/db2; ${TAR} xf - )
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Java support for ${PKGNAME} is *not* built by default, and requires that you"
	@${ECHO_MSG} "have a working copy of the JDK (v1.1) installed."
	@${ECHO_MSG} ""
	@${ECHO_MSG} "To build java support, please read:"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "${WRKDIR}/${DISTNAME}/java/README"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "and follow the directions therein."

.include <bsd.port.mk>