[Olsr-dev] DESTDIR usage and FreeBSD
John Hay
(spam-protected)
Sat Sep 29 14:17:51 CEST 2007
Hi,
I'm busy making an olsr package for FreeBSD. On FreeBSD DESTDIR is being
used as the root directory of a whole OS installation, think of a chroot
area. We use PREFIX to show where an app should go, for example,
/usr/local or /usr/X11R6 or /opt. This patch only change it in
Makefile.fbsd which seems to be enough.
John
--
John Hay -- (spam-protected) / (spam-protected)
--- make/Makefile.fbsd.orig Thu Jul 26 19:34:54 2007
+++ make/Makefile.fbsd Mon Aug 13 10:02:38 2007
@@ -2,12 +2,12 @@
# FREEBSD SPECIFIC CONFIGURATION
#
-DESTDIR ?= /usr/local
-SBINDIR = $(DESTDIR)/sbin
-ETCDIR = $(DESTDIR)/etc
-LIBDIR = $(DESTDIR)/lib
-DOCDIR = $(DESTDIR)/share/doc
-MANDIR = $(DESTDIR)/man
+PREFIX ?= /usr/local
+SBINDIR = $(PREFIX)/sbin
+ETCDIR = $(PREFIX)/etc
+LIBDIR = $(PREFIX)/lib
+DOCDIR = $(PREFIX)/share/doc
+MANDIR = $(PREFIX)/man
SRCS += $(wildcard src/bsd/*.c) $(wildcard src/unix/*.c)
HDRS += $(wildcard src/bsd/*.h) $(wildcard src/unix/*.h)
@@ -22,8 +22,8 @@
ifdef LIBNET
-CPPFLAGS += -DSPOOF -I$(DESTDIR)/include
-LIBS += -L$(DESTDIR)/lib -lnet
+CPPFLAGS += -DSPOOF -I$(PREFIX)/include
+LIBS += -L$(PREFIX)/lib -lnet
endif
More information about the Olsr-dev
mailing list