2006-02-15 17:58:32 +01:00
|
|
|
# New ports collection makefile for: muparser
|
|
|
|
# Date created: 2006-02-14
|
|
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= muparser
|
2008-07-12 19:04:57 +02:00
|
|
|
PORTVERSION= 1.30
|
2006-02-15 17:58:32 +01:00
|
|
|
CATEGORIES= math devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2008-07-12 19:04:57 +02:00
|
|
|
DISTNAME= ${PORTNAME}_v130
|
2006-02-15 17:58:32 +01:00
|
|
|
|
2006-12-10 02:21:51 +01:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-02-15 17:58:32 +01:00
|
|
|
COMMENT= Mathematical expressions parser library written in C++
|
|
|
|
|
2006-05-28 07:25:50 +02:00
|
|
|
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
|
2006-02-15 17:58:32 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2008-07-12 19:04:57 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-shared=no
|
|
|
|
.if defined(NOPORTEXAMPLES)
|
|
|
|
CONFIGURE_ARGS+= --enable-samples=no
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
|
|
|
|
.endif
|
2007-01-31 15:41:02 +01:00
|
|
|
USE_LDCONFIG= yes
|
2006-02-15 17:58:32 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2007-01-31 15:41:02 +01:00
|
|
|
WRKSRC= ${WRKDIR}/muparser
|
2006-02-15 17:58:32 +01:00
|
|
|
|
|
|
|
# taken from audio/taglib
|
|
|
|
post-patch:
|
2007-01-31 15:41:02 +01:00
|
|
|
@${REINPLACE_CMD} -e "s#\$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#g" \
|
2006-02-15 17:58:32 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E 's,^(CXXFLAGS|LDFLAGS) = ,\1 ?= ,g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
2008-07-12 19:04:57 +02:00
|
|
|
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}
|
|
|
|
.endif
|
|
|
|
|
2006-02-15 17:58:32 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ( ${OSVERSION} < 501103 )
|
|
|
|
USE_GCC= 3.3+
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|