aboutsummaryrefslogtreecommitdiffstats
path: root/lang/TenDRA/Makefile
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-06-03 16:16:58 +0800
committerarved <arved@FreeBSD.org>2003-06-03 16:16:58 +0800
commit86e84d62b8801df66a646e4894c41785e94ac2ba (patch)
tree005160870d59d12a186163c02140ede3cda583a8 /lang/TenDRA/Makefile
parentfa6db56ffe944ce93058599ec41171149c244364 (diff)
downloadfreebsd-ports-gnome-86e84d62b8801df66a646e4894c41785e94ac2ba.tar.gz
freebsd-ports-gnome-86e84d62b8801df66a646e4894c41785e94ac2ba.tar.zst
freebsd-ports-gnome-86e84d62b8801df66a646e4894c41785e94ac2ba.zip
- Update to CVS snapshot 20030526, which fixes the build problems on 5.x
- Give maintainership to submitter "Unfortunately FreeBSD 5.x uses the GNU C extension __attribute__((__aligned__(x))) in a couple of system headers (<machine/npx.h>, <machine/signal.h> and <machine/ucontext.h> for i386). To avoid a syntax error __aligned(x) is removed by a #define, but programs that use struct sigcontext, struct savexmm or mcontext_t probably won't work." PR: 52619 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Diffstat (limited to 'lang/TenDRA/Makefile')
-rw-r--r--lang/TenDRA/Makefile84
1 files changed, 20 insertions, 64 deletions
diff --git a/lang/TenDRA/Makefile b/lang/TenDRA/Makefile
index 0d6aa8aece0c..d939d6f28eb7 100644
--- a/lang/TenDRA/Makefile
+++ b/lang/TenDRA/Makefile
@@ -7,81 +7,37 @@
#
PORTNAME= TenDRA
-PORTVERSION= 4.1.2
+PORTVERSION= 4.20030526
CATEGORIES= lang
-MASTER_SITES= ftp://alph.dera.gov.uk/pub/TenDRA/ \
- ftp://ftp.uni-trier.de/pub/languages/c/implementation/TenDRA/ \
- ftp://ftp.fh-wiesbaden.de/pub/Languages/C/TenDRA/ \
- ftp://ftp.mayn.de/pub/unix/devel/compiler/tendra/
+MASTER_SITES= ftp://ftp.tendra.org/pub/snapshot/
+DISTNAME= ${PORTNAME:L}-${PORTVERSION:S/4.//}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= stefan@fafoe.dyndns.org
COMMENT= A portable but mostly-unsupported C/C++ compiler
-.include <bsd.port.pre.mk>
+ONLY_FOR_ARCHS= i386
-.if ${OSVERSION} > 500000
-BROKEN= "Does not build"
-.endif
+WRKSRC= ${WRKDIR}/${PORTNAME:L}
+USE_BZIP2= yes
+USE_PERL5_BUILD= yes
+ALL_TARGET= # nada
-ONLY_FOR_ARCHS= i386
-OSRELEASE!= uname -r
-PLIST_SUB= OSRELEASE=${OSRELEASE}
+TENDRA_OSREL!= uname -r
+TENDRA_ARCH= 80x86
+TENDRA_VER= 5.0.0
+TENDRA_PATH= ${TENDRA_VER}/FreeBSD/${TENDRA_OSREL}/${TENDRA_ARCH}
+PLIST_SUB+= TENDRA_VER=${TENDRA_VER} TENDRA_OSREL=${TENDRA_OSREL} \
+ TENDRA_PATH=${TENDRA_PATH}
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:
+do-configure:
+ cd ${WRKSRC} && make PREFIX=${PREFIX} freebsd
+# Remove empty directory that is ugly to handle with pkg-plist
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})
+ rmdir ${PREFIX}/lib/TenDRA/${TENDRA_PATH}/lib/machines/tokens
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>