Gentoo-bug: 623840
Package-Manager: Portage-2.3.6, Repoman-2.3.2
--- /dev/null
+* Fix build with GCC 6
+* Don't hardcode libdir
+
+Gentoo-bug: 623840
+
+--- a/src.pro
++++ b/src.pro
+@@ -7,14 +7,14 @@
+ }
+
+ CONFIG += opengl warn_on release
+-INCLUDEPATH += ../include ../ $$INSTALLDIR/include
++INCLUDEPATH += ../include ..
+ CONFIG -= qt
+-LIBS += -L$$INSTALLDIR/lib -lGLEW
++LIBS += -lGLEW
+
+ DESTDIR = ../lib
+ headers.files = ../include/opencsg.h
+ headers.path = $$INSTALLDIR/include
+-target.path = $$INSTALLDIR/lib
++target.path = $$INSTALLDIR/$$LIBDIR
+ INSTALLS += target headers
+
+ HEADERS = ../include/opencsg.h \
S="${WORKDIR}/${MY_P}/src"
+PATCHES=(
+ "${FILESDIR}/${P}-includepath.patch"
+)
+
src_prepare() {
default
# removes duplicated headers
rm -r ../glew || die "failed to remove bundled glew"
-
- sed -i -e "s:^target.path.*:target.path = \$\$INSTALLDIR/$(get_libdir):" \
- src.pro \
- || die 'failed to fix target.path in src.pro'
}
src_configure() {
- eqmake5 src.pro INSTALLDIR="/usr"
+ eqmake5 src.pro INSTALLDIR="/usr" LIBDIR="$(get_libdir)"
}
src_install() {