A port of Peter J. Nicklin's automatic Makefile generator.

This commit is contained in:
Stefan Eßer 1996-03-13 22:53:32 +00:00
parent c78185401f
commit 54b0fed67a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2835
7 changed files with 118 additions and 0 deletions

17
devel/mkmf/Makefile Normal file
View File

@ -0,0 +1,17 @@
# New ports collection makefile for: mkmf
# Version required: 4.11
# Date created: 14 Mar 1996
# Whom: se
#
# $Id$
#
DISTNAME= mkmf
PKGNAME= mkmf-4.11
CATEGORIES+= devel
MASTER_SITES= ftp://ftp.uni-koeln.de/util/
MAINTAINER= se@FreeBSD.org
.include <bsd.port.mk>

1
devel/mkmf/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (mkmf.tar.gz) = 56cc8cda58a3bbf577ef1a1b0f7ff00e

49
devel/mkmf/files/patch-aa Normal file
View File

@ -0,0 +1,49 @@
*** Makefile.orig Tue Nov 26 17:16:37 1991
--- Makefile Wed Mar 13 23:38:28 1996
***************
*** 1,3 ****
! INSTALLDIR= /usr/contrib
SUBDIR= src templates
--- 1,3 ----
! INSTALLDIR= $(PREFIX)
SUBDIR= src templates
*** src/Makefile.orig Wed May 26 09:19:57 1993
--- src/Makefile Wed Mar 13 23:39:35 1996
***************
*** 5,11 ****
#CFLAGS= -O -DUNICOS5 -DINSTALLDIR=\"$(INSTALLDIR)\" # Cray Unicos 5.x
! CFLAGS = -O -DBSD4X -DINSTALLDIR=\"$(INSTALLDIR)\" # Generic BSD
! INSTALLDIR= /usr/contrib
PROG= mkmf
--- 5,15 ----
#CFLAGS= -O -DUNICOS5 -DINSTALLDIR=\"$(INSTALLDIR)\" # Cray Unicos 5.x
! #CFLAGS = -O -DBSD4X -DINSTALLDIR=\"$(INSTALLDIR)\" # Generic BSD
! CFLAGS+= -DBSD4X -DINSTALLDIR=\"$(INSTALLDIR)\"
!
! INSTALLDIR= $(PREFIX)
! BINDIR= $(INSTALLDIR)/bin
! MANDIR= $(INSTALLDIR)/man/man
PROG= mkmf
*** templates/Makefile~ Tue Nov 26 17:16:50 1991
--- templates/Makefile Wed Mar 13 23:42:36 1996
***************
*** 10,14 ****
C.p
! INSTALLDIR= /usr/contrib
MKMFLIB= ${DESTDIR}$(INSTALLDIR)/lib/mkmf
--- 10,14 ----
C.p
! INSTALLDIR= $(PREFIX)
MKMFLIB= ${DESTDIR}$(INSTALLDIR)/lib/mkmf

28
devel/mkmf/files/patch-ab Normal file
View File

@ -0,0 +1,28 @@
*** src/misc.c~ Wed May 26 06:51:17 1993
--- src/misc.c Wed Mar 13 23:37:13 1996
***************
*** 68,76 ****
HASHBLK *htinstall(); /* install hash table entry */
! if (gets(answerbuf) == NULL)
exit(1);
if (*answerbuf != '\0')
if (htinstall(mdefkey, answerbuf, mdefval, MDEFTABLE) == NULL)
exit(1);
}
--- 68,81 ----
HASHBLK *htinstall(); /* install hash table entry */
! if (fgets(answerbuf, ANSWERBUFSIZE, stdin) == NULL)
exit(1);
if (*answerbuf != '\0')
+ {
+ char *nlpos = strchr(answerbuf, '\n');
+ if (nlpos)
+ *nlpos = '\0';
if (htinstall(mdefkey, answerbuf, mdefval, MDEFTABLE) == NULL)
exit(1);
+ }
}

14
devel/mkmf/pkg-comment Normal file
View File

@ -0,0 +1,14 @@
The mkmf makefile editor creates program and library makefiles for the
make(1) command. Mkmf has the following features:
- Automatically inserts source and object code file names in
makefiles.
- Provides standard makefile templates for programs and libraries.
- Allows user-defined makefile templates.
- Generates included file dependencies for C, C++, Pascal, and Fortran
source code
- Allows arbitrary editing of makefiles with a regular text editor

1
devel/mkmf/pkg-descr Normal file
View File

@ -0,0 +1 @@
mkmf makefile editor (revision 4.11)

8
devel/mkmf/pkg-plist Normal file
View File

@ -0,0 +1,8 @@
bin/mkmf
lib/mkmf/C++.L
lib/mkmf/C++.l
lib/mkmf/C++.p
lib/mkmf/C.L
lib/mkmf/C.l
lib/mkmf/C.p
man/man1/mkmf.1.gz