mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Update to 2.2.3
- Use options helpers - Build/install dynamic library instead of the static one - Add options DOCS and EXAMPLES - Set MAKE_JOBS_UNSAFE, otherwise the port fails to build when the option EXAMPLES is ON (it tries to compile/link example1 while the library is not yet built/deployed) - Remove build-dependency by devel/gmake - Add support for stage dir - Fix format of WWW line in pkg-descr Release Notes: http://muparser.beltoforion.de/mup_intro.html#idRelNote
This commit is contained in:
parent
f668f88d39
commit
acce372296
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361018
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= muparser
|
||||
PORTVERSION= 2.2.0
|
||||
PORTVERSION= 2.2.3
|
||||
CATEGORIES= math devel
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${PORTVERSION}
|
||||
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/g}
|
||||
@ -12,38 +12,43 @@ COMMENT= Mathematical expressions parser library written in C++
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
USES= pathfix gmake zip
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --enable-shared=no
|
||||
.if defined(NOPORTEXAMPLES)
|
||||
CONFIGURE_ARGS+= --enable-samples=no
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
|
||||
.endif
|
||||
ALL_TARGET= lib
|
||||
|
||||
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR}
|
||||
|
||||
EXAMPLES_CONFIGURE_ENABLE= samples
|
||||
EXAMPLES_ALL_TARGET= samples
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
# otherwise it fails to build when the EXAMPLES option is ON
|
||||
MAKE_JOBS_UNSAFE=yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
USES= pathfix zip
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
# taken from audio/taglib
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR} && \
|
||||
cd ${WRKSRC}/docs/html && \
|
||||
${COPYTREE_SHARE} . ${DOCSDIR}
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR} && \
|
||||
cd ${WRKSRC}/samples && \
|
||||
${COPYTREE_SHARE} . ${EXAMPLESDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC}/docs/html && \
|
||||
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
(cd ${WRKSRC}/samples/example1 && \
|
||||
${INSTALL_PROGRAM} example1 ${STAGEDIR}${EXAMPLESDIR} && \
|
||||
${INSTALL_DATA} example1.cpp ${STAGEDIR}${EXAMPLESDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (muparser_v2_2_0.zip) = 3f543c49594dc77536049e837436ad8562a23fcfdb28150f3a63ab5369b77fb5
|
||||
SIZE (muparser_v2_2_0.zip) = 1504870
|
||||
SHA256 (muparser_v2_2_3.zip) = dfe831b69392ab0b1eb59d3601b7b1575554a85057cf2f234f64f930c4148902
|
||||
SIZE (muparser_v2_2_3.zip) = 1481359
|
||||
|
@ -2,5 +2,4 @@ muParser is an extensible high performance math parser library written in C++.
|
||||
It is based on transforming an expression into a bytecode and precalculating
|
||||
constant parts of it.
|
||||
|
||||
Author: Ingo Berg <ingo_berg@gmx.de>
|
||||
WWW: http://muparser.beltoforion.de/
|
||||
WWW: http://muparser.beltoforion.de/
|
||||
|
@ -12,7 +12,9 @@ include/muParserTemplateMagic.h
|
||||
include/muParserTest.h
|
||||
include/muParserToken.h
|
||||
include/muParserTokenReader.h
|
||||
lib/libmuparser.a
|
||||
lib/libmuparser.so
|
||||
lib/libmuparser.so.2
|
||||
lib/libmuparser.so.2.2.3
|
||||
libdata/pkgconfig/muparser.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/images/api.png
|
||||
%%PORTDOCS%%%%DOCSDIR%%/images/api_dark.png
|
||||
@ -89,20 +91,12 @@ libdata/pkgconfig/muparser.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sources/mup_version_meta.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sources/navigation.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/style/formate.css
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/example1
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1/example1.cpp
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/Readme.txt
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/example2.c
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/muparser32.dll
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/muparser64.dll
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/muparserd32.dll
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example2/muparserd64.dll
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example2
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/example1
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/style
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/sources
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/script
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/misc
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example1.cpp
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/images
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/misc
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/script
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/sources
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/style
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user