summaryrefslogtreecommitdiff
path: root/lang/ezm3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ezm3/Makefile')
-rw-r--r--lang/ezm3/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/lang/ezm3/Makefile b/lang/ezm3/Makefile
new file mode 100644
index 00000000000..81f432aa275
--- /dev/null
+++ b/lang/ezm3/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/05 23:54:18 xtraeme Exp $
+
+DISTNAME= ezm3-1.1
+CATEGORIES= lang
+MASTER_SITES= ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CVSup/ezm3/
+DISTFILES= ${DISTNAME}-src.tar.bz2 ${BOOTSTRAP}
+
+MAINTAINER= motoyuki@bsdclub.org
+HOMEPAGE= http://www.polstra.com/projects/freeware/ezm3/
+COMMENT= Easier, more portable Modula-3 distribution for building CVSup
+
+DIST_SUBDIR= ezm3
+USE_GMAKE= yes
+USE_X11= yes
+
+INSTALL_TARGET= all
+MAKE_ARGS+= M3OPTIONS="-DBUILD_ALL -DSHIP_ALL"
+PLIST_SUBST+= TARGET=${TARGET} TARGETDIR=${TARGETDIR}
+PLIST_SUBST+= WORDSIZE=${WORDSIZE}
+
+# XXX CFLAGS has to be empty, because if it's not, the build
+# XXX process will fail.
+
+.include "../../mk/bsd.prefs.mk"
+CFLAGS:=
+EZM3ROOT= ${PREFIX}/ezm3
+
+ONLY_FOR_PLATFORM= FreeBSD-*-i386 NetBSD-*-i386
+
+.if ${OPSYS} == "FreeBSD"
+BOOTSTRAP= ${DISTNAME}-FreeBSD4-boot.tar.bz2
+TARGET= FreeBSD4
+TARGETDIR= freebsd-1
+.elif ${OPSYS} == "NetBSD"
+BOOTSTRAP= ${DISTNAME}-NetBSDi386-boot.tar.bz2
+TARGET= NetBSDi386
+TARGETDIR= netbsd-1
+.endif
+
+do-configure:
+ cd ${WRKSRC}/m3config/src && \
+ ${MV} -f ${TARGET} ${TARGET}.bak && \
+ ${SED} -e "/^INSTALL_ROOT = /s|\".*\"|\"${EZM3ROOT}\"|" \
+ -e "/^X11ROOT = /s|\".*\"|\"${X11BASE}/lib\"|" \
+ ${TARGET}.bak > ${TARGET}
+
+do-build:
+ ${RM} -rf ${WRKSRC}/${TARGET}
+ cd ${WRKSRC} && ${SU_CMD} '${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
+ ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}'
+
+do-install:
+ for i in ${PROGS}; do strip ${EZM3ROOT}/$$i; done
+
+.include "../../mk/bsd.pkg.mk"