View | Details | Raw Unified | Return to bug 168534
Collapse All | Expand All

(-)Makefile (-19 / +14 lines)
Lines 18-25 COMMENT= FreeBSD ports/packages administration and management tool suite Link Here
18
18
19
LICENSE=	BSD
19
LICENSE=	BSD
20
20
21
OPTIONS=	BDB4 "Use Berkeley DB >=2 as backend" on \
21
OPTIONS_DEFINE=	DB_OVERRIDE
22
		BDB1 "Use Berkeley DB 1.85 as backend" off
22
OPTIONS_SINGLE= DB_OVERRIDE
23
OPTIONS_SINGLE_DB_OVERRIDE=	BDB4 BDB1
24
OPTIONS_DEFAULT=	DB_OVERRIDE BDB4
25
DB_OVERRIDE_DESC=	Override DB backend instead of default DBM
26
BDB1_DESC=	Use Berkeley DB 1
27
BDB4_DESC=	Use Berkeley DB >=2
23
28
24
CONFLICTS_INSTALL=	portupgrade-devel-*
29
CONFLICTS_INSTALL=	portupgrade-devel-*
25
30
Lines 50-67 MANCOMPRESSED= maybe Link Here
50
EXAMPLESDIR=	${PREFIX}/share/examples/pkgtools
55
EXAMPLESDIR=	${PREFIX}/share/examples/pkgtools
51
DOCSDIR=	${PREFIX}/share/doc/pkgtools
56
DOCSDIR=	${PREFIX}/share/doc/pkgtools
52
57
58
.include <bsd.port.pre.mk>
59
53
INSTALL_TARGET=		install
60
INSTALL_TARGET=		install
54
.if !defined(NOPORTDOCS)
61
.if ${PORT_OPTIONS:MDOCS}
55
INSTALL_TARGET+=	install-doc
62
INSTALL_TARGET+=	install-doc
56
.endif
63
.endif
57
64
58
.include <bsd.port.pre.mk>
65
.if ${PORT_OPTIONS:MBDB4}
59
60
.if defined(WITH_BDB4)
61
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
66
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
62
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
67
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
63
.endif
68
.elif ${PORT_OPTIONS:MBDB1}
64
.if defined(WITH_BDB1) && !defined(WITH_BDB4)
65
# For PKG_DBDRIVER={bdb1_btree,bdb1_hash}
69
# For PKG_DBDRIVER={bdb1_btree,bdb1_hash}
66
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
70
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
67
.endif
71
.endif
Lines 72-89 RUN_DEPENDS+= ${RUBY_SITELIBDIR}/parsedate.rb:${PORTSDIR}/devel/ruby-date2 Link Here
72
.endif
76
.endif
73
77
74
pre-extract:
78
pre-extract:
75
.if !defined(WITH_BDB4) && !defined(WITH_BDB1)
79
.if exists(${RUBY_SITEARCHLIBDIR}/bdb.so) && ${PORT_OPTIONS:MBDB1}
76
	@${ECHO_MSG} "================================================================="
77
	@${ECHO_MSG} "Neither WITH_BDB4 nor WITH_BDB1 are defined. Will use DBD driver."
78
	@${ECHO_MSG} "================================================================="
79
.endif
80
.if defined(WITH_BDB4) && defined(WITH_BDB1)
81
	@${ECHO_MSG} "================================================================="
82
	@${ECHO_MSG} "Both WITH_BDB4 and WITH_BDB1 are defined. Will use BDB4 driver."
83
	@${ECHO_MSG} "================================================================="
84
.elif defined(WITH_BDB1) && exists(${RUBY_SITEARCHLIBDIR}/bdb.so)
85
	@${ECHO_MSG} "================================================================="
80
	@${ECHO_MSG} "================================================================="
86
	@${ECHO_MSG} "WITH_BDB1 is defined but ruby-bdb port installed."
81
	@${ECHO_MSG} "BDB1 is defined but databases/ruby-bdb port installed."
87
	@${ECHO_MSG} "Remove ruby-bdb or redefine options."
82
	@${ECHO_MSG} "Remove ruby-bdb or redefine options."
88
	@${ECHO_MSG} "================================================================="
83
	@${ECHO_MSG} "================================================================="
89
	@exit 1
84
	@exit 1

Return to bug 168534