--- sendd/os/Makefile.orig 2010-08-28 17:58:04.000000000 +0900 +++ sendd/os/Makefile 2014-08-20 04:33:33.000000000 +0900 @@ -1,13 +1,5 @@ OBJS += os/addr.o os/snd_freebsd.o os-linux/rand.o -CPPFLAGS += -I/usr/local/include - -OSLIBS= -L/usr/local/lib -l$(DNET) - -OSEXTRA= os/sendd -EXTRAINSTALL= /usr/local/etc/rc.d/sendd -EXTRAUNINSTALL=$(EXTRAINSTALL) - -/usr/local/etc/rc.d/%: os/% - install $< $@ +CPPFLAGS += -I${LOCALBASE}/include +OSLIBS= -L${LOCALBASE}/lib -l$(DNET)