head	1.4;
access;
symbols
	pkgsrc-2026Q1:1.4.0.10
	pkgsrc-2026Q1-base:1.4
	pkgsrc-2025Q4:1.4.0.8
	pkgsrc-2025Q4-base:1.4
	pkgsrc-2025Q3:1.4.0.6
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.4.0.4
	pkgsrc-2025Q2-base:1.4
	pkgsrc-2025Q1:1.4.0.2
	pkgsrc-2025Q1-base:1.4;
locks; strict;
comment	@# @;


1.4
date	2025.03.03.06.35.48;	author scole;	state Exp;
branches;
next	1.3;
commitid	4kuQWr0uwUUQuALF;

1.3
date	2025.03.03.01.26.07;	author scole;	state Exp;
branches;
next	1.2;
commitid	X1nJZQpynBPBMyLF;

1.2
date	2025.02.27.02.08.21;	author scole;	state Exp;
branches;
next	1.1;
commitid	k1mSJWma4Al493LF;

1.1
date	2025.02.26.03.35.14;	author scole;	state Exp;
branches;
next	;
commitid	xl4PfZJxUySREVKF;


desc
@@


1.4
log
@correct revision from last checkin, should have been 3.3.1nb2
@
text
@# $NetBSD: Makefile,v 1.3 2025/03/03 01:26:07 scole Exp $

DISTNAME=	critcl-3.3.1
PKGREVISION=	2
CATEGORIES=	devel tcl
MASTER_SITES=	${MASTER_SITE_GITHUB:=andreas-kupries/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://wiki.tcl-lang.org/page/Critcl
COMMENT=	Tcl utility to provide on-the-fly compilation and execution of C code
LICENSE=	modified-bsd

USE_TOOLS+=	env find ls

EXAM_DIR=		share/examples/critcl
INSTALLATION_DIRS+=	${PKGMANDIR}/mann ${EXAM_DIR}

DEPENDS+=		tcllib-[0-9]*:../../devel/tcllib

# in .../critcl.tcl, temporary compilation files are created in $HOME.
# override to ${WRKSRC} for pkgsrc build
# xxx use libtool for compilation and plist
do-build:
	cd ${WRKSRC} && ${ENV} HOME=${WRKSRC} \
	${TCLSH} ./build.tcl install --prefix ${DESTDIR}${PREFIX}

# handle shared library/arch dependent file names
GENERATE_PLIST+=	(cd ${DESTDIR}${PREFIX} && ${LS} \
			lib/critcl_callback_tcl8-1.1/*/* \
			lib/critcl_md5c_tcl8-0.12/*/*);

PLIST_SUBST+=		PVNR=${PKGVERSION_NOREV}

do-install:
	# do nothing

# add man pages and examples
post-install:
	cd ${WRKSRC}/embedded/man/files && \
	 ${INSTALL_MAN} * ${DESTDIR}${PREFIX}/${PKGMANDIR}/mann
	cd ${WRKSRC}/examples; for d in `${FIND} . -type d -print`; do \
	 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${EXAM_DIR}/$$d; done
	cd ${WRKSRC}/examples; for f in `${FIND} . -type f -print`; do \
	 ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/${EXAM_DIR}/$$f; done

.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.3
log
@update to 3.3.1nb1
- use PKGVERSION_NOREV for PLIST (PLIST handling doesn't like "_" in variable names?)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2025/02/27 02:08:21 scole Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.2
log
@Update to version 3.3.1nb1
- add examples and manpages
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/02/26 03:35:14 scole Exp $
d32 2
@


1.1
log
@Add critcl 3.3.1,  Runtime In Tcl (short: CriTcl), a system for embedding and using C code from within Tcl scripts
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/02/18 02:41:32 scole Exp $
d4 1
d13 1
a13 1
USE_TOOLS+=	env ls
d15 2
a16 2
EX_DIR=			share/examples/crictl
INSTALLATION_DIRS+=	lib/tcl ${EX_DIR}
d18 1
a18 1
DEPENDS+=	tcllib-[0-9]*:../../devel/tcllib
d35 9
@

