opnsense-ports/security/pev/files/patch-lib__libpe__Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

29 lines
965 B
Text

--- ./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