2011-01-05 13:45:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.57 2011/01/05 18:45:45 sebastia Exp $
|
2001-05-05 21:27:52 -04:00
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT= sophisticated scripter based on Tcl/Tk
|
1998-01-29 18:12:42 -05:00
|
|
|
|
2011-01-05 13:45:45 -05:00
|
|
|
REVISION = 0
|
2010-09-24 10:16:50 -04:00
|
|
|
DISTNAME= expect-5.44.1.15
|
|
|
|
SHARED_LIBS= expect544115 0.0
|
1999-04-29 17:25:08 -04:00
|
|
|
CATEGORIES= lang
|
2010-09-24 10:16:50 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=expect/}
|
1998-01-29 18:12:42 -05:00
|
|
|
|
2000-07-20 00:56:42 -04:00
|
|
|
HOMEPAGE= http://expect.nist.gov/
|
2010-09-24 10:16:50 -04:00
|
|
|
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
2000-07-20 00:56:42 -04:00
|
|
|
|
2003-09-23 19:08:44 -04:00
|
|
|
# PD
|
2000-03-05 13:30:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-09-24 10:16:50 -04:00
|
|
|
|
|
|
|
WANTLIB += c util m
|
2000-02-12 03:58:16 -05:00
|
|
|
|
2002-06-30 13:50:28 -04:00
|
|
|
FLAVORS= no_tk
|
|
|
|
FLAVOR?=
|
|
|
|
|
2010-09-24 10:16:50 -04:00
|
|
|
SEPARATE_BUILD= simple
|
|
|
|
AUTOCONF_VERSION= 2.59
|
|
|
|
CONFIGURE_STYLE=autoconf no-autoheader gnu
|
2003-09-23 19:08:44 -04:00
|
|
|
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
|
2009-03-11 16:11:30 -04:00
|
|
|
|
2010-09-24 10:16:50 -04:00
|
|
|
CFLAGS+= -I${X11BASE}/include
|
2009-03-11 16:11:30 -04:00
|
|
|
CONFIGURE_ARGS+=--with-tclconfig="${MODTCL_LIBDIR}" \
|
|
|
|
--with-tclinclude="${MODTCL_INCDIR}"
|
2011-01-05 13:45:45 -05:00
|
|
|
CONFIGURE_ENV+= LIBexpect544115_VERSION=${LIBexpect544115_VERSION} \
|
|
|
|
CFLAGS="-I${MODTCL_INCDIR} -I${X11BASE}/include"
|
2002-06-30 13:50:28 -04:00
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mno_tk}
|
2009-03-11 16:11:30 -04:00
|
|
|
MODULES= x11/tk
|
2010-09-24 10:16:50 -04:00
|
|
|
WANTLIB+= X11 z pthread-stubs xcb
|
|
|
|
WANTLIB+= Xau Xdmcp Xext Xft Xrender Xss expat fontconfig freetype
|
|
|
|
MAKE_FLAGS+= TK=Yes
|
2010-11-06 18:06:57 -04:00
|
|
|
LIB_DEPENDS += ${MODTK_LIB_DEPENDS}
|
|
|
|
WANTLIB += ${MODTK_WANTLIB}
|
2011-01-05 13:45:45 -05:00
|
|
|
CONFIGURE_ARGS+=--libdir=${MODTCL_TCLDIR} \
|
|
|
|
--with-tk="${MODTK_LIBDIR}" \
|
2009-03-11 16:11:30 -04:00
|
|
|
--with-tkinclude="${MODTK_INCDIR}"
|
|
|
|
.else
|
2010-11-08 04:28:25 -05:00
|
|
|
MODULES = lang/tcl
|
|
|
|
LIB_DEPENDS += ${MODTCL_LIB_DEPENDS}
|
|
|
|
WANTLIB += ${MODTCL_WANTLIB}
|
2011-01-05 13:45:45 -05:00
|
|
|
CONFIGURE_ARGS +=--with-tk=no --libdir=${MODTCL_TCLDIR}
|
2002-06-30 13:50:28 -04:00
|
|
|
.endif
|
1998-08-27 00:36:32 -04:00
|
|
|
|
2011-01-05 13:45:45 -05:00
|
|
|
FAKE_FLAGS = PKG_DIR=expect
|
|
|
|
REGRESS_TARGET = test
|
2002-12-14 19:22:03 -05:00
|
|
|
|
1998-01-29 18:12:42 -05:00
|
|
|
.include <bsd.port.mk>
|