aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/udav/udav-0.3.2.ebuild')
-rw-r--r--sci-visualization/udav/udav-0.3.2.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/sci-visualization/udav/udav-0.3.2.ebuild b/sci-visualization/udav/udav-0.3.2.ebuild
index d179b2f80..111dbd6bb 100644
--- a/sci-visualization/udav/udav-0.3.2.ebuild
+++ b/sci-visualization/udav/udav-0.3.2.ebuild
@@ -17,9 +17,23 @@ DEPEND="sci-libs/mathgl x11-libs/fltk"
RESTRICT=mirror
src_unpack() {
+ local FLTK_FLAGS,FLTK_LIBS,FLTK_H
+
unpack ${A}
cd "${S}"
+
+ FLTK_FLAGS=`fltk-config --cxxflags`
+ FLTK_LIBS=`fltk-config --use-images --ldflags`
+ FLTK_H=`echo ${FLTK_FLAGS} | sed -e 's:-I/usr/include/::'`
+ [ -n "${FLTK_H}" ] && FLTK_H="${FLTK_H}"/
+
epatch "${FILESDIR}"/${PN}-fltk.patch
+ sed -e "s:@FLTK_H@:${FLTK_H}:g" \
+ -e "s:@FLTK_LIBS@:${FLTK_LIBS}:g" \
+ -i configure.ac
+ sed -e "s:@FLTK_FLAGS@:${FLTK_FLAGS}:g" \
+ -i src/Makefile.am
+
eautoreconf
}