sci-chemistry/wxmacmolplt: respect PKG_CONFIG

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-04-19 07:52:11 +01:00
parent c875a88601
commit 4e96de47de
2 changed files with 6 additions and 5 deletions

View File

@@ -1,12 +1,11 @@
diff -urN wxmacmolplt-7.4.2.orig/configure.ac wxmacmolplt-7.4.2/configure.ac
--- wxmacmolplt-7.4.2.orig/configure.ac 2010-12-05 02:48:29.000000000 +0300
+++ wxmacmolplt-7.4.2/configure.ac 2010-12-06 19:30:24.000000000 +0300
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,7 @@
;;
*)
HOST=LINUX
- LIBGL="-lGL -lGLU"
+ LIBGL=`pkg-config --libs glu glew`
+ LIBGL=`${PKG_CONFIG} --libs glu glew`
;;
esac
AM_CONDITIONAL(HOST_IS_MSW, [test "x$HOST" == xMSW])

View File

@@ -4,7 +4,7 @@
EAPI=7
WX_GTK_VER=3.0
inherit autotools desktop wxwidgets
inherit autotools desktop toolchain-funcs wxwidgets
DESCRIPTION="Chemical 3D graphics program with GAMESS input builder"
HOMEPAGE="http://www.scl.ameslab.gov/MacMolPlt/"
@@ -32,6 +32,8 @@ src_prepare() {
}
src_configure() {
tc-export PKG_CONFIG
setup-wxwidgets unicode
econf \
--with-glew \