1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/lang/afnix/Makefile
Johan van Selst 43204e4ee3 - Fix build on FreeBSD 4.x
Reported by:	krismail
2006-10-07 18:36:44 +00:00

49 lines
1.3 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: aleph
# Date created: Mar 7, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= afnix
PORTVERSION= 1.3.0
CATEGORIES= lang
MASTER_SITES= http://www.afnix.org/ftp/%SUBDIR%/ \
ftp://ftp.stack.nl/pub/users/johans/afnix/
MASTER_SITE_SUBDIR= ${PORTNAME}-${PORTVERSION:S,.,-,g}
DISTNAME= ${PORTNAME}-src-${PORTVERSION:S,.,-,g}
EXTRACT_SUFX= .tgz
MAINTAINER= johans@stack.nl
COMMENT= A multi-threaded functional programming language
USE_GMAKE= yes
USE_LDCONFIG= yes
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}"
INSTALLS_SHLIB= yes
PLIST_SUB= PORTVER=${PORTVERSION:R}
MAN1= axc.1 axd.1 axi.1 axl.1 axs.1
.include <bsd.port.pre.mk>
post-extract:
@cd ${WRKSRC}/cnf/mak && ${CP} -f afnix-gcc-3.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 '/^MANDIR/s/SHRDIR/MANPREFIX/' \
${WRKSRC}/cnf/mak/afnix-defs.mak
@${REINPLACE_CMD} -e '/uname -r/s/\\\./[.-]/' \
${WRKSRC}/cnf/bin/afnix-guess
.include <bsd.port.post.mk>