freebsd-ports/lang/maude/Makefile
Thomas Zander 75b430129c - Stagify
- Fix build on clang
- Add MAKE_JOBS_UNSAFE
- Add LICENSE
- Add DOCS option
- Bump PORTREVISION
- Pet portlint

PR:		191049
Submitted by:	k@stereochro.me
Reviewed by:	cpm@fbsd.es, joemann@beefree.free.de, marino, riggs
Final patch by:	cpm@fbsd.es, riggs
MFH:		2014Q3
2014-09-03 19:58:36 +00:00

75 lines
2 KiB
Makefile

# Created by: Rick van der Zwet <rick@wzoeterwoude.net>
# $FreeBSD$
PORTNAME= maude
PORTVERSION= 2.6
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://maude.cs.uiuc.edu/versions/${PORTVERSION}/
DISTNAME= Maude-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= High-performance reflective language
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
LIB_DEPENDS= libbdd.so:${PORTSDIR}/science/buddy \
libtecla.so:${PORTSDIR}/devel/libtecla \
libgmp.so:${PORTSDIR}/math/gmp \
libsigsegv.so:${PORTSDIR}/devel/libsigsegv
USES= bison
USE_AUTOTOOLS= aclocal autoheader automake
AUTOMAKE_ARGS= --add-missing
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --datadir=${DATADIR}
MAKE_JOBS_UNSAFE= yes
FULL_MAUDE_VER= 26b
OPTIONS_DEFINE= DOCS FULL_MAUDE
OPTIONS_DEFAULT= FULL_MAUDE
FULL_MAUDE_DESC= Install full-maude${FULL_MAUDE_VER}
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 1000000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Mixfix-lexerAux
.endif
.if ${PORT_OPTIONS:MFULL_MAUDE}
MASTER_SITES+= http://maude.lcc.uma.es/FullMaude/FM${FULL_MAUDE_VER}/:fm
FULL_MAUDE= full-maude${FULL_MAUDE_VER}.maude
FULL_MAUDE_DIST= ${FULL_MAUDE}.zip
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${FULL_MAUDE_DIST}:fm
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip
PLIST_SUB+= FULL_MAUDE=""
PLIST_SUB+= FULL_MAUDE_VER="${FULL_MAUDE_VER}"
.else
PLIST_SUB+= FULL_MAUDE="@comment "
.endif
post-extract:
.if ${PORT_OPTIONS:MFULL_MAUDE}
${UNZIP_CMD} ${DISTDIR}/${FULL_MAUDE_DIST} ${FULL_MAUDE} -d ${WRKDIR}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/src/Mixfix/global.hh
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MFULL_MAUDE}
${INSTALL_DATA} ${WRKDIR}/${FULL_MAUDE} ${STAGEDIR}${DATADIR}
.endif
.include <bsd.port.mk>