summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2013-12-21 08:59:41 +0000
committerobache <obache@pkgsrc.org>2013-12-21 08:59:41 +0000
commit252e00f104ec0ed3de9282531d4a92f970d80517 (patch)
tree72607df389d351471e0dd9f477b5118f6569aec4 /x11
parentdd7cd9d933d137f3cf46cd10484cc1c22414b2f2 (diff)
downloadpkgsrc-252e00f104ec0ed3de9282531d4a92f970d80517.tar.gz
Use PKGPATH instead of PKGNAME for check current package, because later variable
may not be defined yet and broken with old bmake in netbsd5.
Diffstat (limited to 'x11')
-rw-r--r--x11/qt5-qtbase/Makefile.common10
1 files changed, 5 insertions, 5 deletions
diff --git a/x11/qt5-qtbase/Makefile.common b/x11/qt5-qtbase/Makefile.common
index 889c75b0942..0bb427fbb77 100644
--- a/x11/qt5-qtbase/Makefile.common
+++ b/x11/qt5-qtbase/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2013/12/20 02:36:10 obache Exp $
+# $NetBSD: Makefile.common,v 1.4 2013/12/21 08:59:41 obache Exp $
# used by x11/qt5-dbus/Makefile
# used by x11/qt5-mysql/Makefile
# used by x11/qt5-odbc/Makefile
@@ -176,15 +176,15 @@ no-qmake-build:
${LN} -sf ${QTPREFIX}/bin/rcc ${WRKSRC}/qtbase/bin/rcc
${LN} -sf ${QTPREFIX}/bin/uic ${WRKSRC}/qtbase/bin/uic
-.if empty(PKGNAME:Mqt5-qtbase*)
+.if empty(PKGPATH:Mx11/qt5-qtbase)
pre-configure: remove-3rdparty-libs set-qmake-conf no-qmake-build
.else
pre-configure: remove-3rdparty-libs set-qmake-conf
.endif
-.if empty(PKGNAME:Mqt5-qtbase*) && empty(PKGNAME:Mqt5-sqlite3*) \
- && empty(PKGNAME:Mqt5-mysql*) && empty(PKGNAME:Mqt5-psql*) \
- && empty(PKGNAME:Mqt5-odbc*)
+.if empty(PKGPATH:Mx11/qt5-qtbase) && empty(PKGPATH:Mx11/qt5-sqlite3) \
+ && empty(PKGPATH:Mx11/qt5-mysql) && empty(PKGPATH:Mx11/qt5-psql) \
+ && empty(PKGPATH:Mx11/Mqt5-odbc)
post-configure:
cd ${WRKSRC}/${BUILD_DIRS} && ${QTPREFIX}/bin/qmake -o Makefile
.endif