--- /dev/null
+make sure the files using version.h depend on it being generated first
+
+--- a/Makefile
++++ b/Makefile
+@@ -39,7 +39,7 @@
+
+ all: sslh $(MAN) echosrv
+
+-.c.o: *.h
++.c.o: *.h version.h
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
+
+ version.h:
EAPI=5
MY_P="${PN}-v${PV}"
-inherit toolchain-funcs
+inherit toolchain-funcs eutils
DESCRIPTION="Port multiplexer - accept both HTTPS and SSH connections on the same port"
HOMEPAGE="http://www.rutschle.net/tech/sslh.shtml"
S=${WORKDIR}/${MY_P}
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-version-deps.patch
+}
+
src_compile() {
emake \
CC="$(tc-getCC)" \