1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/lang/TenDRA/Makefile
Kris Kennaway aae4e4ea89 Oops, this is only actually broken (does not compile) on 3.x, so mark it
as such. Also remove an additional .orig file on deinstall, which probably
shouldn't be there at all, but this port was too big and scary to track
down where it came from.

Noticed by:	bento
2000-07-03 02:52:33 +00:00

83 lines
2.2 KiB
Makefile

# New ports collection makefile for: TenDRA
# Date created: 7 Apr 1998
# Whom: Robert Nordier <rnordier@iafrica.com>
#
# $FreeBSD$
#
PORTNAME= TenDRA
PORTVERSION= 4.1.2
CATEGORIES= lang
MASTER_SITES= ftp://alph.dera.gov.uk/pub/TenDRA/
MAINTAINER= rnordier@FreeBSD.org
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 400000
BROKEN= "Does not compile."
.endif
ONLY_FOR_ARCHS= i386
OSRELEASE!= uname -r
PLIST_SUB= OSRELEASE=${OSRELEASE}
MAN1= calculus.1 disp.1 lexi.1 pl.1 sid.1 tcc.1 tchk.1 \
tcpplus.1 tdfc2.1 tld.1 tnc.1 trans.1 tspec.1
MAN5= tccenv.5
pre-configure:
@(cd ${WRKSRC} && \
${MKDIR} bin lib man && \
${SED} -e 's:^\(BASE_DIR=\).*:\1${WRKSRC}:' \
-e 's:^\(PUBLIC_BIN=\).*:\1$${BASE_DIR}/bin:' \
-e 's:^\(INSTALL_DIR=\).*:\1$${BASE_DIR}/lib/TenDRA:' \
-e 's:^\(MAN_DIR=\).*:\1$${BASE_DIR}/man:' \
-e 's:completed:to build directory completed:' \
INSTALL >INSTALL.build && \
${CHMOD} a+x INSTALL.build && \
${CHMOD} a-x INSTALL)
do-build:
@(PATH=${WRKSRC}/bin:$$PATH && \
cd ${WRKSRC} && \
./INSTALL.build)
@${ECHO} "Bootstrapping the compiler ..."
@${RM} -fr ${WRKSRC}/work
@(PATH=${WRKSRC}/bin:$$PATH && \
cd ${WRKSRC} && \
./INSTALL.build -tcc)
pre-install:
@(cd ${WRKSRC} && \
${SED} -e 's:^\(BASE_DIR=\).*:\1${WRKSRC}:' \
-e 's:^\(PUBLIC_BIN=\).*:\1${PREFIX}/bin:' \
-e 's:^\(INSTALL_DIR=\).*:\1${PREFIX}/lib/TenDRA:' \
-e 's:^\(MAN_DIR=\).*:\1${PREFIX}/man:' \
INSTALL >INSTALL.install && \
${CHMOD} a+x INSTALL.install)
do-install:
post-install:
@${MKDIR} ${PREFIX}/lib/TenDRA
@(PATH=${WRKSRC}/bin:$$PATH && \
cd ${WRKSRC} && \
./INSTALL.install -tcc -strip)
@(cd ${PREFIX}/bin && \
${CHOWN} ${BINOWN}:${BINGRP} tcc tchk tspec && \
${CHMOD} ${BINMODE} tcc tchk tspec)
@(cd ${PREFIX} && \
${CHOWN} -R ${BINOWN}:${BINGRP} lib/TenDRA && \
find -X lib/TenDRA -type d | xargs ${CHMOD} 755 && \
${GREP} '^lib/' ${TMPPLIST} | xargs ${CHMOD} ${SHAREMODE} && \
${GREP} '/bin/' ${TMPPLIST} | xargs ${CHMOD} ${BINMODE})
@(cd ${PREFIX}/man/man1 && \
${CHOWN} ${MANOWN}:${MANGRP} ${MAN1} && \
${CHMOD} ${MANMODE} ${MAN1})
@(cd ${PREFIX}/man/man5 && \
${CHOWN} ${MANOWN}:${MANGRP} ${MAN5} && \
${CHMOD} ${MANMODE} ${MAN5})
.include <bsd.port.post.mk>