head	1.6;
access;
symbols
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.5
	RELEASE_4_1_1:1.5
	RELEASE_4_1_0:1.5
	RELEASE_3_5_0:1.5
	RELEASE_4_0_0:1.5
	RELEASE_3_4_0:1.5
	RELEASE_3_3_0:1.5
	RELEASE_3_2_0:1.4
	RELEASE_3_1_0:1.4
	RELEASE_2_2_8:1.4
	RELEASE_3_0_0:1.4
	RELEASE_2_2_7:1.3
	RELEASE_2_2_6:1.1.1.1
	RELEASE_2_2_5:1.1.1.1
	RELEASE_2_2_1:1.1.1.1
	RELEASE_2_2_2:1.1.1.1
	jdp_1_0:1.1.1.1
	JDP:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2001.07.21.23.41.45;	author jdp;	state dead;
branches;
next	1.5;

1.5
date	99.08.30.12.01.10;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	98.09.18.01.02.04;	author jdp;	state Exp;
branches;
next	1.3;

1.3
date	98.06.02.23.22.23;	author jdp;	state Exp;
branches;
next	1.2;

1.2
date	98.05.29.17.58.09;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	96.10.29.23.01.55;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.10.29.23.01.55;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Remove the old modula-3 and modula-3-lib ports.  They are superseded
by the pm3-* family of ports, which build a newer and better-maintained
version of Modula-3.  I have converted all ports which depended on
modula-3 to use pm3-* instead.

PR:		ports/27664 is rendered irrelevant
@
text
@#! /bin/sh
#
# $FreeBSD: ports/lang/modula-3-lib/scripts/configure,v 1.5 1999/08/30 12:01:10 peter Exp $

umask 022

temp_prefix=${WRKSRC}/installed
plist_src=${PKGDIR}/${PLIST##*/}
template_src=${FILESDIR}/FreeBSD2.${PORTOBJFORMAT}
template="${WRKSRC}/m3/m3build/templates/FreeBSD2"

if [ "${PORTOBJFORMAT}" = aout -a -f /usr/lib/aout/crt0.o ]; then
    crt0=/usr/lib/aout/crt0.o
else
    crt0=/usr/lib/crt0.o
fi
if [ "${PORTOBJFORMAT}" = aout -a -f /usr/lib/aout/libgcc.a ]; then
    libgcc=/usr/lib/aout/libgcc.a
else
    libgcc=/usr/lib/libgcc.a
fi

# Copy the appropriate m3build template file into place, patching up
# various pathnames in the process.
rm -f ${template}
sed -e "s|/usr/local/|${temp_prefix}/|g" \
    -e "s|!PREFIX!|${PREFIX}|g" \
    -e "s|/usr/lib/crt0\.o|${crt0}|g" \
    -e "s|/usr/lib/libgcc\.a|${libgcc}|g" \
    ${template_src} >${template}

# Our PLIST templates contain only the "libfoo.so" names for shared
# libraries.  Here we add the "libfoo.so.${MAJOR}" names.  This saves
# us from having to fix the PLIST every time we bump the version number.
sed -e "/\.so\$/p" \
    -e "s/\.so\$/&.${MAJOR}/" \
    ${plist_src} > ${PLIST}

# Also generate a "PLIST.real" file which includes the minor version
# numbers on shared library names if the object format is a.out.
if [ "${PORTOBJFORMAT}" = aout ]; then
    sed -e "s/\.so\.${MAJOR}\$/&.0/" ${PLIST} > ${PLIST}.real
else
    cp ${PLIST} ${PLIST}.real
fi
@


1.5
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.4
log
@Make these ports work on ELF systems.
@
text
@d3 1
a3 1
# $Id: configure,v 1.3 1998/06/02 23:22:23 jdp Exp $
@


1.3
log
@Fix a hard coded path to libgcc which quit working when the
libraries moved into "/usr/lib/aout".
@
text
@d3 1
a3 1
# $Id: configure,v 1.2 1998/05/29 17:58:09 jdp Exp $
a6 2
files_to_patch="\
    ${WRKSRC}/m3/m3build/templates/FreeBSD2"
d8 3
d12 2
a13 4
if [ -f /usr/lib/crt0.o ]; then
    crt=/usr/lib/crt0.o
elif [ -f /usr/lib/aout/crt0.o ]; then
    crt=/usr/lib/aout/crt0.o
d15 1
a15 2
    echo "Cannot find a \"crt0.o\" file" >&2
    exit 1
d17 1
a17 4

if [ -f /usr/lib/libgcc.a ]; then
    libgcc=/usr/lib/libgcc.a
elif [ -f /usr/lib/aout/libgcc.a ]; then
d20 1
a20 2
    echo "Cannot find a \"libgcc.a\" file" >&2
    exit 1
d23 23
a45 8
for i in ${files_to_patch}; do
    test -f ${i}.bak || cp -p ${i} ${i}.bak
    rm -f ${i}
    sed -e "s|/usr/local/|${temp_prefix}/|g" \
	-e "s|/usr/lib/crt0\.o|${crt}|g" \
	-e "s|/usr/lib/libgcc\.a|${libgcc}|g" \
	${i}.bak >${i}
done
@


1.2
log
@Fix this port to work whether crt0.o is in /usr/lib or /usr/lib/aout.
@
text
@d3 1
a3 1
# $Id: configure,v 1.1.1.1 1996/10/29 23:01:55 jdp Exp $
d20 9
d34 1
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
# $Id: configure,v 1.2 1996/09/10 05:25:09 jdp Exp $
d11 9
d23 3
a25 1
    sed -e "s|/usr/local/|${temp_prefix}/|g" ${i}.bak >${i}
@


1.1.1.1
log
@Split the Modula-3 port into two pieces, creating a new port
"modula-3-lib".  It installs only the shared libraries needed for
executing Modula-3 programs.  This saves a lot of disk space for
people who need to run Modula-3 programs but don't need to build
them.  The original "modula-3" port now depends on this one, and
uses it to install the compiler and the rest of the development
system.

Also, everything is now built with optimization.  I have been
testing this for at least a month, and haven't seen any problems
from it.  It makes the libraries and executables substantially
smaller.

This new port also includes some hooks that will make SOCKS support
possible in the near future.
@
text
@@
