diff options
author | agc <agc@pkgsrc.org> | 2007-01-10 20:47:08 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2007-01-10 20:47:08 +0000 |
commit | a6d2c67172a5581e5275a75870fda4f6aab16943 (patch) | |
tree | 4b79657e2f52d4e748e50e8f42c466ea9acfd1fa | |
parent | e6b0ac1f86a0d01a54f5f58ce5da95f7b730f27c (diff) | |
download | pkgsrc-a6d2c67172a5581e5275a75870fda4f6aab16943.tar.gz |
Guard against attempted compilation on operating systems which are not
supported.
-rw-r--r-- | net/aoe-vblade/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/aoe-vblade/Makefile b/net/aoe-vblade/Makefile index deee5df9995..1c832eb756e 100644 --- a/net/aoe-vblade/Makefile +++ b/net/aoe-vblade/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/01/10 20:39:35 agc Exp $ +# $NetBSD: Makefile,v 1.2 2007/01/10 20:47:08 agc Exp $ DISTNAME= vblade-14 PKGNAME= aoe-vblade-14 @@ -10,8 +10,16 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://aoetools.sourceforge.net/ COMMENT= ATA over Ethernet (AoE) server - thin, LAN-based storage protocol +ONLY_FOR_PLATFORM+= NetBSD-*-* FreeBSD-*-* Linux-*-* + +.include "../../mk/bsd.prefs.mk" + do-build: +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" cd ${WRKSRC} && ${CP} freebsd.c bsd.c && ${MAKE} PLATFORM=bsd +.elif ${OPSYS} == "Linux" + ${MAKE} PLATFORM=linux +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vblade ${PREFIX}/sbin/ |