2013-09-20 21:53:09 +02:00
|
|
|
# Created by: hsu
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1995-02-08 10:41:13 +01:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= gofer
|
2001-02-08 13:47:23 +01:00
|
|
|
PORTVERSION= 2.30b
|
2010-05-30 13:54:33 +02:00
|
|
|
PORTREVISION= 1
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= lang
|
2007-07-27 23:54:30 +02:00
|
|
|
MASTER_SITES= http://web.cecs.pdx.edu/~mpj/goferarc/
|
2001-02-08 13:47:23 +01:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
|
1995-04-15 07:44:50 +02:00
|
|
|
|
2004-07-23 11:37:23 +02:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= A lazy functional language
|
1996-11-12 03:19:40 +01:00
|
|
|
|
1996-11-17 07:12:51 +01:00
|
|
|
WRKSRC= ${WRKDIR}/src
|
2004-07-23 11:37:23 +02:00
|
|
|
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DUSE_READLINE=1" \
|
|
|
|
LDFLAGS="${LDFLAGS} -lm -lreadline" OPTFLAGS=""
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/Gofer
|
1996-11-17 07:12:51 +01:00
|
|
|
LIBDIR= ${PREFIX}/lib/Gofer
|
|
|
|
MAN1= gofer.1
|
1995-02-08 10:41:13 +01:00
|
|
|
|
2013-09-20 21:53:09 +02:00
|
|
|
NO_STAGE= yes
|
2010-05-30 13:33:33 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \
|
|
|
|
${WRKDIR}/scripts/gofer \
|
|
|
|
${WRKDIR}/scripts/goferc
|
|
|
|
|
1995-04-24 13:29:30 +02:00
|
|
|
do-install:
|
2001-02-08 13:47:23 +01:00
|
|
|
@${MKDIR} ${LIBDIR}
|
1996-10-19 07:56:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/*.prelude ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/src/prelude.h ${LIBDIR}
|
2002-06-21 18:20:23 +02:00
|
|
|
${REINPLACE_CMD} -e "s|#include \"prelude.h\"|#include \"${LIBDIR}/prelude.h\"|" ${WRKDIR}/src/gofc.h
|
1996-10-19 07:56:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/src/gofc.h ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/src/runtime.o ${LIBDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/scripts/gofer ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/scripts/goferc ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/src/gofer ${LIBDIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/src/gofc ${LIBDIR}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/docs/gofer.1 ${PREFIX}/man/man1
|
2001-02-08 13:47:23 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-07-23 11:37:23 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/docs/* ${DOCSDIR}
|
2001-02-08 13:47:23 +01:00
|
|
|
.endif
|
1995-02-08 10:41:13 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|