summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwennmach <wennmach>2002-04-19 10:34:21 +0000
committerwennmach <wennmach>2002-04-19 10:34:21 +0000
commitaf65175aac898cdd129781910db17c56b928b7a4 (patch)
tree366e1dd49eaa16db026c468d17c3688ece2a7c13
parent52bf0612dbb82e40431809fdc4191a5841af9f84 (diff)
downloadpkgsrc-af65175aac898cdd129781910db17c56b928b7a4.tar.gz
Reorganise Makefile such that BSDSRCDIR settings in /etc/mk.conf
are honoured. From Frederick Bruckman.
-rw-r--r--sysutils/fdgw/Makefile27
1 files changed, 14 insertions, 13 deletions
diff --git a/sysutils/fdgw/Makefile b/sysutils/fdgw/Makefile
index 59195074dcd..d26937b5e8f 100644
--- a/sysutils/fdgw/Makefile
+++ b/sysutils/fdgw/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2002/04/12 20:51:26 agc Exp $
+# $NetBSD: Makefile,v 1.6 2002/04/19 10:34:21 wennmach Exp $
#
DISTNAME= fdgw-20020130
@@ -9,24 +9,13 @@ MAINTAINER= fukachan@fml.org
HOMEPAGE= http://www.fml.org/software/fdgw/
COMMENT= toolkit to build a one-floppy NetBSD system
-BSDSRCDIR?= /usr/src
_IMG_SRC_DIR = ${WRKSRC}/image.${MACHINE_ARCH}
_IMG_DST_DIR = ${PREFIX}/fdgw/${MACHINE_ARCH}
ONLY_FOR_PLATFORM= NetBSD-1.5.*-i386
-.include "../../mk/bsd.prefs.mk"
-
-.if !exists(${X11BASE}/bin/lndir)
-IGNORE= "${PKGNAME} requires the 'lndir' command, and hence X11"
-.endif
-
-# we need the NetBSD source tree.
-.if !exists(${BSDSRCDIR})
-IGNORE= "${PKGNAME} requires the NetBSD source tree in BSDSRCDIR (${BSDSRCDIR})"
-.endif
-
ALL_TARGET= dist-build
+MAKE_ENV+= BSDSRCDIR="${BSDSRCDIR}"
pre-fetch:
@ ${ECHO} "";
@@ -58,4 +47,16 @@ post-install:
@ ${ECHO} "*****************************************************";
@ ${ECHO} "";
+.include "../../mk/bsd.prefs.mk"
+
+.if !exists(${X11BASE}/bin/lndir)
+IGNORE= "${PKGNAME} requires the 'lndir' command, and hence X11"
+.endif
+
+# we need the NetBSD source tree.
+BSDSRCDIR?= /usr/src
+.if !exists(${BSDSRCDIR})
+IGNORE= "${PKGNAME} requires the NetBSD source tree in BSDSRCDIR (${BSDSRCDIR})"
+.endif
+
.include "../../mk/bsd.pkg.mk"