2000-02-13 23:43:22 +00:00
|
|
|
# New ports collection makefile for: pm3-m3tk
|
|
|
|
# Date created: 11 Feb 2000
|
|
|
|
# Whom: John Polstra <jdp@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= pm3-m3tk
|
2000-09-30 23:47:18 +00:00
|
|
|
PORTVERSION= 1.1.15
|
2000-02-13 23:43:22 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
DISTFILES=
|
|
|
|
|
2005-10-10 04:58:27 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Modula-3 source code analysis and transformation toolkit (PM3 distribution)
|
2000-02-13 23:43:22 +00:00
|
|
|
|
2006-02-03 09:06:19 +00:00
|
|
|
BUILD_DEPENDS= ${L1}libm3${L2}:${PORTSDIR}/lang/pm3-base \
|
|
|
|
/nonexistent:${PORTSDIR}/lang/pm3-base:configure
|
2000-02-13 23:43:22 +00:00
|
|
|
RUN_DEPENDS= ${L1}libm3${L2}:${PORTSDIR}/lang/pm3-base
|
|
|
|
|
|
|
|
DIST_SUBDIR= pm3
|
|
|
|
INSTALL_TARGET= all
|
|
|
|
PLIST_SUB+= SOVERSION=${SOVERSION} TARGET=${TARGET} \
|
2006-10-07 11:40:19 +00:00
|
|
|
INST_TARGET=${INST_TARGET} WORDSIZE=${WORDSIZE}
|
2000-04-12 06:21:15 +00:00
|
|
|
WRKSRC= ${WRKDIRPREFIX}${.CURDIR}/../pm3-base/work/pm3-${PORTVERSION}
|
2000-02-13 23:43:22 +00:00
|
|
|
|
|
|
|
BUILDDIRS= language/modula3/m3tools/m3tk
|
|
|
|
L1= ${PREFIX}/lib/m3/${TARGET}/
|
|
|
|
SOVERSION= 7
|
2006-02-03 09:06:19 +00:00
|
|
|
USE_GMAKE= yes
|
2000-02-20 23:46:25 +00:00
|
|
|
# hack to work around bsd.port.mk problem
|
|
|
|
USE_BZIP2= yes
|
2000-02-13 23:43:22 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-01-30 10:25:34 +00:00
|
|
|
.if ${ARCH} == "i386"
|
2000-02-13 23:43:22 +00:00
|
|
|
L2= .so.${SOVERSION}
|
|
|
|
TARGET= FreeBSD4
|
2006-10-07 11:40:19 +00:00
|
|
|
INST_TARGET= freebsd-4
|
2000-02-13 23:43:22 +00:00
|
|
|
WORDSIZE= 32
|
|
|
|
.elif ${ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mieee
|
|
|
|
L2= .so.${SOVERSION}
|
|
|
|
TARGET= FBSD_ALPHA
|
2006-10-07 11:40:19 +00:00
|
|
|
INST_TARGET= fbsd-alpha
|
2000-02-13 23:43:22 +00:00
|
|
|
WORDSIZE= 64
|
|
|
|
.endif
|
|
|
|
|
2002-10-30 18:51:10 +00:00
|
|
|
.if !defined(TARGET)
|
2000-02-13 23:43:22 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO_MSG} "Cannot determine M3 target for this architecture"
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${ECHO_MSG} "This port does everything in the install step."
|
|
|
|
@${ECHO_MSG} "The build step is a no-op."
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@for i in ${BUILDDIRS}; do \
|
|
|
|
${ECHO_MSG} "Building in $${i}"; \
|
|
|
|
(ulimit -d `ulimit -Hd` && ulimit -m `ulimit -Hm` && \
|
|
|
|
cd ${WRKSRC}/$${i} && ${PREFIX}/bin/m3build && \
|
|
|
|
${PREFIX}/bin/m3ship) \
|
|
|
|
done
|
|
|
|
@${MKDIR} ${PREFIX}/share/pm3-m3tk
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/pm3-m3tk
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|