Allow building (packaging, rather) against Tcl-8.6 as well.
This commit is contained in:
parent
b878799e99
commit
2af75d3fe7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372699
2 changed files with 17 additions and 9 deletions
|
@ -16,7 +16,7 @@ MAKE_JOBS_UNSAFE= yes
|
|||
|
||||
TCL_DVER= ${TCL_VER:S/.//}
|
||||
|
||||
USES= gmake tcl:84,85
|
||||
USES= gmake tcl:84,85,86
|
||||
USE_AUTOTOOLS= autoconf
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/unix
|
||||
CONFIGURE_ARGS+=--with-tclinclude=${TCL_INCLUDEDIR} \
|
||||
|
@ -26,6 +26,7 @@ SUB_FILES= httpd.conf pkgIndex.tcl pkg-message
|
|||
SUB_LIST+= TCL_DVER=${TCL_DVER} WS_VER=${PORTVERSION}
|
||||
SUB_LIST+= APACHEETCDIR=${APACHEETCDIR} APACHEMODDIR=${APACHEMODDIR}
|
||||
PLIST_SUB+= TCL_DVER=${TCL_DVER}
|
||||
PLIST_SUB+= NOMINORVERSION=${TCL_VER:C/8.[345]//:C/^..*/"@comment "/}
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
@ -70,12 +71,19 @@ do-install:
|
|||
${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}
|
||||
${INSTALL_LIB} ${WRKSRC}/mod_websh${PORTVERSION}.so \
|
||||
${STAGEDIR}${PREFIX}/${APACHEMODDIR}/mod_websh.so
|
||||
${INSTALL_LIB} ${WRKSRC}/libwebsh${TCL_DVER}.so.1.0 \
|
||||
${STAGEDIR}${PREFIX}/lib
|
||||
${LN} -sf libwebsh${TCL_DVER}.so.1.0 \
|
||||
${STAGEDIR}${PREFIX}/lib/libwebsh${TCL_DVER}.so.1
|
||||
${LN} -sf libwebsh${TCL_DVER}.so.1 \
|
||||
${STAGEDIR}${PREFIX}/lib/libwebsh${TCL_DVER}.so
|
||||
if [ -f ${WRKSRC}/libwebsh${TCL_DVER}.so.1.0 ]; then \
|
||||
${INSTALL_LIB} ${WRKSRC}/libwebsh${TCL_DVER}.so.1.0 \
|
||||
${STAGEDIR}${PREFIX}/lib; \
|
||||
${LN} -sf libwebsh${TCL_DVER}.so.1.0 \
|
||||
${STAGEDIR}${PREFIX}/lib/libwebsh${TCL_DVER}.so.1; \
|
||||
${LN} -sf libwebsh${TCL_DVER}.so.1.0 \
|
||||
${STAGEDIR}${PREFIX}/lib/libwebsh${TCL_DVER}.so; \
|
||||
else \
|
||||
${INSTALL_LIB} ${WRKSRC}/libwebsh${TCL_DVER}.so.1 \
|
||||
${STAGEDIR}${PREFIX}/lib; \
|
||||
${LN} -sf libwebsh${TCL_DVER}.so.1 \
|
||||
${STAGEDIR}${PREFIX}/lib/libwebsh${TCL_DVER}.so; \
|
||||
fi
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC:H:H}/doc/mod_websh/htdocs/*.ws3 \
|
||||
${WRKSRC:H:H}/doc/mod_websh/htdocs/*.whtml \
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
lib/libwebsh%%TCL_DVER%%.so.1.0
|
||||
%%NOMINORVERSION%%lib/libwebsh%%TCL_DVER%%.so.1.0
|
||||
lib/libwebsh%%TCL_DVER%%.so.1
|
||||
lib/libwebsh%%TCL_DVER%%.so
|
||||
lib/websh/pkgIndex.tcl
|
||||
lib/websh/htmlhandler.ws3
|
||||
lib/websh/otherhandler.ws3
|
||||
@dirrm lib/websh/
|
||||
@dirrm lib/websh
|
||||
etc/websh.conf.dist
|
||||
%%APACHEMODDIR%%/mod_websh.so
|
||||
@exec %D/sbin/apxs -e -A -n websh %D/%F
|
||||
|
|
Loading…
Reference in a new issue