Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149460312
D35164.id105938.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D35164.id105938.diff
View Options
Index: math/maxima/Makefile
===================================================================
--- math/maxima/Makefile
+++ math/maxima/Makefile
@@ -2,16 +2,18 @@
PORTNAME= maxima
PORTVERSION= 5.46.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math lisp tk
MASTER_SITES= SF/maxima/Maxima-source/${PORTVERSION}-source
MAINTAINER= salvadore@FreeBSD.org
COMMENT= Symbolic mathematics program
-LICENSE= GPLv2 MAXIMAEXTRACLAUSE
+LICENSE= BSD3CLAUSE GPLv2 MAXIMAEXTRACLAUSE
LICENSE_COMB= multi
LICENSE_NAME_MAXIMAEXTRACLAUSE= Maxima extra clause
+LICENSE_FILE_BSD3CLAUSE= ${WRKSRC}/LICENSES/getopt-license.txt
+LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
LICENSE_FILE_MAXIMAEXTRACLAUSE= ${FILESDIR}/license-extra-clause.txt
LICENSE_PERMS_MAXIMAEXTRACLAUSE= dist-mirror dist-sell pkg-mirror \
pkg-sell auto-accept
@@ -36,12 +38,11 @@
OPTIONS_DEFINE= DOCS EXAMPLES MANPAGES NOUSERINIT SAGE TEST XMAXIMA
OPTIONS_DEFAULT= ECL MANPAGES NOUSERINIT SAGE TEST XMAXIMA
OPTIONS_SINGLE= LISP
-OPTIONS_SINGLE_LISP= CCL CMUCL ECL SBCL
+OPTIONS_SINGLE_LISP= CCL ECL SBCL
OPTIONS_SUB= yes
CCL_DESC= Build with Clozure Common Lisp
-CMUCL_DESC= Build with CMU Common Lisp
ECL_DESC= Build with Embedabble Common Lisp
NOUSERINIT_DESC= Do not load user init file for lisp (only for sbcl)
SAGE_DESC= Build with patches from Sage (implies ECL)
@@ -53,12 +54,7 @@
CCL_CONFIGURE_ON= --with-ccl=ccl
CCL_PLIST_SUB= BINDIR=binary-openmcl \
BINNAME=maxima.image
-
-CMUCL_BUILD_DEPENDS= lisp:lang/cmucl
-CMUCL_RUN_DEPENDS= lisp:lang/cmucl
-CMUCL_CONFIGURE_ON= --enable-cmucl
-CMUCL_PLIST_SUB= BINDIR=binary-cmucl \
- BINNAME=maxima_core
+CCL_VARS= NO_ARCH=yes
ECL_BUILD_DEPENDS= ecl:lang/ecl
ECL_LIB_DEPENDS= libffi.so:devel/libffi \
@@ -74,7 +70,6 @@
BINNAME=maxima
NOUSERINIT_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_maxima.in
-NOUSERINIT_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-OFF-src_maxima.in
SAGE_IMPLIES= ECL
SAGE_BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:devel/libatomic_ops
@@ -88,21 +83,26 @@
SBCL_CONFIGURE_ON= --enable-sbcl
SBCL_PLIST_SUB= BINDIR=binary-sbcl \
BINNAME=maxima_core
+SBCL_VARS= NO_ARCH=yes
TEST_BUILD_DEPENDS= gnuplot:math/gnuplot \
rlwrap:devel/rlwrap
-TEST_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-OFF-Makefile.am
XMAXIMA_IMPLIES= DOCS TEST
XMAXIMA_USES= tk
XMAXIMA_CONFIGURE_WITH= wish=${WISH}
XMAXIMA_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-interfaces_Makefile.am
+MAN_FILES= man/maxima.1 man/de/maxima.1 man/ru/maxima.1
+
post-patch:
${GREP} -Fe '.core' -l -r ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} 's;\.core;_core;g'
${REINPLACE_CMD} "s;tclsh;${TCLSH};g" ${WRKSRC}/interfaces/xmaxima/Makefile.in
${REINPLACE_CMD} "s;/usr;${LOCALBASE};g" ${WRKSRC}/src/intl.lisp
+post-patch-TEST-off:
+ ${REINPLACE_CMD} 's;tests;;' ${WRKSRC}/Makefile.am
+
post-patch-XMAXIMA-on:
${REINPLACE_CMD} "s;%%DOCSDIR%%;/${DOCSDIR:S,/, ,g};" \
${WRKSRC}/interfaces/xmaxima/Tkmaxima/Paths.tcl
@@ -115,7 +115,7 @@
cd ${WRKSRC}/src/ && ${MKDIR} binary-ccl && ${LN} -s binary-ccl binary-openmcl
post-build-MANPAGES-on:
- ${GZIP_CMD} ${WRKSRC}/doc/man/maxima.1
+ for x in ${MAN_FILES}; do ${GZIP_CMD} ${WRKSRC}/doc/$$x; done
post-install:
for x in "" "-1" "-2" "-3"; do ${INSTALL_MAN} ${WRKSRC}/doc/info/maxima.info$$x ${STAGEDIR}${PREFIX}/${INFO_PATH}; done
@@ -125,16 +125,17 @@
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc/info && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} '-name maxima*\.html'
+post-install-ECL-on:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/ecl
+ ${INSTALL_LIB} ${WRKSRC}/src/binary-ecl/maxima.fas \
+ ${STAGEDIR}${PREFIX}/lib/ecl
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/maxima/5.46.0/binary-ecl/maxima
+
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} '-name *\.dem'
post-install-MANPAGES-on:
- ${INSTALL_MAN} ${WRKSRC}/doc/man/maxima.1.gz ${STAGEDIR}${PREFIX}/man/man1
-
-post-install-ECL-on:
- ${MKDIR} ${STAGEDIR}${PREFIX}/lib/ecl
- ${INSTALL_DATA} ${WRKSRC}/src/binary-ecl/maxima.fas \
- ${STAGEDIR}${PREFIX}/lib/ecl
+ for x in ${MAN_FILES}; do ${MKDIR} ${STAGEDIR}${PREFIX}/$$(echo $$x | ${SED} 's;maxima.1;man1;') && ${INSTALL_MAN} ${WRKSRC}/doc/$$x.gz ${STAGEDIR}${PREFIX}/$$(echo $$x | ${SED} 's;maxima.1;man1/maxima.1.gz;'); done
.include <bsd.port.mk>
Index: math/maxima/files/extra-patch-OFF-Makefile.am
===================================================================
--- math/maxima/files/extra-patch-OFF-Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.am.orig 2020-06-15 21:43:09 UTC
-+++ Makefile.am
-@@ -6,7 +6,7 @@ if ENABLE_GETTEXT
- LOCALE_DIR = locale
- endif
-
--SUBDIRS = admin crosscompile-windows src lisp-utils tests doc interfaces share demo plotting desktopintegration $(LOCALE_DIR)
-+SUBDIRS = admin crosscompile-windows src lisp-utils interfaces share plotting desktopintegration $(LOCALE_DIR)
-
- EXTRA_DIST = \
- common.mk maxima.iss.in \
Index: math/maxima/files/patch-Makefile.am
===================================================================
--- /dev/null
+++ math/maxima/files/patch-Makefile.am
@@ -0,0 +1,11 @@
+--- Makefile.am.orig 2022-05-09 16:39:32 UTC
++++ Makefile.am
+@@ -10,7 +10,7 @@ endif
+ DOC_DIR = doc
+ endif
+
+-SUBDIRS = admin crosscompile-windows src lisp-utils tests $(DOC_DIR) interfaces share demo plotting desktopintegration $(LOCALE_DIR)
++SUBDIRS = admin crosscompile-windows src lisp-utils tests interfaces share plotting desktopintegration $(LOCALE_DIR)
+
+ EXTRA_DIST = \
+ common.mk maxima.iss.in \
Index: math/maxima/pkg-plist
===================================================================
--- math/maxima/pkg-plist
+++ math/maxima/pkg-plist
@@ -3,7 +3,6 @@
%%XMAXIMA%%bin/xmaxima
%%SAGE%%lib/ecl/maxima.fas
lib/maxima/%%PORTVERSION%%/%%BINDIR%%/%%BINNAME%%
-%%CMUCL%%lib/maxima/%%PORTVERSION%%/%%BINDIR%%/lisp
libexec/maxima/%%PORTVERSION%%/mgnuplot
%%MANPAGES%%man/man1/maxima.1.gz
%%MANPAGES%%man/de/man1/maxima.1.gz
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 25, 3:06 PM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30289709
Default Alt Text
D35164.id105938.diff (5 KB)
Attached To
Mode
D35164: math/maxima: Many improvments
Attached
Detach File
Event Timeline
Log In to Comment