1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/afnix/Makefile
Johan van Selst 402551a405 - Update afnix to 2.4.0
- Enable stage support
2014-01-08 18:01:25 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= afnix
PORTVERSION= 2.4.0
CATEGORIES= lang
MASTER_SITES= http://www.afnix.org/ftp/ \
ftp://ftp.stack.nl/pub/users/johans/afnix/
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= johans@FreeBSD.org
COMMENT= A multi-threaded functional programming language
USES= gmake
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= cnf/bin/afnix-setup
CONFIGURE_ARGS= -o --prefix "${PREFIX}" --altdir "${PREFIX}" \
--shrdir "${PREFIX}/share" --compiler freebsd
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
PORTDOCS= *
PLIST_SUB= PORTVER=${PORTVERSION:R}
.include <bsd.port.pre.mk>
.if ${ARCH} == "powerpc"
BROKEN= Does not configure on powerpc
.endif
post-extract:
@cd ${WRKSRC}/cnf/mak && ${CP} -f afnix-gcc-4.mak afnix-freebsd.mak
post-patch:
@${REINPLACE_CMD} -e 's|$$(CP)|$$(BSD_INSTALL_PROGRAM)|' \
${WRKSRC}/src/*/*/exe/Makefile
@${REINPLACE_CMD} -e '/\.rtf/d' ${WRKSRC}/etc/Makefile
@${REINPLACE_CMD} -e '/uname -r/s/\\\./[.-]/' \
${WRKSRC}/cnf/bin/afnix-guess
post-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} doc
@cd ${WRKSRC}/prj && ${SETENV} ${MAKE_ENV} ${GMAKE} doc
post-install:
.if ! ${PORT_OPTIONS:MDOCS}
. for i in ${MAN1} ${MAN3} ${MAN7}
${INSTALL_MAN} ${WRKSRC}/bld/${PORTNAME}-doc-${PORTVERSION}/man/$i \
${STAGEDIR}${MANPREFIX}/man/man${i:E}/
. endfor
.else
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} ${GMAKE} publish
.endif
.include <bsd.port.post.mk>