66d0618346
Submitted by: Don Yuniskis <dgy@rtd.com>
26 lines
709 B
Bash
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
|