2000-07-09 23:37:42 -04:00
|
|
|
# New ports collection makefile for: mozart
|
|
|
|
# Date created: 23. June 2000
|
|
|
|
# Whom: Mathias Picker <mathiasp@virtual-earth.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
PORTNAME= mozart
|
2004-04-18 15:29:01 -04:00
|
|
|
PORTVERSION= 1.3.0.20040413
|
2002-11-24 08:41:11 -05:00
|
|
|
CATEGORIES= lang tk83 parallel
|
2004-04-18 15:29:01 -04:00
|
|
|
MASTER_SITES= http://www.mozart-oz.org/download/mozart-ftp/store/1.3.0-2004-04-15/
|
2004-04-11 18:51:49 -04:00
|
|
|
DISTFILES= ${DISTNAME}-src.tar.gz
|
2001-02-08 11:10:58 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
DISTFILES+= ${MOZART_DOCS}
|
|
|
|
.endif
|
2000-07-09 23:37:42 -04:00
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
MAINTAINER= mathiasp@virtual-earth.de
|
2003-02-21 07:35:09 -05:00
|
|
|
COMMENT= A distributed language with constraint-based inference
|
2000-07-09 23:37:42 -04:00
|
|
|
|
2004-03-21 02:39:49 -05:00
|
|
|
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs \
|
2003-10-04 20:12:58 -04:00
|
|
|
${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/libgmp4
|
2003-01-03 03:26:35 -05:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
|
2003-10-04 20:12:58 -04:00
|
|
|
gmp.6:${PORTSDIR}/math/libgmp4 \
|
2001-09-08 15:11:58 -04:00
|
|
|
tk83.1:${PORTSDIR}/x11-toolkits/tk83
|
2000-07-09 23:37:42 -04:00
|
|
|
|
2001-05-28 10:55:21 -04:00
|
|
|
MOZART_DOCS= mozart-${PORTVERSION}-doc.tar.gz
|
2001-02-08 11:10:58 -05:00
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
SCRIPTS_ENV= LN=${LN} PERL=${PERL}
|
2000-07-09 23:37:42 -04:00
|
|
|
ALL_TARGET=
|
2001-01-16 12:33:20 -05:00
|
|
|
MAKE_ARGS= PREFIX=${PREFIX}/lib/oz
|
|
|
|
USE_BISON= yes
|
|
|
|
USE_GMAKE= yes
|
2000-07-09 23:37:42 -04:00
|
|
|
HAS_CONFIGURE= yes
|
2001-01-16 12:33:20 -05:00
|
|
|
USE_XLIB= yes
|
2004-03-11 21:48:25 -05:00
|
|
|
USE_AUTOCONF_VER= 213
|
2000-07-09 23:37:42 -04:00
|
|
|
# magic wand: set INSTALL to some absurd value, or else
|
|
|
|
# mozart's configure will not find the right install
|
|
|
|
# when configuring as root.
|
|
|
|
CONFIGURE_ENV= INSTALL=${CHMOD}
|
2002-07-18 17:13:19 -04:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}/lib/oz --disable-doc \
|
2003-10-04 20:12:58 -04:00
|
|
|
--with-inc-dir=${LOCALBASE}/include/tcl8.3,${LOCALBASE}/include/tk8.3,${LOCALBASE}/include \
|
2001-01-16 12:33:20 -05:00
|
|
|
--with-lib-dir=${LOCALBASE}/lib --with-tcl-lib=${LOCALBASE}/lib \
|
2001-09-08 15:11:58 -04:00
|
|
|
--with-tk-lib=${LOCALBASE}/lib \
|
|
|
|
--with-tkinclude=${LOCALBASE}/include/tk8.3
|
2000-07-09 23:37:42 -04:00
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-09-18 21:23:11 -04:00
|
|
|
.if ${OSVERSION} >= 502126
|
|
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.if ${ARCH} != "i386"
|
|
|
|
BROKEN= "Does not compile on !i386"
|
|
|
|
.endif
|
|
|
|
|
2000-07-09 23:37:42 -04:00
|
|
|
pre-extract:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} -----------------------------------------------------
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} If you have problems building mozart,
|
|
|
|
@${ECHO} deinstall any old version of mozart
|
|
|
|
@${ECHO} and unset OZHOME
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} ----------------------------------------------------
|
|
|
|
@${ECHO}
|
|
|
|
|
2004-06-04 13:29:38 -04:00
|
|
|
pre-configure:
|
2002-11-27 10:01:40 -05:00
|
|
|
cd ${WRKSRC}/platform/emulator \
|
|
|
|
&& ${AUTOCONF} ${AUTOCONF_ARGS} -l ${WRKSRC}
|
|
|
|
cd ${WRKSRC}/platform/tools/gump/ozflex \
|
|
|
|
&& ${AUTOCONF} ${AUTOCONF_ARGS} -l ${WRKSRC}
|
2002-07-18 17:13:19 -04:00
|
|
|
|
2000-07-09 23:37:42 -04:00
|
|
|
post-install:
|
2001-02-08 11:10:58 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-05-28 10:55:21 -04:00
|
|
|
@${TAR} --unlink -xzpf ${DISTDIR}/${MOZART_DOCS} \
|
2001-02-08 11:10:58 -05:00
|
|
|
-C ${PREFIX}/lib/oz
|
2001-05-28 10:55:21 -04:00
|
|
|
@${RM} -rf ${PREFIX}/lib/oz/doc
|
|
|
|
@${MV} ${PREFIX}/lib/oz/mozart/doc ${PREFIX}/lib/oz
|
2002-08-16 11:08:42 -04:00
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/oz/doc
|
|
|
|
@${FIND} ${PREFIX}/lib/oz -type d -print0 \
|
|
|
|
| ${XARGS} -0 ${CHMOD} 755
|
|
|
|
@${FIND} ${PREFIX}/lib/oz/doc -type f -print0 \
|
|
|
|
| ${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
2001-05-28 10:55:21 -04:00
|
|
|
@${RM} -rf ${PREFIX}/lib/oz/mozart
|
2001-02-08 11:10:58 -05:00
|
|
|
.endif
|
2004-01-22 06:06:02 -05:00
|
|
|
@cd ${PREFIX} ; ${FIND} lib/oz -type f -o -type l | ${SORT} \
|
2001-05-28 10:55:21 -04:00
|
|
|
> ${WRKDIR}/PLIST.lib-oz
|
2004-01-22 06:06:02 -05:00
|
|
|
@cd ${PREFIX} ; ${FIND} lib/oz -type d | ${SORT} -r \
|
2001-05-28 10:55:21 -04:00
|
|
|
| ${SED} -e 's/^/@dirrm /g' \
|
|
|
|
>> ${WRKDIR}/PLIST.lib-oz
|
2002-01-29 06:24:09 -05:00
|
|
|
@${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
|
|
|
|
@${ECHO_CMD} "/Insert PLIST.lib-oz" >> ${WRKDIR}/ex.script
|
|
|
|
@${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
|
|
|
|
@${ECHO_CMD} "r ${WRKDIR}/PLIST.lib-oz" >> ${WRKDIR}/ex.script
|
|
|
|
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
|
2001-05-28 10:55:21 -04:00
|
|
|
@${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-lib-oz
|
|
|
|
@cd ${WRKDIR} ; ex < ex.script
|
2001-02-08 11:10:58 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-07-09 23:37:42 -04:00
|
|
|
|
2004-02-26 04:33:38 -05:00
|
|
|
.include <bsd.port.post.mk>
|