1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/cad/acs/scripts/configure
Thomas Gellekum 66d0618346 Install examples and new site config.
Submitted by: Don Yuniskis <dgy@rtd.com>
1996-08-15 06:24:01 +00:00

26 lines
709 B
Bash

#!/bin/sh
set +vx
# fill in $PREFIX
sedpgm=`eval echo \'s,@PREFIX@,$PREFIX,g\'`
sed -e "$sedpgm" <${WRKSRC}/src/md_unix.h >/tmp/sed$$
cp /tmp/sed$$ ${WRKSRC}/src/md_unix.h
rm /tmp/sed$$
# copy sample acs.rc
cp ${FILESDIR}/acs.rc ${WRKSRC}
# write a simple Makefile to $WRKSRC
cat >${WRKSRC}/Makefile <<EOF
all:
(cd src; make freebsd)
install:
@mkdir -p ${PREFIX}/bin
@mkdir -p ${PREFIX}/share/acs/examples
(cd src/FreeBSD; install -c -s -m 755 -g bin -o bin acs ${PREFIX}/bin)
(cd doc; install -c -m 644 -g bin -o bin acs.hlp ${PREFIX}/share/acs)
install -c -m 644 -g bin -o bin acs.rc ${PREFIX}/share/acs
(cd examples; install -c -m 644 -g bin -o bin *.ckt *.doc ${PREFIX}/share/acs/examples)
EOF