From 6e512d537750f94edf4ca1d4337d6bf2d9d7c2f9 Mon Sep 17 00:00:00 2001 From: Pete Fritchman Date: Wed, 21 Nov 2001 22:52:31 +0000 Subject: The FvwmM4 module needs gm4 to function properly. PR: 32176 Submitted by: Tony Finch --- x11-wm/fvwm24/Makefile | 6 ++++++ x11-wm/fvwm24/files/patch-modules::FvwmM4::FvwmM4.c | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 x11-wm/fvwm24/files/patch-modules::FvwmM4::FvwmM4.c (limited to 'x11-wm/fvwm24') diff --git a/x11-wm/fvwm24/Makefile b/x11-wm/fvwm24/Makefile index a7a728a0ff28..6ec731bf428b 100644 --- a/x11-wm/fvwm24/Makefile +++ b/x11-wm/fvwm24/Makefile @@ -15,6 +15,8 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= petef@FreeBSD.org +RUN_DEPENDS= gm4:${PORTSDIR}/devel/m4 + USE_GMAKE= yes USE_GTK= yes USE_IMLIB= yes @@ -49,6 +51,10 @@ post-extract: @${MKDIR} ${WRKDIR}/icons @${TAR} -xzf ${DISTDIR}/fvwm_icons.tgz -C ${WRKDIR}/icons +post-patch: + @${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},' \ + ${WRKSRC}/modules/FvwmM4/FvwmM4.c + post-install: @${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \ ${PREFIX}/etc/system.fvwm2rc.dist diff --git a/x11-wm/fvwm24/files/patch-modules::FvwmM4::FvwmM4.c b/x11-wm/fvwm24/files/patch-modules::FvwmM4::FvwmM4.c new file mode 100644 index 000000000000..9a104c20023f --- /dev/null +++ b/x11-wm/fvwm24/files/patch-modules::FvwmM4::FvwmM4.c @@ -0,0 +1,11 @@ +--- modules/FvwmM4/FvwmM4.c.orig Wed Nov 21 17:46:27 2001 ++++ modules/FvwmM4/FvwmM4.c Wed Nov 21 17:47:06 2001 +@@ -71,7 +71,7 @@ + int m4_prefix_defines; /* Add "m4_" to the names of the defines */ + char m4_options[BUFSIZ]; /* Command line options to m4 */ + char m4_outfile[BUFSIZ] = ""; /* The output filename for m4 */ +-char *m4_prog = "m4"; /* Name of the m4 program */ ++char *m4_prog = "%%LOCALBASE%%/bin/gm4"; /* Name of the m4 program */ + int m4_default_quotes; /* Use default m4 quotes */ + char *m4_startquote = "`"; /* Left quote characters for m4 */ + char *m4_endquote = "'"; /* Right quote characters for m4 */ -- cgit v1.2.3