summaryrefslogtreecommitdiff
path: root/devel/m4
diff options
context:
space:
mode:
Diffstat (limited to 'devel/m4')
-rw-r--r--devel/m4/Makefile24
-rw-r--r--devel/m4/files/md51
-rw-r--r--devel/m4/patches/patch-aa11
-rw-r--r--devel/m4/patches/patch-ab19
-rw-r--r--devel/m4/pkg/COMMENT1
-rw-r--r--devel/m4/pkg/DESCR27
-rw-r--r--devel/m4/pkg/PLIST32
7 files changed, 115 insertions, 0 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile
new file mode 100644
index 00000000000..d7e5d96b068
--- /dev/null
+++ b/devel/m4/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: m4
+# Version required: 1.4
+# Date created: 25 October 1994
+# Whom: mr
+#
+# FreeBSD Id: Makefile,v 1.7 1997/06/16 08:22:35 max Exp
+#
+
+DISTNAME= m4-1.4
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU}
+
+GNU_CONFIGURE=yes
+CONFIGURE_ARGS= --program-prefix=g
+
+post-install:
+ @${MKDIR} ${PREFIX}/share/examples/gm4
+ ${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/share/examples/gm4
+ @if [ ! -f ${PREFIX}/info/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
+ fi
+ @install-info ${PREFIX}/info/m4.info ${PREFIX}/info/dir
+
+.include <bsd.port.mk>
diff --git a/devel/m4/files/md5 b/devel/m4/files/md5
new file mode 100644
index 00000000000..db5ee0aca5f
--- /dev/null
+++ b/devel/m4/files/md5
@@ -0,0 +1 @@
+MD5 (m4-1.4.tar.gz) = 9eb2dd07740b2d2f3c7adb3e8d299bda
diff --git a/devel/m4/patches/patch-aa b/devel/m4/patches/patch-aa
new file mode 100644
index 00000000000..d115919e806
--- /dev/null
+++ b/devel/m4/patches/patch-aa
@@ -0,0 +1,11 @@
+--- doc/Makefile.in.orig Sun Nov 6 05:52:26 1994
++++ doc/Makefile.in Mon Jun 16 16:08:39 1997
+@@ -40,7 +40,7 @@
+ info: m4.info
+
+ m4.info: m4.texinfo version.texi
+- cd $(srcdir) && $(MAKEINFO) m4.texinfo
++ cd $(srcdir) && rm -f m4.info* && $(MAKEINFO) --no-split m4.texinfo
+
+ dvi: m4.dvi
+
diff --git a/devel/m4/patches/patch-ab b/devel/m4/patches/patch-ab
new file mode 100644
index 00000000000..aa51a00911e
--- /dev/null
+++ b/devel/m4/patches/patch-ab
@@ -0,0 +1,19 @@
+--- doc/m4.texinfo.orig Mon Oct 31 09:07:39 1994
++++ doc/m4.texinfo Mon Jun 16 16:36:44 1997
+@@ -2,6 +2,7 @@
+ @c %**start of header
+ @setfilename m4.info
+ @settitle GNU macro processor
++@dircategory Programming & development tools
+ @finalout
+ @c %**end of header
+
+@@ -17,7 +18,7 @@
+ @ifinfo
+ @format
+ START-INFO-DIR-ENTRY
+-* m4: (m4). A powerful macro processor.
++* Gm4: (m4). A powerful macro processor.
+ END-INFO-DIR-ENTRY
+ @end format
+ @end ifinfo
diff --git a/devel/m4/pkg/COMMENT b/devel/m4/pkg/COMMENT
new file mode 100644
index 00000000000..089df96cbf1
--- /dev/null
+++ b/devel/m4/pkg/COMMENT
@@ -0,0 +1 @@
+GNU's m4.
diff --git a/devel/m4/pkg/DESCR b/devel/m4/pkg/DESCR
new file mode 100644
index 00000000000..ffa47794be9
--- /dev/null
+++ b/devel/m4/pkg/DESCR
@@ -0,0 +1,27 @@
+GNU `m4'
+********
+
+ GNU `m4' is an implementation of the traditional UNIX macro
+processor. It is mostly SVR4 compatible, although it has some
+extensions (for example, handling more than 9 positional parameters to
+macros). `m4' also has builtin functions for including files, running
+shell commands, doing arithmetic, etc. Autoconf needs GNU `m4' for
+generating `configure' scripts, but not for running them.
+
+ GNU `m4' was originally written by Rene Seindal, with subsequent
+changes by Franc,ois Pinard and other volunteers on the Internet. All
+names and email addresses can be found in the file `THANKS' from the
+GNU `m4' distribution.
+
+ This is release 1.3. It is now to be considered stable, future
+releases are only meant to fix bugs, increase speed, or improve
+documentation. However...
+
+ An experimental feature, which would improve `m4' usefulness, allows
+for changing the syntax for what is a "word" in `m4'. You should use:
+ ./configure --enable-changeword
+
+if you want this feature compiled in. The current implementation slows
+down `m4' considerably and is hardly acceptable. So, it might go away,
+do not count on it yet.
+
diff --git a/devel/m4/pkg/PLIST b/devel/m4/pkg/PLIST
new file mode 100644
index 00000000000..3a5b4e7e35b
--- /dev/null
+++ b/devel/m4/pkg/PLIST
@@ -0,0 +1,32 @@
+bin/gm4
+@unexec install-info --delete %D/info/m4.info %D/info/dir
+info/m4.info
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/m4.info %D/info/dir
+share/examples/gm4/capitalize.m4
+share/examples/gm4/comments.m4
+share/examples/gm4/ddivert.m4
+share/examples/gm4/debug.m4
+share/examples/gm4/esyscmd.m4
+share/examples/gm4/exp.m4
+share/examples/gm4/file.m4
+share/examples/gm4/foreach.m4
+share/examples/gm4/forloop.m4
+share/examples/gm4/fstab.m4
+share/examples/gm4/hanoi.m4
+share/examples/gm4/incl-test.m4
+share/examples/gm4/include.m4
+share/examples/gm4/indir.m4
+share/examples/gm4/misc.m4
+share/examples/gm4/multiquotes.m4
+share/examples/gm4/patsubst.m4
+share/examples/gm4/pushpop.m4
+share/examples/gm4/regexp.m4
+share/examples/gm4/reverse.m4
+share/examples/gm4/sync-lines.m4
+share/examples/gm4/sysv-args.m4
+share/examples/gm4/trace.m4
+share/examples/gm4/translit.m4
+share/examples/gm4/undivert.m4
+share/examples/gm4/wrap.m4
+@dirrm share/examples/gm4