1412b7012f
This caused a build failure on OpenServer. As the comment hinted would be necessary, limit the workaround to linux and sunos, which are known to have poll. (expect does not have a configure test for poll already.)
33 lines
902 B
Makefile
33 lines
902 B
Makefile
# $NetBSD: Makefile,v 1.36 2022/06/19 22:22:21 gdt Exp $
|
|
|
|
.include "Makefile.common"
|
|
|
|
PKGNAME= tcl-expect-${EXPECT_VERSION}
|
|
PKGREVISION= 6
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Extensions to Tcl to support scripting of interactive programs
|
|
LICENSE= public-domain
|
|
|
|
USE_GCC_RUNTIME= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --with-tclconfig=${BUILDLINK_PREFIX.tcl}/lib
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR:Q}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# XXX: libexpect should have .dylib suffix
|
|
.if ${OPSYS} == "Darwin"
|
|
post-build:
|
|
install_name_tool -id ${PREFIX}/lib/libexpect${EXPECT_SONUM}.so \
|
|
${WRKSRC}/libexpect${EXPECT_SONUM}.so
|
|
install_name_tool -change libexpect${EXPECT_SONUM}.so \
|
|
${PREFIX}/lib/libexpect${EXPECT_SONUM}.so ${WRKSRC}/expect
|
|
.endif
|
|
|
|
.include "../../lang/tcl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|