diff options
author | marino <marino@pkgsrc.org> | 2014-05-13 07:48:29 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2014-05-13 07:48:29 +0000 |
commit | b9710c9ddea3142357834fb61566087cdc3c8b8d (patch) | |
tree | 982828259675aa2bcfbc487c231c463e1e0a3ffd /x11/gtkada | |
parent | f5fc7a31f9cdc8d932fcd12f958018df6271e5ac (diff) | |
download | pkgsrc-b9710c9ddea3142357834fb61566087cdc3c8b8d.tar.gz |
x11/gtkada: Add post-wrapper hack to work around bad gtk2 pkgconfig file
The GTK2 configure script searches in vain for libgmodule. Since it does
not find it, gmodule-2.0 is not added to the gtk+*-2.0 pkgconfig files.
Since gcc-aux now uses the gold linker which requires explicit linking by
default, gtkada fails to link due to use of gmodule-2.0 symbols within
other libraries.
The true fix needs to happen at the gtk2 package. A post-wrapper hack has
been added to gtkada to locally append the gtk2 pkgconfig file which
allows building to complete.
This hack should be removed when gtk2's gtk+-2.0.pc file has been fixed.
Diffstat (limited to 'x11/gtkada')
-rw-r--r-- | x11/gtkada/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/x11/gtkada/Makefile b/x11/gtkada/Makefile index a8d984d7b9a..c4002fd4bfc 100644 --- a/x11/gtkada/Makefile +++ b/x11/gtkada/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2014/05/05 00:48:30 ryoon Exp $ +# $NetBSD: Makefile,v 1.26 2014/05/13 07:48:29 marino Exp $ # DISTNAME= gtkada-${GTKADA_VERSION} @@ -38,6 +38,15 @@ SUBST_SED.lgnat= -e 's|-largs|-largs -lgnat|' GENERATE_PLIST= cd ${DESTDIR}${PREFIX}; \ ${FIND} * \( -type f -or -type l \) | ${SORT}; +GTK2PC= ${BUILDLINK_DIR}/lib/pkgconfig/gtk+-2.0.pc + +post-wrapper: + # This hack works around missing gmodule entry in gtk2 + # pkgconfig file. Remove it when gtk2 is properly fixed + ${CAT} ${GTK2PC} | ${SED} '/^Req/ s/$$/ gmodule-2.0/' > ${GTK2PC}.tmp + ${RM} ${GTK2PC} + ${MV} ${GTK2PC}.tmp ${GTK2PC} + do-configure: cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} \ ./configure ${CONFIGURE_ARGS} |