1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/math/muparser/Makefile
Pav Lucistnik efa63f6ba4 - Remove USE_GCC where it can be satisfied with base compiler on following
FreeBSD versions: 5.3 and up, 6.x, 7.x, 8-CURRENT
2008-07-25 14:34:52 +00:00

52 lines
1.2 KiB
Makefile

# New ports collection makefile for: muparser
# Date created: 2006-02-14
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= muparser
PORTVERSION= 1.30
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}_v130
MAINTAINER= nivit@FreeBSD.org
COMMENT= Mathematical expressions parser library written in C++
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
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
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/muparser
# taken from audio/taglib
post-patch:
@${REINPLACE_CMD} -e "s#\$$(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#g" \
${WRKSRC}/Makefile.in
@${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}
.endif
.include <bsd.port.mk>