1996-07-28 04:44:11 +02:00
|
|
|
# New ports collection makefile for: moscow-ml
|
1998-08-02 19:38:24 +02:00
|
|
|
# Date created: 2 August 1998
|
1996-07-28 04:44:11 +02:00
|
|
|
# Whom: chuckr
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1996-07-28 04:44:11 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= moscow_ml
|
2005-02-26 07:41:44 +01:00
|
|
|
PORTVERSION= 2.01
|
2009-05-13 11:46:02 +02:00
|
|
|
PORTREVISION= 3
|
1996-11-12 03:19:40 +01:00
|
|
|
CATEGORIES= lang
|
2005-02-26 07:41:44 +01:00
|
|
|
MASTER_SITES= http://www.dina.kvl.dk/~sestoft/mosml/
|
|
|
|
DISTNAME= mos201src
|
1996-07-30 00:33:14 +02:00
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Moscow ML, a lightweight implementation of Standard ML
|
1996-07-30 00:33:14 +02:00
|
|
|
|
2009-05-13 11:46:02 +02:00
|
|
|
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4 \
|
2005-11-03 14:12:44 +01:00
|
|
|
gdbm.3:${PORTSDIR}/databases/gdbm
|
2002-12-19 08:15:35 +01:00
|
|
|
|
2005-02-26 07:41:44 +01:00
|
|
|
RESTRICTED= Restrictions on for-profit distribution.
|
|
|
|
|
2005-11-03 13:37:26 +01:00
|
|
|
SUB_FILES= pkg-message
|
2006-07-30 22:51:59 +02:00
|
|
|
ALL_TARGET= world MOSMLHOME=${MOSMLHOME}
|
|
|
|
INSTALL_TARGET= install MOSMLHOME=${MOSMLHOME}
|
1996-07-28 04:44:11 +02:00
|
|
|
WRKSRC= ${WRKDIR}/mosml/src
|
2002-11-04 02:48:34 +01:00
|
|
|
USE_PERL5= yes
|
2005-11-03 13:37:26 +01:00
|
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" DOCSDIR="${DOCSDIR}" \
|
|
|
|
LD_RUN_PATH="${PREFIX}/lib/mosml"
|
2005-02-26 07:41:44 +01:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkgmessage
|
1996-07-28 04:44:11 +02:00
|
|
|
|
2007-05-27 05:03:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-06-15 15:33:28 +02:00
|
|
|
post-patch:
|
|
|
|
${FIND} ${WRKSRC} -name Makefile | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e "s,-O2,${CFLAGS} -I${LOCALBASE}/include,"
|
2005-02-26 07:41:44 +01:00
|
|
|
${FIND} ${WRKDIR}/mosml/examples -name Makefile -o \
|
|
|
|
-name Makefile.stub | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e "s,^MOSMLHOME=.*,,"
|
|
|
|
${FIND} ${WRKDIR}/mosml/examples -name Makefile -o \
|
|
|
|
-name Makefile.stub | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
"s,^MOSMLTOOLS=.*,MOSMLTOOLS=camlrunm ${PREFIX}/libexec/mosml,"
|
|
|
|
${MKDIR} ${WRKDIR}/mosml/examples/ffi
|
|
|
|
${LN} -s ${WRKSRC}/dynlibs/crypt ${WRKDIR}/mosml/examples/ffi
|
|
|
|
${LN} -s ${WRKSRC}/dynlibs/interface ${WRKDIR}/mosml/examples/ffi
|
|
|
|
${REINPLACE_CMD} -e "s,/usr/local,${PREFIX}," \
|
|
|
|
${WRKSRC}/dynlibs/crypt/Makefile \
|
|
|
|
${WRKSRC}/dynlibs/interface/Makefile
|
2003-06-05 00:43:38 +02:00
|
|
|
|
1996-07-28 04:44:11 +02:00
|
|
|
post-install:
|
2005-02-26 07:41:44 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/mosml/copyrght/copyrght.att ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mosml/copyrght/copyrght.cl ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mosml/copyrght/gpl2 ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mosml/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PKGMESSAGE} ${DOCSDIR}/README.FreeBSD
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} "${DOCSDIR}"
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/mosml/tools/Makefile.stub ${EXAMPLESDIR}
|
|
|
|
cd ${WRKDIR}/mosml/examples && \
|
|
|
|
${TAR} -cf - --dereference \
|
|
|
|
--exclude=\*.orig --exclude=\*.bak --exclude=\*.w32 * | \
|
|
|
|
${TAR} -xf - -C "${EXAMPLESDIR}"
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} "${EXAMPLESDIR}"
|
2006-07-30 22:51:59 +02:00
|
|
|
@${FIND} ${EXAMPLESDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
|
2005-02-26 07:41:44 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1996-07-28 04:44:11 +02:00
|
|
|
|
2007-05-27 05:03:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|