pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/f2c/files Simulate "bsd.init.mk" because for some...
details: https://anonhg.NetBSD.org/pkgsrc/rev/282900d14e76
branches: trunk
changeset: 567662:282900d14e76
user: asau <asau%pkgsrc.org@localhost>
date: Mon Nov 23 10:43:36 2009 +0000
description:
Simulate "bsd.init.mk" because for some unknown reason
pkgsrc doesn't provide it.
This fixes build problems on platforms other than NetBSD.
diffstat:
lang/f2c/files/libf77.mk | 13 ++++++++++++-
lang/f2c/files/libi77.mk | 13 ++++++++++++-
lang/f2c/files/libtool.mk | 13 ++++++++++++-
3 files changed, 36 insertions(+), 3 deletions(-)
diffs (68 lines):
diff -r 3db79c67c964 -r 282900d14e76 lang/f2c/files/libf77.mk
--- a/lang/f2c/files/libf77.mk Mon Nov 23 10:11:24 2009 +0000
+++ b/lang/f2c/files/libf77.mk Mon Nov 23 10:43:36 2009 +0000
@@ -2,7 +2,18 @@
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
-.include "bsd.init.mk"
+# Simulate "bsd.init.mk" because pkgsrc doesn't provide it for some reason:
+.if !target(__initialized__)
+__initialized__:
+.if exists(${.CURDIR}/../Makefile.inc)
+.include "${.CURDIR}/../Makefile.inc"
+.endif
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.depall.mk>
+.MAIN: all
+.endif
+# .include <bsd.init.mk>
.PATH: $(LIBF2CSRCDIR)
SRCS= $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \
diff -r 3db79c67c964 -r 282900d14e76 lang/f2c/files/libi77.mk
--- a/lang/f2c/files/libi77.mk Mon Nov 23 10:11:24 2009 +0000
+++ b/lang/f2c/files/libi77.mk Mon Nov 23 10:43:36 2009 +0000
@@ -2,7 +2,18 @@
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
-.include "bsd.init.mk"
+# Simulate "bsd.init.mk" because pkgsrc doesn't provide it for some reason:
+.if !target(__initialized__)
+__initialized__:
+.if exists(${.CURDIR}/../Makefile.inc)
+.include "${.CURDIR}/../Makefile.inc"
+.endif
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.depall.mk>
+.MAIN: all
+.endif
+# .include <bsd.init.mk>
.PATH: $(LIBF2CSRCDIR)
SRCS = backspac.c close.c dfe.c dolio.c due.c endfile.c err.c \
diff -r 3db79c67c964 -r 282900d14e76 lang/f2c/files/libtool.mk
--- a/lang/f2c/files/libtool.mk Mon Nov 23 10:11:24 2009 +0000
+++ b/lang/f2c/files/libtool.mk Mon Nov 23 10:43:36 2009 +0000
@@ -1,6 +1,17 @@
# building library using libtool, simplified
-.include <bsd.init.mk>
+# Simulate "bsd.init.mk" because pkgsrc doesn't provide it for some reason:
+.if !target(__initialized__)
+__initialized__:
+.if exists(${.CURDIR}/../Makefile.inc)
+.include "${.CURDIR}/../Makefile.inc"
+.endif
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.depall.mk>
+.MAIN: all
+.endif
+# .include <bsd.init.mk>
OBJS+= $(SRCS:.c=.o)
LTOBJS+= $(SRCS:.c=.lo)
Home |
Main Index |
Thread Index |
Old Index