summaryrefslogtreecommitdiff
path: root/sysutils/fdgw
diff options
context:
space:
mode:
authorwennmach <wennmach@pkgsrc.org>2002-04-19 10:34:21 +0000
committerwennmach <wennmach@pkgsrc.org>2002-04-19 10:34:21 +0000
commit565dba70b29ec355402b1de2b7086fff595678e4 (patch)
tree366e1dd49eaa16db026c468d17c3688ece2a7c13 /sysutils/fdgw
parent3a9e421d645277ff293d80ff4430e6057a1425c7 (diff)
downloadpkgsrc-565dba70b29ec355402b1de2b7086fff595678e4.tar.gz
Reorganise Makefile such that BSDSRCDIR settings in /etc/mk.conf
are honoured. From Frederick Bruckman.
Diffstat (limited to 'sysutils/fdgw')
-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"