ports/55090: Update port: lang/compaq-cc follow-up
Jeremy Tregunna
jtregunna at highspeedfx.net
Sun Aug 17 16:56:02 PDT 2003
I just now realized after rereading the porters handbook that I submitted
the update for lang/compaq-cc incorrectly, I'd like to correct the mistake
by doing it in the follow-up here.
I only updated the Makefile.
What I updated in the Makefile:
Updated port version from 2 to 3
Added a section to the do-install target to search for
${PREFIX}/usr/lib/ld.so if it doesn't exist, create a hard link from
${PREFIX}/usr/libexec/ld-elf.so.1 to ${PREFIX}/usr/lib/ld.so
And changed a section for building the files in files/ from using ccc to
cc (probable typo).
Also the package was maintainerless, and I can maintain the package, so I
marked myself as the maintainer.
Proper patch follows.
-Jeremy Tregunna
jtregunna at highspeedfx.net
-------------- next part --------------
--- compaq-cc.bak/Makefile Sun Aug 17 19:18:12 2003
+++ compaq-cc/Makefile Wed Jul 30 20:47:34 2003
@@ -2,13 +2,14 @@
# Ports collection makefile for: compaq-cc
# Date created: Thur Dec 07, 2000
# Whom: David O'Brien (obrien at NUXI.com)
+# Updated: Jeremy Tregunna (jtregunna at highspeedfx.net)
#
# $FreeBSD: ports/lang/compaq-cc/Makefile,v 1.22 2003/02/20 18:37:55 knu Exp $
#
PORTNAME= compaq-cc
PORTVERSION= 6.4.9.005.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang
MASTER_SITES= ftp://ftp.compaq.com/pub/products/C-CXX/linux/compaq_c/
DISTFILES= ccc-6.4.9.005-1.alpha.rpm libots-2.2.7-2.alpha.rpm
@@ -18,7 +19,7 @@
DISTFILES+= cpml_ev5-5.1.0-4.alpha.rpm
.endif
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= jtregunna at highspeedfx.net
COMMENT= Compaq Alpha Tru64 C compiler
RESTRICTED= "Distribution not allowed"
@@ -45,6 +46,11 @@
USE_LINUX= yes
do-install:
+# let ccc find the ELF interpreter
+ @if [ ! -f "${PREFIX}/usr/lib/ld.so" ]; then \
+ ${LN} -s ${PREFIX}/usr/libexec/ld-elf.so.1 ${PREFIX}/usr/lib/ld.so; \
+ fi
+
@if [ -z "`kldstat -v | ${GREP} -E 'linux'`" ]; then \
${ECHO} 'AlphaLinux mode is not enabled.\
Loading AlphaLinux kernel module...' | fmt; \
@@ -80,7 +86,7 @@
${RM} ${PREFIX}/usr/lib/libcpml.so
# fix unresolved references in the DECpaq libs
cd ${WRKSRC} \
- ; ccc -c ${FILESDIR}/*.c \
+ ; cc -c ${FILESDIR}/*.c \
; ar vq /usr/lib/compaq/cpml-5.1.0/libcpml_ev5.a *.o
# create /lib/ld-linux.so.2 becausing nulling it out in the (dynamic)
# compiler binary prevents it from running
More information about the freebsd-ports
mailing list