freebsd-ports/lang/expect/Makefile
Pietro Cerutti a3a7f9127d lang/expect: register LDCONFIG path
Because expect installs its shared libraries as symlinks
  libexpect.so.1 -> lib/expect5.45.4/libexpect5.45.4.so
programs and libraries linked with -lexpect will fail to locate the final .so
file.

See
https://lists.freebsd.org/pipermail/freebsd-tcltk/2020-February/000677.html

Reported by:	Daniel Morante <daniel@morante.net>
2020-02-05 11:46:34 +00:00

32 lines
758 B
Makefile

# Created by: pst
# $FreeBSD$
PORTNAME= expect
PORTVERSION= 5.45.4
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= lang tcl tk
MASTER_SITES= SF/${PORTNAME}/Expect/${PORTVERSION}
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Sophisticated scripter based on Tcl/Tk
LICENSE= PD
LICENSE_FILE= ${WRKSRC}/license.terms
USES= tcl:tea autoreconf
USE_LDCONFIG= ${LOCALBASE}/lib/${DISTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
SUB_FILES+= pkg-message
SUB_LIST+= MANPREFIX=${MANPREFIX}
TEST_TARGET= test
post-install:
${LN} -sf ${DISTNAME}/lib${DISTNAME}.so \
${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.1
${LN} -sf lib${PORTNAME}.so.1 ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so
.include <bsd.port.mk>