head	1.7;
access;
symbols
	pkgsrc-2026Q2:1.5.0.6
	pkgsrc-2026Q2-base:1.5
	pkgsrc-2026Q1:1.5.0.4
	pkgsrc-2026Q1-base:1.5
	pkgsrc-2025Q4:1.5.0.2
	pkgsrc-2025Q4-base:1.5
	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
	pkgsrc-2024Q4:1.3.0.6
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.4
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.2
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.1.0.2
	pkgsrc-2024Q1-base:1.1;
locks; strict;
comment	@# @;


1.7
date	2026.07.13.04.36.13;	author wiz;	state Exp;
branches;
next	1.6;
commitid	KzpMRouvb2DLQrNG;

1.6
date	2026.07.04.06.25.04;	author wiz;	state Exp;
branches;
next	1.5;
commitid	LUiWF7ZoewUzKiMG;

1.5
date	2025.10.23.20.38.18;	author wiz;	state Exp;
branches;
next	1.4;
commitid	1V2hBZn9ypXaCJfG;

1.4
date	2025.02.12.06.45.18;	author ryoon;	state Exp;
branches;
next	1.3;
commitid	wrOiT0jBBwBs99JF;

1.3
date	2024.05.15.13.30.50;	author wiz;	state Exp;
branches;
next	1.2;
commitid	YTDYrZ9eCUl4b6aF;

1.2
date	2024.05.14.08.19.11;	author wiz;	state Exp;
branches;
next	1.1;
commitid	vlVmndM2SWw5uW9F;

1.1
date	2024.03.13.05.48.35;	author wiz;	state Exp;
branches;
next	;
commitid	hC4ddeCaoSc8EX1F;


desc
@@


1.7
log
@*: recursive bump for libmpg123 dependency in lame
@
text
@# $NetBSD: Makefile,v 1.6 2026/07/04 06:25:04 wiz Exp $

DISTNAME=	emacspeak-60.0
PKGREVISION=	4
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_GITHUB:=tvraman/}
GITHUB_PROJECT=	emacspeak
# The .tar.bz2 of release 60.0 is broken and upstream won't fix
# it.  Switch to the auto-generated repository snapshot for the 60.0
# release instead. This file is much bigger than the .tar.bz2 (100
# MB vs. 5 MB) so we should switch back to .tar.bz2 on the next
# release.
#EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://emacspeak.sourceforge.net/
COMMENT=	Speech interface for emacs
LICENSE=	gnu-gpl-v2

DEPENDS+=	mpv-[0-9]*:../../multimedia/mpv
DEPENDS+=	sox_ng-[0-9]*:../../audio/sox_ng

USE_TOOLS=	gmake perl bash:run pax

REPLACE_PERL=	etc/*
REPLACE_BASH=	bash-utils/* etc/* sounds/*/*sh

EMACS_VERSIONS_ACCEPTED=	emacs29 emacs29nox

# More than shebang, cant' use REPLACE_INTERPRETER
SUBST_CLASSES+=			fix-tclsh
SUBST_STAGE.fix-tclsh=		pre-configure
SUBST_MESSAGE.fix-tclsh=	Fixing tclsh path
SUBST_FILES.fix-tclsh=		servers/*
SUBST_SED.fix-tclsh=		-e 's,/usr/bin/tclsh,${PREFIX}/bin/tclsh,'

REPLACE_PYTHON+=		etc/*streamtheworld.py
REPLACE_PYTHON+=		servers/mac

# Fix sox path
SUBST_CLASSES+=			fix-sox-path
SUBST_STAGE.fix-sox-path=	pre-configure
SUBST_MESSAGE.fix-sox-path=	Fixing sox path
SUBST_FILES.fix-sox-path=	servers/tts-lib.tcl
SUBST_SED.fix-sox-path=		-E -e 's,/usr/bin/(sox|play),${PREFIX}/bin/\1,'

# Use sox as default player
SUBST_CLASSES+=			sox-player
SUBST_STAGE.sox-player=		pre-configure
SUBST_MESSAGE.sox-player=	Use sox as default player
SUBST_FILES.sox-player=		servers/tts-lib.tcl
SUBST_SED.sox-player=		-E -e 's,/usr/bin/paplay,${PREFIX}/bin/play,'

# Change BATCH variable's name
SUBST_CLASSES+=			es_batch
SUBST_STAGE.es_batch=		pre-configure
SUBST_MESSAGE.es_batch=		Change BATCH variable's name
SUBST_FILES.es_batch=		lisp/Makefile
SUBST_SED.es_batch=		-E -e 's/BATCH/ES_BATCH/'

USE_LANGUAGES+=	c c++

BUILD_TARGET=	all espeak

post-build:
	cd ${WRKSRC} && \
	for i in bash-utils/remote \
			etc/COPYRIGHT \
			etc/Makefile \
			etc/forms/apache-clf.el \
			etc/forms/messages.el \
			etc/remote.txt \
			xsl/README; do \
		${CHMOD} 644 "$$i"; \
	done; \
	for i in 	servers/native-espeak/Makefile.orig \
			lisp/emacspeak-bookshare.el.orig \
			.excludes.orig; do \
		rm "$$i"; \
	done; \
	for i in $$(cat .excludes); do \
		rm -rf "$$i"; \
	done
# This last for-done and ".excludes.orig; do \" above should be
# removed in the next release...

INSTALLATION_DIRS=	${EMACS_LISPPREFIX}/emacspeak

do-install:
	cd ${WRKSRC} && pax -rw * ${DESTDIR}${EMACS_LISPPREFIX}/emacspeak

.include "../../lang/tcl/buildlink3.mk"
.include "../../lang/tclx/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../audio/espeak-ng/buildlink3.mk"
.include "../../editors/emacs/modules.mk"
.include "../../lang/python/tool.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
@


1.6
log
@*: switch from sox to sox_ng
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2025/10/23 20:38:18 wiz Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.5
log
@*: recursive bump for pcre2

Running an old binary against the new pcre doesn't work:
/usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2025/02/12 06:45:18 ryoon Exp $
d4 1
a4 1
PKGREVISION=	2
d21 1
a21 1
DEPENDS+=	sox-[0-9]*:../../audio/sox
@


1.4
log
@*: Recursive revbump from audio/flac-1.5.0
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2024/05/15 13:30:50 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.3
log
@emacspeak: add comment about distfile status

Based on an explanation by adr.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/05/14 08:19:11 wiz Exp $
d4 1
@


1.2
log
@emacspeak: update to 60.0.

Updated provided by adr.

* Emacspeak 60 --- Emacspeak 60 User Visible Changes

This version requires Emacs-29.1 or later.

* EMPV: Emacspeak And MPV

Module ~emacspeak-empv~ now provides better ~MPV~ interaction and more
Youtube functionality.

* BBC Sounds

More BBC Sounds integration via module ~emacspeak-bbc~.

* Speech-Enable EBuku

Package ~ebuku.el~ is speech-enabled by  module ~emacspeak-ebuku~ ---
this is an Emacs front-end to the ~buku~ bookmark manager.

* The HTML5 Audio/Video Tag In EWW

Module ~emacspeak-eww~ adds support for the HTML5 ~audio~ and ~video~
tags; press ";" in an EWW buffer to move to any audio/video tags in
the page, and pess ";" again to play the content.

* Piper: Neural-Net TTS

Emacspeak now uses Piper TTS if available as one more source of
augmentative   audio  feedback.

* Speech-Enabled LLM Front-End

Emacspeak speech-enables package ~ellama~ and ~gptel~ for interacting
with both local and remote LLMs.

* Pipewire Support

Emacspeak now uses Pipewire if available.
Pulse should be considered deprecated starting with this release.

* Updated Keybindings

Keybindings continue to be revised in the interest of ergonomics.

* Mac Speech Server Using SwiftMac

There is a new speech server  --- SwiftMac --- for the Mac. The older
Python Mac server is now deprecated and unmaintained and will be
declared obsolete with the next release.

* Tree-Sitter Support

Emacspeak  now leverages tree-sitter support if available when
navigating in programming modes.

* Smart Media Selector

See the Emacspeak Blog for details on Emacspeak's [[https://emacspeak.blogspot.com/2024/03/updated-smart-media-selector-for-audio.html][smart media selector]].

* Smart EBook  Selector

EPub and Bookshare books can also be selected using  a smart selector
similar to the one for media.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/03/13 05:48:35 wiz Exp $
d7 6
@


1.1
log
@misc/emacspeak: import emacspeak-59.0

Packaged for wip by adr.

Emacspeak is a speech interface that allows visually impaired users
to interact independently and efficiently with the computer. Audio
formatting --a technique pioneered by AsTeR-- and full support for
W3C's Aural CSS (ACSS) allows Emacspeak to produce rich aural
presentations of electronic information. By seamlessly blending
all aspects of the Internet such as Web-surfing and messaging,
Emacspeak speech-enables local and remote information via a consistent
and well-integrated user interface. Available free of cost on the
Internet, Emacspeak has dramatically changed how the author and
thousands of blind and visually impaired users around the world
interact with the personal computer and the Internet. A rich suite
of task-oriented tools provides efficient speech-enabled access to
the audio desktop and evolving semantic WWW. When combined with
Linux running on low-cost PC hardware, Emacspeak/Linux provides a
reliable, stable speech-friendly solution that opens up the Internet
to visually impaired users around the world.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	emacspeak-59.0
a6 2
GITHUB_RELEASE=	59
EXTRACT_SUFX=	.tar.bz2
d13 4
a16 1
USE_TOOLS=	gmake perl bash pax
d19 1
a19 1
REPLACE_BASH=	bash-utils/* etc/*
a37 1
SUBST_FILES.fix-sox-path+=	lisp/emacspeak-sounds.el
d40 14
a65 1
			media/welcome.ra \
d71 1
a71 1
			servers/tts-lib.tcl.orig; do \
d73 3
d77 2
a88 1
.include "../../audio/sox/buildlink3.mk"
@

