1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/www/chimera2/scripts/configure
Steve Price f1d59f5f06 Update to version 2.0a15.
PR:		98080
Submitted by:	Tom Hukins <tom@eborcom.com>
1999-03-08 21:59:11 +00:00

13 lines
588 B
Bash

#!/bin/sh
jpegdir=`ldconfig -r | grep -wF -e "-ljpeg.9" | sed -e 's#^.*=> ##' | \
sed -e 's#/lib/libjpeg\..*$##'`
pngdir=`ldconfig -r | grep -wF -e "-lpng.2" | sed -e 's#^.*=> ##' | \
sed -e 's#/lib/libpng\..*$##'`
sed -e 's#^CHIMERA_PREFIX = /usr/local$#CHIMERA_PREFIX = ${PREFIX}#' < ${WRKSRC}/Common.tmpl.dist > ${WRKSRC}/Common.tmpl.a
sed -e "s#^JPEGDIR = /usr/local#JPEGDIR = $jpegdir#" < ${WRKSRC}/Common.tmpl.a > ${WRKSRC}/Common.tmpl.b
sed -e "s#^PNGDIR = /usr/local#PNGDIR = $pngdir#" < ${WRKSRC}/Common.tmpl.b > ${WRKSRC}/Common.tmpl
ln -s ${WRKSRC}/chimera ${WRKSRC}/main