openbsd-ports/lang/eltclsh/Makefile
matthieu 2d57feac9c Update to eltclsh 1.17.
ok@ stu@

Upstream changes:
Drop the local implementation of "lreverse" and "lmap" shadowing
the native tcl procedures now present in tcl-8.5 and 8.6 respectively.

stu@ tweaks:
Now uses Tcl/Tk 8.6 via MODTK_VERSION
WANTLIB fixes.
2018-08-15 12:09:25 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.32 2018/08/15 12:09:25 matthieu Exp $
COMMENT = Libedit interface to Tcl/Tk interpreters
DISTNAME = eltclsh-1.17
CATEGORIES = lang x11
MASTER_SITES = https://www.openrobots.org/distfiles/eltclsh/
HOMEPAGE = https://git.openrobots.org/projects/eltclsh/
MAINTAINER = Matthieu Herrb <matthieu@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = X11 Xext Xft Xrender Xss c curses edit expat \
fontconfig freetype m pthread xcb z ${MODTK_WANTLIB}
MODULES = x11/tk
MODTK_VERSION = 8.6
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-tcl=${MODTCL_LIBDIR} \
--with-tk=${MODTK_LIBDIR} \
--libdir=\$${prefix}/lib/tcl \
--datadir=\$${prefix}/lib/tcl
USE_GMAKE = Yes
FAKE_FLAGS = ELTCL_LIBRARY=${WRKINST}${MODTCL_TCLDIR}/eltcl
NO_TEST = Yes
LIB_DEPENDS += ${MODTK_LIB_DEPENDS}
CFLAGS += -pthread
LDFLAGS += -lpthread
post-install:
rm ${WRKINST}${MODTCL_TCLDIR}/libeltclsh.la
rm ${WRKINST}${MODTCL_TCLDIR}/libeltclsh.a
rm ${WRKINST}${MODTCL_TCLDIR}/pkgconfig/eltclsh.pc
rmdir ${WRKINST}${MODTCL_TCLDIR}/pkgconfig
.include <bsd.port.mk>