mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
f1d59f5f06
PR: 98080 Submitted by: Tom Hukins <tom@eborcom.com>
13 lines
588 B
Bash
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
|