| @@ -1,76 +1,77 @@ | | | @@ -1,76 +1,77 @@ |
1 | # $NetBSD: Makefile,v 1.1 2021/06/29 14:28:12 hauke Exp $ | | 1 | # $NetBSD: Makefile,v 1.2 2021/07/01 20:03:39 hauke Exp $ |
2 | | | 2 | |
3 | DISTNAME= SMathStudioDesktop.${PKGVERSION_NOREV:S/./_/g}.Mono | | 3 | DISTNAME= SMathStudioDesktop.${PKGVERSION_NOREV:S/./_/g}.Mono |
4 | PKGNAME= smath-studio-${PKGVER} | | 4 | PKGNAME= smath-studio-${PKGVER} |
5 | PKGVER= 0.99.7822 | | 5 | PKGVER= 0.99.7822 |
6 | CATEGORIES= math | | 6 | CATEGORIES= math |
7 | MASTER_SITES= https://smath.com/file/oVRx7/ | | 7 | MASTER_SITES= https://smath.com/file/oVRx7/ |
8 | | | 8 | |
9 | MAINTAINER= hauke@NetBSD.org | | 9 | MAINTAINER= hauke@NetBSD.org |
10 | HOMEPAGE= https://smath.com/ | | 10 | HOMEPAGE= https://smath.com/ |
11 | DOWNLOAD= https://en.smath.com/view/SMathStudio/summary | | 11 | DOWNLOAD= https://en.smath.com/view/SMathStudio/summary |
12 | DOWNLOAD_NAME= SMath Studio Desktop for Mono | | 12 | DOWNLOAD_NAME= SMath Studio Desktop for Mono |
13 | COMMENT= Tiny, powerful, free mathematical program with WYSIWYG editor | | 13 | COMMENT= Tiny, powerful, free mathematical program with WYSIWYG editor |
14 | | | 14 | |
15 | LICENSE= smath-license | | 15 | LICENSE= smath-license |
16 | RESTRICTED= Redistribution of repackaged binaries not permitted | | 16 | RESTRICTED= Redistribution of repackaged binaries not permitted |
| | | 17 | NO_SRC_ON_CDROM= ${RESTRICTED} |
17 | NO_BIN_ON_CDROM= ${RESTRICTED} | | 18 | NO_BIN_ON_CDROM= ${RESTRICTED} |
18 | NO_BIN_ON_FTP= ${RESTRICTED} | | 19 | NO_BIN_ON_FTP= ${RESTRICTED} |
19 | | | 20 | |
20 | EXTRACT_DIR= ${WRKDIR}/${DISTNAME} | | 21 | EXTRACT_DIR= ${WRKDIR}/${DISTNAME} |
21 | | | 22 | |
22 | USE_LANGUAGES= # none | | 23 | USE_LANGUAGES= # none |
23 | NO_BUILD= YES | | 24 | NO_BUILD= YES |
24 | | | 25 | |
25 | DEPENDS+= mono-[0-9]*:../../lang/mono | | 26 | DEPENDS+= mono-[0-9]*:../../lang/mono |
26 | DEPENDS+= libgdiplus-[0-9]*:../../graphics/libgdiplus | | 27 | DEPENDS+= libgdiplus-[0-9]*:../../graphics/libgdiplus |
27 | | | 28 | |
28 | FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}" | | 29 | FETCH_MESSAGE+= " The file ${DISTNAME}${EXTRACT_SUFX} containing ${DOWNLOAD_NAME}" |
29 | FETCH_MESSAGE+= "" | | 30 | FETCH_MESSAGE+= "" |
30 | FETCH_MESSAGE+= " must be fetched into:" | | 31 | FETCH_MESSAGE+= " must be fetched into:" |
31 | FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}" | | 32 | FETCH_MESSAGE+= " ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}" |
32 | FETCH_MESSAGE+= " from:" | | 33 | FETCH_MESSAGE+= " from:" |
33 | FETCH_MESSAGE+= " ${DOWNLOAD}" | | 34 | FETCH_MESSAGE+= " ${DOWNLOAD}" |
34 | | | 35 | |
35 | USE_TOOLS+= pax | | 36 | USE_TOOLS+= pax |
36 | | | 37 | |
37 | EGDIR= share/examples/smath-studio | | 38 | EGDIR= share/examples/smath-studio |
38 | DOCDIR= share/doc/smath-studio | | 39 | DOCDIR= share/doc/smath-studio |
39 | SMATH_DIR= libexec/smath-studio | | 40 | SMATH_DIR= libexec/smath-studio |
40 | INSTALLATION_DIRS= bin ${EGDIR} ${DOCDIR} ${SMATH_DIR} | | 41 | INSTALLATION_DIRS= bin ${EGDIR} ${DOCDIR} ${SMATH_DIR} |
41 | | | 42 | |
42 | SUBST_CLASSES+= paths | | 43 | SUBST_CLASSES+= paths |
43 | SUBST_STAGE.paths= pre-configure | | 44 | SUBST_STAGE.paths= pre-configure |
44 | SUBST_MESSAGE.paths= Fixing absolute paths. | | 45 | SUBST_MESSAGE.paths= Fixing absolute paths. |
45 | SUBST_FILES.paths= smath-studio.sh | | 46 | SUBST_FILES.paths= smath-studio.sh |
46 | SUBST_VARS.paths= PREFIX SMATH_DIR | | 47 | SUBST_VARS.paths= PREFIX SMATH_DIR |
47 | | | 48 | |
48 | SUBST_CLASSES+= switch | | 49 | SUBST_CLASSES+= switch |
49 | SUBST_STAGE.switch= pre-configure | | 50 | SUBST_STAGE.switch= pre-configure |
50 | SUBST_MESSAGE.switch= Disabling runtime download. | | 51 | SUBST_MESSAGE.switch= Disabling runtime download. |
51 | SUBST_FILES.switch= SMathStudio_Desktop.exe.config | | 52 | SUBST_FILES.switch= SMathStudio_Desktop.exe.config |
52 | SUBST_SED.switch= -E -e 's,(loadFromRemoteSources enabled)="true",\1="false",' | | 53 | SUBST_SED.switch= -E -e 's,(loadFromRemoteSources enabled)="true",\1="false",' |
53 | | | 54 | |
54 | post-extract: | | 55 | post-extract: |
55 | find ${WRKSRC} -type f -exec chmod -x {} \; | | 56 | find ${WRKSRC} -type f -exec chmod -x {} \; |
56 | cp ${FILESDIR}/smath-studio.sh ${WRKSRC} | | 57 | cp ${FILESDIR}/smath-studio.sh ${WRKSRC} |
57 | | | 58 | |
58 | do-install: | | 59 | do-install: |
59 | ${INSTALL_SCRIPT} ${WRKSRC}/smath-studio.sh \ | | 60 | ${INSTALL_SCRIPT} ${WRKSRC}/smath-studio.sh \ |
60 | ${DESTDIR}${PREFIX}/bin/smath-studio | | 61 | ${DESTDIR}${PREFIX}/bin/smath-studio |
61 | cd ${WRKSRC} && pax -rw EULA book ${DESTDIR}${PREFIX}/${DOCDIR}/ | | 62 | cd ${WRKSRC} && pax -rw EULA book ${DESTDIR}${PREFIX}/${DOCDIR}/ |
62 | .for dd in EULA book | | 63 | .for dd in EULA book |
63 | cd ${WRKSRC} && rm -r ${dd} && \ | | 64 | cd ${WRKSRC} && rm -r ${dd} && \ |
64 | ln -s ${PREFIX}/${DOCDIR}/${dd} \ | | 65 | ln -s ${PREFIX}/${DOCDIR}/${dd} \ |
65 | ${DESTDIR}${PREFIX}/${SMATH_DIR}/${dd} | | 66 | ${DESTDIR}${PREFIX}/${SMATH_DIR}/${dd} |
66 | .endfor | | 67 | .endfor |
67 | cd ${WRKSRC} && pax -rw examples ${DESTDIR}${PREFIX}/${EGDIR}/ | | 68 | cd ${WRKSRC} && pax -rw examples ${DESTDIR}${PREFIX}/${EGDIR}/ |
68 | cd ${WRKSRC} && rm -r examples && \ | | 69 | cd ${WRKSRC} && rm -r examples && \ |
69 | ln -s ${PREFIX}/${EGDIR}/examples \ | | 70 | ln -s ${PREFIX}/${EGDIR}/examples \ |
70 | ${DESTDIR}${PREFIX}/${SMATH_DIR}/examples | | 71 | ${DESTDIR}${PREFIX}/${SMATH_DIR}/examples |
71 | .for dd in SMath.*.dll SMathStudio_Desktop.exe entries lang \ | | 72 | .for dd in SMath.*.dll SMathStudio_Desktop.exe entries lang \ |
72 | plugins representation snippets | | 73 | plugins representation snippets |
73 | cd ${WRKSRC} && pax -rw ${dd} ${DESTDIR}${PREFIX}/${SMATH_DIR}/ | | 74 | cd ${WRKSRC} && pax -rw ${dd} ${DESTDIR}${PREFIX}/${SMATH_DIR}/ |
74 | .endfor | | 75 | .endfor |
75 | | | 76 | |
76 | .include "../../mk/bsd.pkg.mk" | | 77 | .include "../../mk/bsd.pkg.mk" |