2001-03-06 17:50:10 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: aleph
|
|
|
|
# Date created: Mar 7, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
PORTNAME= afnix
|
2008-01-06 18:27:22 +00:00
|
|
|
PORTVERSION= 1.6.0
|
2008-06-12 10:24:24 +00:00
|
|
|
PORTREVISION= 2
|
2001-03-06 17:50:10 +00:00
|
|
|
CATEGORIES= lang
|
2005-09-14 05:53:10 +00:00
|
|
|
MASTER_SITES= http://www.afnix.org/ftp/%SUBDIR%/ \
|
|
|
|
ftp://ftp.stack.nl/pub/users/johans/afnix/
|
2007-04-21 10:07:16 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}-${AFNIX_VERSION}
|
|
|
|
DISTNAME= ${PORTNAME}-src-${AFNIX_VERSION}
|
2005-02-19 19:54:55 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
MAINTAINER= johans@stack.nl
|
2003-12-11 14:37:30 +00:00
|
|
|
COMMENT= A multi-threaded functional programming language
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2001-04-14 11:01:23 +00:00
|
|
|
USE_GMAKE= yes
|
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
|
|
|
|
CONFIGURE_ARGS= -o --prefix "${PREFIX}" --compiler freebsd
|
|
|
|
MAKE_ENV= CXX="${CXX}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2007-04-19 12:42:27 +00:00
|
|
|
PORTDOCS= *
|
2007-04-21 10:07:16 +00:00
|
|
|
AFNIX_VERSION= ${PORTVERSION:S,.,-,g}
|
2001-04-14 11:01:23 +00:00
|
|
|
PLIST_SUB= PORTVER=${PORTVERSION:R}
|
2001-03-10 18:53:20 +00:00
|
|
|
|
2008-06-12 10:24:24 +00:00
|
|
|
MAN1= adp::afnix.1 amd::afnix.1 axc::afnix.1 axd::afnix.1 \
|
2007-04-19 12:42:27 +00:00
|
|
|
axi::afnix.1 axl::afnix.1 axs::afnix.1
|
|
|
|
MAN3= gfx::afnix.3 net::afnix.3 nwg::afnix.3 pim::afnix.3 \
|
|
|
|
sio::afnix.3 sps::afnix.3 sys::afnix.3 txt::afnix.3 xml::afnix.3
|
|
|
|
MAN4= wax::afnix.4 xpe::afnix.4
|
|
|
|
MAN7= eul::afnix.7 vol-0::afnix.7 vol-1::afnix.7 vol-2::afnix.7
|
2005-02-19 19:54:55 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2001-03-06 17:50:10 +00:00
|
|
|
|
2005-08-31 21:47:54 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC}/cnf/mak && ${CP} -f afnix-gcc-3.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
|
|
|
|
@${REINPLACE_CMD} -e '/^MANDIR/s/SHRDIR/MANPREFIX/' \
|
|
|
|
${WRKSRC}/cnf/mak/afnix-defs.mak
|
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:
|
|
|
|
.ifdef NOPORTDOCS
|
|
|
|
. for i in ${MAN1} ${MAN3} ${MAN4} ${MAN7}
|
2007-04-21 10:07:16 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/bld/${PORTNAME}-doc-${AFNIX_VERSION}/man/$i \
|
2007-04-19 12:42:27 +00:00
|
|
|
${MANPREFIX}/man/man${i:E}/
|
|
|
|
. endfor
|
|
|
|
.else
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} instdoc
|
|
|
|
.endif
|
|
|
|
|
2005-02-19 19:54:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|