openbsd-ports/lang/expect/Makefile
sthen 88ea72915d Change SEPARATE_BUILD=(concurrent|simple) to Yes; bsd.port.mk doesn't
make a distinction between these.  ok aja@ dcoppa@
2012-03-29 13:38:12 +00:00

57 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.60 2012/03/29 13:38:40 sthen Exp $
COMMENT= sophisticated scripter based on Tcl/Tk
REVISION = 0
DISTNAME= expect-5.44.1.15
SHARED_LIBS= expect544115 0.0
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=expect/}
HOMEPAGE= http://expect.nist.gov/
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
# PD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c util m
FLAVORS= no_tk
FLAVOR?=
SEPARATE_BUILD= Yes
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE=autoconf no-autoheader
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
CFLAGS+= -I${X11BASE}/include
CONFIGURE_ARGS+=--with-tclconfig="${MODTCL_LIBDIR}" \
--with-tclinclude="${MODTCL_INCDIR}"
CONFIGURE_ENV+= LIBexpect544115_VERSION=${LIBexpect544115_VERSION} \
CFLAGS="-I${MODTCL_INCDIR} -I${X11BASE}/include"
.if !${FLAVOR:Mno_tk}
MODULES= x11/tk
WANTLIB+= X11 z pthread-stubs xcb
WANTLIB+= Xau Xdmcp Xext Xft Xrender Xss expat fontconfig freetype
MAKE_FLAGS+= TK=Yes
LIB_DEPENDS += ${MODTK_LIB_DEPENDS}
WANTLIB += ${MODTK_WANTLIB}
CONFIGURE_ARGS+=--libdir=${MODTCL_TCLDIR} \
--with-tk="${MODTK_LIBDIR}" \
--with-tkinclude="${MODTK_INCDIR}"
.else
MODULES = lang/tcl
LIB_DEPENDS += ${MODTCL_LIB_DEPENDS}
WANTLIB += ${MODTCL_WANTLIB}
CONFIGURE_ARGS +=--with-tk=no --libdir=${MODTCL_TCLDIR}
.endif
FAKE_FLAGS = PKG_DIR=expect
REGRESS_TARGET = test
.include <bsd.port.mk>