1996-12-27 11:09:49 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: lcc
|
2000-02-13 03:25:05 +00:00
|
|
|
# Date created: Sat Dec 7, 1996
|
|
|
|
# Whom: David O'Brien (obrien@cs.ucdavis.edu)
|
1996-12-27 11:09:49 +00:00
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1996-12-27 11:09:49 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= lcc
|
|
|
|
PORTVERSION= 3.6
|
1996-12-27 11:09:49 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://ftp.cs.princeton.edu/pub/packages/lcc/
|
|
|
|
|
2000-02-13 03:25:05 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1996-12-27 11:09:49 +00:00
|
|
|
#origial [and extensive] patches by Soren Schmidt / sos@freebsd.org
|
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
MAKE_FLAGS= BUILDDIR=${LCCBUILDDIR} HOSTFILE=etc/${OPSYS}.c -f
|
|
|
|
MAN1= bprint.1 lcc.1
|
|
|
|
|
|
|
|
UNAME_M!= uname -m
|
|
|
|
LCCBUILDDIR= ${WRKDIR}/${UNAME_M}-${OPSYS}
|
|
|
|
LCCDESTDIR= lib/${DISTNAME}/${UNAME_M}-${OPSYS}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${MKDIR} ${LCCBUILDDIR}
|
|
|
|
@${CP} ${FILESDIR}/${OPSYS}.md ${WRKSRC}/src
|
1999-08-28 02:17:34 +00:00
|
|
|
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
|
1996-12-27 11:09:49 +00:00
|
|
|
-e "s:%%LCCDESTDIR%%:${LCCDESTDIR}:g" \
|
|
|
|
-e "s:%%VERSION%%:${DISTNAME}:g" \
|
|
|
|
${FILESDIR}/${OPSYS}.c.in > ${WRKSRC}/etc/${OPSYS}.c
|
1996-12-31 15:08:23 +00:00
|
|
|
@# below can be used to patchup PLIST file for diff os/arch
|
1999-08-28 02:17:34 +00:00
|
|
|
@#${SED} -e "s:%%LCCDESTDIR%%:${LCCDESTDIR}:g" \
|
1996-12-31 15:08:23 +00:00
|
|
|
#${PKGDIR}/PLIST.in > ${PKGDIR}/PLIST
|
1999-08-28 02:17:34 +00:00
|
|
|
@${SED} -e "s:%%OPSYS%%:${OPSYS}:g" \
|
1996-12-27 11:09:49 +00:00
|
|
|
${WRKSRC}/makefile > ${WRKSRC}/makefile.configured
|
1999-08-28 02:42:41 +00:00
|
|
|
@${MV} -f ${WRKSRC}/makefile.configured ${WRKSRC}/makefile
|
1996-12-27 11:09:49 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(umask 022 ; ${MKDIR} ${PREFIX}/${LCCDESTDIR})
|
|
|
|
@${INSTALL_PROGRAM} ${LCCBUILDDIR}/lcc \
|
|
|
|
${LCCBUILDDIR}/rcc \
|
|
|
|
${LCCBUILDDIR}/cpp \
|
|
|
|
${LCCBUILDDIR}/bprint \
|
|
|
|
${LCCBUILDDIR}/bbexit.o \
|
|
|
|
${PREFIX}/${LCCDESTDIR}
|
1999-08-28 01:58:05 +00:00
|
|
|
@${LN} -sf ${PREFIX}/${LCCDESTDIR}/lcc ${PREFIX}/bin
|
|
|
|
@${LN} -sf ${PREFIX}/${LCCDESTDIR}/bprint ${PREFIX}/bin
|
1996-12-27 11:09:49 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/lcc.1 ${WRKSRC}/doc/bprint.1 \
|
|
|
|
${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|