1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Revert part of last commit. This adds DragonFly support back.

Noticed by:	marino
This commit is contained in:
Pawel Pekala 2014-03-31 19:56:48 +00:00
parent 1258c822b1
commit 6ed80b9d06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349794

View File

@ -1,6 +1,5 @@
diff -ru /Makefile /Makefile
--- Makefile 2014-03-14 17:24:44.000000000 +0100
+++ Makefile 2014-03-14 17:35:33.000000000 +0100
--- Makefile.orig 2014-03-11 04:41:09.000000000 +0100
+++ Makefile 2014-03-31 21:34:29.000000000 +0200
@@ -16,7 +16,7 @@
STRIP = $(CROSS)strip
endif
@ -10,17 +9,11 @@ diff -ru /Makefile /Makefile
ifeq ($(USE_SYS_DYN_MEM),yes)
CFLAGS += -DUSE_SYS_DYN_MEM
@@ -39,9 +39,17 @@
@@ -39,9 +39,11 @@
endif
endif
+LIBDATADIR = $(LIBDIR)
+UNAME_S := $(shell uname -s)
+ifeq ($(UNAME_S), FreeBSD)
+LIBDATADIR = $(DESTDIR)$(PREFIX)/libdata
+else
+LIBDATADIR = $(LIBDIR)
+endif
+
INSTALL_BIN ?= install
INSTALL_DATA ?= $(INSTALL_BIN) -m0644
@ -29,7 +22,7 @@ diff -ru /Makefile /Makefile
LIBNAME = capstone
@@ -138,8 +146,7 @@
@@ -138,8 +140,7 @@
LIBOBJ += MCInst.o
@ -39,7 +32,7 @@ diff -ru /Makefile /Makefile
# OSX?
ifeq ($(UNAME_S),Darwin)
@@ -244,7 +251,7 @@
@@ -244,7 +245,7 @@
install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
mkdir -p $(LIBDIR)