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

26 lines
709 B
Plaintext
Raw Normal View History

#!/bin/sh
1996-04-18 08:47:18 +00:00
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