summaryrefslogtreecommitdiff
path: root/sysutils/xentools3/patches/patch-bo
blob: ea3f3ccb961d5d54e0a5a58fa7d9417bb90bc4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-bo,v 1.2 2008/08/07 16:00:14 joerg Exp $

--- xcutils/Makefile.orig	2007-05-18 16:45:21.000000000 +0200
+++ xcutils/Makefile	2007-05-27 14:37:57.000000000 +0200
@@ -24,7 +24,7 @@
 
 PROGRAMS = xc_restore xc_save readnotes
 
-LDLIBS   = -L$(XEN_LIBXC) -L$(XEN_XENSTORE) -lxenguest -lxenctrl -lxenstore
+LDLIBS   = $(LDFLAGS) -L$(XEN_LIBXC) -L$(XEN_XENSTORE) -lxenguest -lxenctrl -lxenstore
 
 .PHONY: all
 all: build
@@ -37,9 +37,8 @@
 
 .PHONY: install
 install: build
-	[ -d $(DESTDIR)$(PROGRAMS_INSTALL_DIR) ] || \
-		$(INSTALL_DIR) $(DESTDIR)$(PROGRAMS_INSTALL_DIR)
-	$(INSTALL_PROG) $(PROGRAMS) $(DESTDIR)$(PROGRAMS_INSTALL_DIR)
+	$(BSD_INSTALL_PROGRAM_DIR) ${DESTDIR}$(PREFIX)/bin
+	$(BSD_INSTALL_PROGRAM) $(PROGRAMS) ${DESTDIR}$(PREFIX)/bin
 
 
 .PHONY: clean