head	1.2;
access;
symbols
	pkgsrc-2026Q1:1.2.0.38
	pkgsrc-2026Q1-base:1.2
	pkgsrc-2025Q4:1.2.0.36
	pkgsrc-2025Q4-base:1.2
	pkgsrc-2025Q3:1.2.0.34
	pkgsrc-2025Q3-base:1.2
	pkgsrc-2025Q2:1.2.0.32
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.2.0.30
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.2.0.28
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.2.0.26
	pkgsrc-2024Q3-base:1.2
	pkgsrc-2024Q2:1.2.0.24
	pkgsrc-2024Q2-base:1.2
	pkgsrc-2024Q1:1.2.0.22
	pkgsrc-2024Q1-base:1.2
	pkgsrc-2023Q4:1.2.0.20
	pkgsrc-2023Q4-base:1.2
	pkgsrc-2023Q3:1.2.0.18
	pkgsrc-2023Q3-base:1.2
	pkgsrc-2023Q2:1.2.0.16
	pkgsrc-2023Q2-base:1.2
	pkgsrc-2023Q1:1.2.0.14
	pkgsrc-2023Q1-base:1.2
	pkgsrc-2022Q4:1.2.0.12
	pkgsrc-2022Q4-base:1.2
	pkgsrc-2022Q3:1.2.0.10
	pkgsrc-2022Q3-base:1.2
	pkgsrc-2022Q2:1.2.0.8
	pkgsrc-2022Q2-base:1.2
	pkgsrc-2022Q1:1.2.0.6
	pkgsrc-2022Q1-base:1.2
	pkgsrc-2021Q4:1.2.0.4
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.2
	pkgsrc-2021Q3-base:1.2;
locks; strict;
comment	@# @;


1.2
date	2021.07.01.20.03.39;	author hauke;	state Exp;
branches;
next	1.1;
commitid	n73YSUOwtTjt4kZC;

1.1
date	2021.06.29.14.28.12;	author hauke;	state Exp;
branches;
next	;
commitid	ssUfo9Guh8o7g2ZC;


desc
@@


1.2
log
@Disallow for-pay distribution, e.g. on CDROMs (does anybody do that
these days?)
@
text
@# $NetBSD: Makefile,v 1.1 2021/06/29 14:28:12 hauke Exp $

DISTNAME=	SMathStudioDesktop.${PKGVERSION_NOREV:S/./_/g}.Mono
PKGNAME=	smath-studio-${PKGVER}
PKGVER=		0.99.7822
CATEGORIES=	math
MASTER_SITES=	https://smath.com/file/oVRx7/

MAINTAINER=	hauke@@NetBSD.org
HOMEPAGE=	https://smath.com/
DOWNLOAD=	https://en.smath.com/view/SMathStudio/summary
DOWNLOAD_NAME=	SMath Studio Desktop for Mono
COMMENT=	Tiny, powerful, free mathematical program with WYSIWYG editor

LICENSE=		smath-license
RESTRICTED=		Redistribution of repackaged binaries not permitted
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}

EXTRACT_DIR=	${WRKDIR}/${DISTNAME}

USE_LANGUAGES=	# none
NO_BUILD=	YES

DEPENDS+=	mono-[0-9]*:../../lang/mono
DEPENDS+=	libgdiplus-[0-9]*:../../graphics/libgdiplus

FETCH_MESSAGE+=	" The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}"
FETCH_MESSAGE+=	""
FETCH_MESSAGE+=	" must be fetched into:"
FETCH_MESSAGE+=	"       ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}"
FETCH_MESSAGE+=	" from:"
FETCH_MESSAGE+=	"       ${DOWNLOAD}"

USE_TOOLS+=	pax

EGDIR=			share/examples/smath-studio
DOCDIR=			share/doc/smath-studio
SMATH_DIR=		libexec/smath-studio
INSTALLATION_DIRS=	bin ${EGDIR} ${DOCDIR} ${SMATH_DIR}

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Fixing absolute paths.
SUBST_FILES.paths=	smath-studio.sh
SUBST_VARS.paths=	PREFIX SMATH_DIR

SUBST_CLASSES+=		switch
SUBST_STAGE.switch=	pre-configure
SUBST_MESSAGE.switch=	Disabling runtime download.
SUBST_FILES.switch=	SMathStudio_Desktop.exe.config
SUBST_SED.switch=	-E -e 's,(loadFromRemoteSources enabled)="true",\1="false",'

post-extract:
	find ${WRKSRC} -type f -exec chmod -x {} \;
	cp ${FILESDIR}/smath-studio.sh ${WRKSRC}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/smath-studio.sh \
		${DESTDIR}${PREFIX}/bin/smath-studio
	cd ${WRKSRC} && pax -rw EULA book ${DESTDIR}${PREFIX}/${DOCDIR}/
.for dd in EULA book
	cd ${WRKSRC} && rm -r ${dd} && \
		ln -s ${PREFIX}/${DOCDIR}/${dd} \
		${DESTDIR}${PREFIX}/${SMATH_DIR}/${dd}
.endfor
	cd ${WRKSRC} && pax -rw examples ${DESTDIR}${PREFIX}/${EGDIR}/
	cd ${WRKSRC} && rm -r examples && \
		ln -s ${PREFIX}/${EGDIR}/examples \
		${DESTDIR}${PREFIX}/${SMATH_DIR}/examples
.for dd in SMath.*.dll SMathStudio_Desktop.exe entries lang \
	plugins representation snippets
	cd ${WRKSRC} && pax -rw ${dd} ${DESTDIR}${PREFIX}/${SMATH_DIR}/
.endfor

.include "../../mk/bsd.pkg.mk"
@


1.1
log
@Add SMath Studio as math/smath-studio.

While the license allows to re-distribute the source tarball
unchanged, an automatic download fails, so it will have to be
downloaded in a browser.

From the upstream description:

SMath Studio is a tiny, powerful, free mathematical program with
WYSIWYG editor and complete units of measurements support.

It provides numerous computing features and rich user interface
translated into about 40 different languages. The application also
contains an integrated mathematical reference book.

It can be easily extended based on your needs. A built-in Extensions
Manager tool allows to get access to hundreds official and third-party
resources of the following types: usage examples, plug-ins, SMath
Viewer based applications, snippets, interface translations,
interactive books, handbooks and tutorials.
@
text
@d1 1
a1 1
# $NetBSD$
d17 1
@

