pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/aoe-vblade Guard against attempted compilation on ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f8c07caefda2
branches: trunk
changeset: 523637:f8c07caefda2
user: agc <agc%pkgsrc.org@localhost>
date: Wed Jan 10 20:47:08 2007 +0000
description:
Guard against attempted compilation on operating systems which are not
supported.
diffstat:
net/aoe-vblade/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r ca16c7ea8cb7 -r f8c07caefda2 net/aoe-vblade/Makefile
--- a/net/aoe-vblade/Makefile Wed Jan 10 20:41:32 2007 +0000
+++ b/net/aoe-vblade/Makefile Wed Jan 10 20:47:08 2007 +0000
@@ -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 @@
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/
Home |
Main Index |
Thread Index |
Old Index