--- ./lib/libpe/Makefile.orig	2013-12-27 08:39:52.000000000 -0200
+++ ./lib/libpe/Makefile	2013-12-28 00:18:59.000000000 -0200
@@ -5,7 +5,7 @@
 
 ####### Makefile Conventions - Directory variables
 
-prefix = /usr
+prefix = /usr/local
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 sbindir = $(exec_prefix)/sbin
@@ -68,7 +68,7 @@
 
 libpe: CPPFLAGS += -D_GNU_SOURCE
 libpe: $(libpe_OBJS)
-ifeq ($(PLATFORM_OS), Linux)
+ifeq ($(PLATFORM_OS), FreeBSD)
 	$(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o $(LIBNAME).so $^
 else ifeq ($(PLATFORM_OS), Darwin)
 	$(LINK) -headerpad_max_install_names -dynamiclib \
@@ -84,7 +84,7 @@
 	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
 
 install: installdirs
-ifeq ($(PLATFORM_OS), Linux)
+ifeq ($(PLATFORM_OS), FreeBSD)
 	$(INSTALL_DATA) $(LIBNAME).so $(DEST)/$(LIBNAME).so.$(VERSION)
 	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so
 	cd $(DEST); $(SYMLINK) $(LIBNAME).so.$(VERSION) $(LIBNAME).so.1
