2013-05-04 16:55:42 +00:00
|
|
|
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
2001-03-06 17:50:10 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
PORTNAME= afnix
|
2014-01-08 18:01:25 +00:00
|
|
|
PORTVERSION= 2.4.0
|
2001-03-06 17:50:10 +00:00
|
|
|
CATEGORIES= lang
|
2008-08-10 08:56:08 +00:00
|
|
|
MASTER_SITES= http://www.afnix.org/ftp/ \
|
2005-09-14 05:53:10 +00:00
|
|
|
ftp://ftp.stack.nl/pub/users/johans/afnix/
|
2013-05-04 16:55:42 +00:00
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
|
2005-02-19 19:54:55 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2010-02-23 18:07:14 +00:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-12-11 14:37:30 +00:00
|
|
|
COMMENT= A multi-threaded functional programming language
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2014-01-08 18:01:25 +00:00
|
|
|
USES= gmake
|
2006-06-22 14:03:19 +00:00
|
|
|
USE_LDCONFIG= yes
|
2005-08-31 21:47:54 +00:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= cnf/bin/afnix-setup
|
2009-06-18 19:49:25 +00:00
|
|
|
CONFIGURE_ARGS= -o --prefix "${PREFIX}" --altdir "${PREFIX}" \
|
|
|
|
--shrdir "${PREFIX}/share" --compiler freebsd
|
2008-07-25 12:24:09 +00:00
|
|
|
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2005-08-31 21:47:54 +00:00
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2007-04-19 12:42:27 +00:00
|
|
|
PORTDOCS= *
|
2001-04-14 11:01:23 +00:00
|
|
|
PLIST_SUB= PORTVER=${PORTVERSION:R}
|
2001-03-10 18:53:20 +00:00
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2010-04-01 07:16:55 +00:00
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not configure on powerpc
|
|
|
|
.endif
|
|
|
|
|
2005-08-31 21:47:54 +00:00
|
|
|
post-extract:
|
2013-05-04 16:55:42 +00:00
|
|
|
@cd ${WRKSRC}/cnf/mak && ${CP} -f afnix-gcc-4.mak afnix-freebsd.mak
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2005-08-31 21:47:54 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(CP)|$$(BSD_INSTALL_PROGRAM)|' \
|
|
|
|
${WRKSRC}/src/*/*/exe/Makefile
|
2006-09-20 18:24:24 +00:00
|
|
|
@${REINPLACE_CMD} -e '/\.rtf/d' ${WRKSRC}/etc/Makefile
|
2006-10-07 18:36:44 +00:00
|
|
|
@${REINPLACE_CMD} -e '/uname -r/s/\\\./[.-]/' \
|
|
|
|
${WRKSRC}/cnf/bin/afnix-guess
|
2001-04-14 11:01:23 +00:00
|
|
|
|
2007-04-21 10:07:16 +00:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} doc
|
2008-06-12 10:24:24 +00:00
|
|
|
@cd ${WRKSRC}/prj && ${SETENV} ${MAKE_ENV} ${GMAKE} doc
|
2007-04-21 10:07:16 +00:00
|
|
|
|
2007-04-19 12:42:27 +00:00
|
|
|
post-install:
|
2013-05-04 16:55:42 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
|
|
. for i in ${MAN1} ${MAN3} ${MAN7}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/bld/${PORTNAME}-doc-${PORTVERSION}/man/$i \
|
2014-01-08 18:01:25 +00:00
|
|
|
${STAGEDIR}${MANPREFIX}/man/man${i:E}/
|
2007-04-19 12:42:27 +00:00
|
|
|
. endfor
|
|
|
|
.else
|
2014-01-08 18:01:25 +00:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} DESTDIR=${STAGEDIR} ${GMAKE} publish
|
2007-04-19 12:42:27 +00:00
|
|
|
.endif
|
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|