summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortnn <tnn>2015-09-24 02:38:33 +0000
committertnn <tnn>2015-09-24 02:38:33 +0000
commit65ec82d319b400979788eef0b79035d709a896ad (patch)
tree34682bb49aeec6adc4d42cc8ff1d2b611607b83f /x11
parent54620debe8580d42454a5cc221a74599175b5081 (diff)
downloadpkgsrc-65ec82d319b400979788eef0b79035d709a896ad.tar.gz
- provide full path to textproc/py-sphinx sphinx-build tool
- make it find libgcc_s.so from lang/gcc-aux if system has no libgcc_s.s This fixes the package build, but it still complains that libgnat-4.9.so is not found at run time and I don't know how to fix that.
Diffstat (limited to 'x11')
-rw-r--r--x11/gtkada/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/x11/gtkada/Makefile b/x11/gtkada/Makefile
index 20e10af7f42..f717a4db938 100644
--- a/x11/gtkada/Makefile
+++ b/x11/gtkada/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2015/06/12 10:52:17 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2015/09/24 02:38:33 tnn Exp $
#
DISTNAME= gtkada-${GTKADA_VERSION}
@@ -26,19 +26,26 @@ CONFIGURE_ARGS+= --enable-nls \
--with-GL=no
MAKE_ENV+= PROCESSORS=${MAKE_JOBS}
-SUBST_CLASSES+= docs lgnat
+SUBST_CLASSES+= docs lgnat sphinx
SUBST_STAGE.docs= post-patch
SUBST_FILES.docs= Makefile.in
SUBST_SED.docs= -e 's/^all: \(.*\)/all: \1 docs/g'
SUBST_STAGE.lgnat= post-patch
SUBST_FILES.lgnat= src/tools/Makefile.in testgtk/Makefile.in
SUBST_SED.lgnat= -e 's|-largs|-largs -lgnat|'
+SUBST_STAGE.sphinx= post-patch
+SUBST_FILES.sphinx= docs/gtkada_ug/Makefile
+SUBST_SED.sphinx= -e 's|sphinx-build|${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}|'
GENERATE_PLIST= cd ${DESTDIR}${PREFIX}; \
${FIND} * \( -type f -or -type l \) | ${SORT};
GTK2PC= ${BUILDLINK_DIR}/lib/pkgconfig/gtk+-2.0.pc
+# Make it find libgcc_s.so from lang/gcc-aux.
+BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/gcc-aux/lib
+LDFLAGS+= -Wl,-R${PREFIX}/gcc-aux/lib
+
post-wrapper:
# This hack works around missing gmodule entry in gtk2
# pkgconfig file. Remove it when gtk2 is properly fixed
@@ -47,7 +54,7 @@ post-wrapper:
${MV} ${GTK2PC}.tmp ${GTK2PC}
do-configure:
- cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} \
+ cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
./configure ${CONFIGURE_ARGS}
do-build: