tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: missing pkg-config files if X11_TYPE=native
On Jan 13, 2:35pm, Klaus Heinz wrote:
}
} I just saw this while trying to build x11/xprop
}
} checking pkg-config is at least version 0.9.0... yes
} checking for XPROP... configure: error: Package requirements (x11) were
} not met:
}
} gnome-config: not found
} No package 'x11' found
}
} Consider adjusting the PKG_CONFIG_PATH environment variable if you
} installed software in a non-standard prefix.
}
} Alternatively, you may set the environment variables XPROP_CFLAGS
} and XPROP_LIBS to avoid the need to call pkg-config.
} See the pkg-config man page for more details.
}
} *** Error code 1
}
} Obviously the configure script is checking for x11.pc which does not
} exist if you use native X11 on NetBSD.
} It looks like this happens for the latest bulk builds as well.
}
} Is there any solution yet?
Try the following patch to pkgtools/x11-links/builtin.mk:
diff -u -r1.7 builtin.mk
--- builtin.mk 1 Jun 2005 18:03:08 -0000 1.7
+++ builtin.mk 23 Aug 2008 21:23:02 -0000
@@ -7,3 +7,34 @@
USE_BUILTIN.x11-links= no
.endif
MAKEVARS+= USE_BUILTIN.x11-links
+
+BLKDIR_PKGCFG= ${BUILDLINK_DIR}/lib/pkgconfig
+LIBX11_PKGCFGF= x11.pc
+
+.if !empty(USE_BUILTIN.x11-links:M[nN][oO]) && \
+ !empty(USE_TOOLS:C/:.*//:Mpkg-config) && \
+ !exists(${X11BASE}/lib/pkgconfig/${LIBX11_PKGCFGF})
+
+do-configure-pre-hook: override-libx11-pkgconfig
+
+override-libx11-pkgconfig: override-message-libx11-pkgconfig
+override-message-libx11-pkgconfig:
+ @${STEP_MSG} "Magical transformations for libX11 on NetBSD."
+
+override-libx11-pkgconfig:
+ ${_PKG_SILENT}${_PKG_DEBUG}set -e; \
+ ${MKDIR} ${BLKDIR_PKGCFG}; \
+ { \
+ ${ECHO} "prefix=${X11BASE}"; \
+ ${ECHO} "exec_prefix=\$${prefix}"; \
+ ${ECHO} "libdir=\$${exec_prefix}/lib"; \
+ ${ECHO} "includedir=\$${prefix}/include"; \
+ ${ECHO} ""; \
+ ${ECHO} "Name: X11"; \
+ ${ECHO} "Description: X Library"; \
+ ${ECHO} "Version: ?"; \
+ ${ECHO} "Cflags: -I\$${includedir}"; \
+ ${ECHO} "Libs: -Wl,-R\$${libdir} -L\$${libdir} -lX11"; \
+ } >> ${BLKDIR_PKGCFG}/${LIBX11_PKGCFGF};
+
+.endif # pkg-config
}
} ciao
} Klaus
}-- End of excerpt from Klaus Heinz
Home |
Main Index |
Thread Index |
Old Index