diff options
author | marino <marino@FreeBSD.org> | 2014-03-02 17:56:45 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-03-02 17:56:45 +0800 |
commit | a393c2fa346f85051a6bc999fa1d37b93aec8bbf (patch) | |
tree | 674b6527631deeb1b3efd5788db3786c67f0ebb8 /devel/capstone | |
parent | be5d5b6fc2f8c6908107f64e7dcb6874fd923be0 (diff) | |
download | freebsd-ports-gnome-a393c2fa346f85051a6bc999fa1d37b93aec8bbf.tar.gz freebsd-ports-gnome-a393c2fa346f85051a6bc999fa1d37b93aec8bbf.tar.zst freebsd-ports-gnome-a393c2fa346f85051a6bc999fa1d37b93aec8bbf.zip |
devel/capstone: Add DragonFly support
The makefile patch was strange in that it defined LIBDATADIR once
unconditionally and then again conditionally. This could have been
done via MAKE_ARGS and no patch at all. However, I changed the
patch to a single definition that is true for "ports" regardless
of the platform used (pkgconfig files always in libdata in ports).
This allows port to build on DragonFly and no-op for FreeBSD.
Diffstat (limited to 'devel/capstone')
-rw-r--r-- | devel/capstone/files/patch-Makefile | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/devel/capstone/files/patch-Makefile b/devel/capstone/files/patch-Makefile index 7c18ee252e29..4abddd6f1984 100644 --- a/devel/capstone/files/patch-Makefile +++ b/devel/capstone/files/patch-Makefile @@ -1,6 +1,6 @@ ---- Makefile.orig 2014-01-22 11:33:35.000000000 +0100 -+++ Makefile 2014-01-25 19:13:32.000000000 +0100 -@@ -15,7 +15,7 @@ +--- Makefile.orig 2014-01-22 10:33:35.000000000 +0000 ++++ Makefile +@@ -15,7 +15,7 @@ RANLIB = $(CROSS)ranlib STRIP = $(CROSS)strip endif @@ -9,22 +9,16 @@ ifeq ($(USE_SYS_DYN_MEM),yes) CFLAGS += -DUSE_SYS_DYN_MEM -@@ -38,6 +38,14 @@ +@@ -38,6 +38,8 @@ LIBDIR = $(DESTDIR)$(PREFIX)/lib 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 INSTALL_LIBRARY ?= $(INSTALL_BIN) -m0755 -@@ -88,7 +96,6 @@ +@@ -88,7 +90,6 @@ endif LIBOBJ += MCInst.o @@ -32,7 +26,7 @@ # OSX? ifeq ($(UNAME_S),Darwin) EXT = dylib -@@ -156,14 +163,14 @@ +@@ -156,14 +157,14 @@ install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY $(INSTALL_DATA) lib$(LIBNAME).$(AR_EXT) $(LIBDIR) mkdir -p $(INCDIR)/$(LIBNAME) $(INSTALL_DATA) include/*.h $(INCDIR)/$(LIBNAME) |