Removed
Link Here
|
1 |
--- Makefile.orig 2015-02-13 06:11:21 UTC |
2 |
+++ Makefile |
3 |
@@ -81,6 +81,13 @@ ifeq ($(OS_NAME),NetBSD) |
4 |
LOADLIBES += -L$(BASEDIR)/lib -Wl,-R,$(BASEDIR)/lib |
5 |
endif |
6 |
|
7 |
+# FreeBSD |
8 |
+ifeq ($(OS_NAME),FreeBSD) |
9 |
+ LOADLIBES += -L${LOCALBASE}/lib |
10 |
+ CFLAGS += -I${LOCALBASE}/include |
11 |
+ PREFIX= |
12 |
+endif |
13 |
+ |
14 |
ifneq ($(POPT_DIR),) |
15 |
CFLAGS += -I$(POPT_DIR) |
16 |
LOADLIBES += -L$(POPT_DIR) |
17 |
@@ -155,9 +162,9 @@ install: |
18 |
$(INSTALL) $(MAN) $(PREFIX)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"` 0644 bin bin; \ |
19 |
$(INSTALL) $(MAN5) $(PREFIX)$(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"` 0644 bin bin; \ |
20 |
else if [ "$(OS_NAME)" = FreeBSD ]; then \ |
21 |
- $(BSD_INSTALL_PROGRAM) $(PROG) $(BINDIR); \ |
22 |
- $(BSD_INSTALL_MAN) $(MAN) $(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \ |
23 |
- $(BSD_INSTALL_MAN) $(MAN5) $(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"`/$(MAN5); \ |
24 |
+ $(BSD_INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(BINDIR); \ |
25 |
+ $(BSD_INSTALL_MAN) $(MAN) $(DESTDIR)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \ |
26 |
+ $(BSD_INSTALL_MAN) $(MAN5) $(DESTDIR)$(MANDIR)/man`echo $(MAN5) | sed "s/.*\.//"`/$(MAN5); \ |
27 |
else \ |
28 |
$(INSTALL) -m 755 $(PROG) $(PREFIX)$(BINDIR); \ |
29 |
$(INSTALL) -m 644 $(MAN) $(PREFIX)$(MANDIR)/man`echo $(MAN) | sed "s/.*\.//"`/$(MAN); \ |