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

(-)Makefile (-34 / +19 lines)
Lines 29-72 Link Here
29
29
30
EXTRACT_AFTER_ARGS=	| ${TAR} -xf - --exclude CVS
30
EXTRACT_AFTER_ARGS=	| ${TAR} -xf - --exclude CVS
31
31
32
OPTIONS=	TCL84	"Enable TCL wrapper (tcl 8.4)"	off \
32
OPTIONS=	TCL	"Enable TCL wrapper"	off \
33
		TCL83	"Enable TCL wrapper (tcl 8.3)"	off \
34
		THREADS	"Compile with threads support"	off \
33
		THREADS	"Compile with threads support"	off \
35
		DOCS	"Building docs (depends on TCL)"	on
34
		DOCS	"Building docs (depends on TCL)"	on
36
35
37
# Defaults, for building the docs:
38
TCL_VERSION=	8.4
39
40
.include <bsd.port.pre.mk>
36
.include <bsd.port.pre.mk>
41
37
42
# Deprecated options
38
# Deprecated options
43
.if defined(SQLITE_WITH_TCL83)
39
.if defined(SQLITE_WITH_TCL83) || defined(WITH_TCL83)
44
WITH_TCL83=	yes
40
WITH_TCL_VER=	83
45
.endif
41
WITH_TCL=	yes
46
.if defined(SQLITE_WITH_TCL84)
42
.endif
47
WITH_TCL84=	yes
43
.if defined(SQLITE_WITH_TCL84) || defined(WITH_TCL84)
48
.endif
44
WITH_TCL_VER=	84
49
45
WITH_TCL=	yes
50
.if defined(WITH_TCL83)
51
.if defined(WITH_TCL84)
52
BROKEN=		please, select only one TCL wrapper
53
.endif
54
CATEGORIES+=	tcl
55
TCL_VERSION=	8.3
56
WITH_TCL=	YES
57
.endif
58
59
.if defined(WITH_TCL84)
60
.if defined(WITH_TCL83)
61
BROKEN=		please, select only one TCL wrapper
62
.endif
63
CATEGORIES+=	tcl
64
TCL_VERSION=	8.4
65
WITH_TCL=	YES
66
.endif
46
.endif
67
47
68
.if defined(WITH_TCL)
48
.if defined(WITH_TCL)
69
LIB_DEPENDS+=	tcl${TCL_VERSION:S/.//}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//}
49
CATEGORIES+=	tcl
50
USE_TCL=	83+
70
PLIST_SUB+=	WITH_TCL=""
51
PLIST_SUB+=	WITH_TCL=""
71
.else
52
.else
72
PLIST_SUB+=	WITH_TCL="@comment "
53
PLIST_SUB+=	WITH_TCL="@comment "
Lines 74-90 Link Here
74
55
75
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
56
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
76
PORTDOCS=	*
57
PORTDOCS=	*
77
BUILD_DEPENDS+=	tclsh${TCL_VERSION}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//}
58
USE_TCL_BUILD=	83+
78
MAKE_ARGS+=	TCLSH=tclsh${TCL_VERSION}
59
MAKE_ARGS+=	TCLSH=${TCLSH}
79
MAKE_ENV+=	TCL_VER=${TCL_VERSION}
60
MAKE_ENV+=	TCL_VER=${TCL_VER}
61
.endif
62
63
.if defined(WITH_TCL) || defined(WITH_DOCS)
64
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
80
.endif
65
.endif
81
66
82
post-patch:
67
post-patch:
83
	@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
68
	@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
84
		 -e "s|\./libtool|${LIBTOOL}|g" ${WRKSRC}/Makefile.in
69
		 -e "s|\./libtool|${LIBTOOL}|g" ${WRKSRC}/Makefile.in
85
	@${ECHO} "config_TARGET_TCL_INC=\"-I${PREFIX}/include/tcl${TCL_VERSION}\"" \
70
	@${ECHO} "config_TARGET_TCL_INC=\"-I${TCL_INCLUDEDIR}\"" \
86
		> ${WRKSRC}/freebsd.hints
71
		> ${WRKSRC}/freebsd.hints
87
	@${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VERSION:S/.//}\"" \
72
	@${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VER:S/.//}\"" \
88
		>> ${WRKSRC}/freebsd.hints
73
		>> ${WRKSRC}/freebsd.hints
89
.if defined(WITH_THREADS)
74
.if defined(WITH_THREADS)
90
	@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \
75
	@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \

Return to bug 132381