1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/lang/maude/Makefile
Dmitry Marakasov 8a73316d5d - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
- Switch to options helpers

Approved by:	portmgr blanket
2017-01-12 11:28:49 +00:00

72 lines
2.0 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.illinois.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:textproc/flex
LIB_DEPENDS= libbdd.so:science/buddy \
libtecla.so:devel/libtecla \
libgmp.so:math/gmp \
libsigsegv.so:devel/libsigsegv
USES= alias autoreconf bison ncurses
GNU_CONFIGURE= yes
CPPFLAGS+= -I${NCURSESINC} -I${LOCALBASE}/include
LDFLAGS+= -L${NCURSESLIB} -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
BROKEN_aarch64= Fails to link: missing sbrk
.include <bsd.port.options.mk>
.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.maude.zip
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${FULL_MAUDE_DIST}:fm
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_DEPENDS+= ${LOCALBASE}/bin/unzip:archivers/unzip
PLIST_SUB+= FULL_MAUDE=""
PLIST_SUB+= FULL_MAUDE_VER="${FULL_MAUDE_VER}"
.else
PLIST_SUB+= FULL_MAUDE="@comment "
.endif
post-extract-FULL_MAUDE-on:
${UNZIP_CMD} ${DISTDIR}/${FULL_MAUDE_DIST} ${FULL_MAUDE} -d ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
${WRKSRC}/src/Mixfix/global.hh
@${REINPLACE_CMD} -e 's|-lcurses|-lncurses|g' \
${WRKSRC}/configure.ac
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-FULL_MAUDE-on:
${INSTALL_DATA} ${WRKDIR}/${FULL_MAUDE} ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>