From ef2994a29f015d0e2191fba1fc6c0a4f2ece7902 Mon Sep 17 00:00:00 2001 From: erwin Date: Fri, 2 Jul 2004 06:51:46 +0000 Subject: Yet another file that had the version number hardcoded in it. Patch the patch on the fly to use PORTVERSION. The version number should probably be removed alltogether. Approved by: maintainer --- irc/ircd-hybrid/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'irc/ircd-hybrid/Makefile') diff --git a/irc/ircd-hybrid/Makefile b/irc/ircd-hybrid/Makefile index c8e380b284ae..dbc301d73812 100644 --- a/irc/ircd-hybrid/Makefile +++ b/irc/ircd-hybrid/Makefile @@ -84,6 +84,9 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/ircd-hybrid \ --ohelpdir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/help/opers \ --messagedir=${PREFIX}/share/${PORTNAME}-${PORTVERSION}/messages \ +pre-patch: + @${SED} -e "s#%%PORTVERSION%%#${PORTVERSION}#" ${FILESDIR}/include-config.h.pre-patch > ${FILESDIR}/patch-include-config.h + post-patch: @${REINPLACE_CMD} -e "s#man8#man/man8#" ${WRKSRC}/doc/Makefile.in @${MV} ${WRKSRC}/doc/ircd.motd ${WRKSRC}/doc/ircd.motd.sample @@ -100,4 +103,7 @@ post-install: @${INSTALL_SCRIPT} ${WRKDIR}/ircd-hybrid.sh ${PREFIX}/etc/rc.d @${SED} -e "s#/usr/local/#${PREFIX}/#" ${PKGMESSAGE} +pre-clean: + @${RM} -f ${FILESDIR}/patch-include-config.h + .include -- cgit