From a5b4c304bc2a483d5d04d9eabb3d1689ef41eec4 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Wed, 19 Feb 2014 11:34:32 +0000 Subject: [PATCH] Support staging --- devel/xmake/Makefile | 6 ++---- devel/xmake/files/patch-Makefile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 devel/xmake/files/patch-Makefile diff --git a/devel/xmake/Makefile b/devel/xmake/Makefile index a9d58e56d4da..b21175f586c9 100644 --- a/devel/xmake/Makefile +++ b/devel/xmake/Makefile @@ -11,11 +11,9 @@ MAINTAINER= ports@FreeBSD.org COMMENT= A powerful make utility WRKSRC= ${WRKDIR}/xmake -MAN1= xmake.1 -PLIST_FILES= bin/xmake +PLIST_FILES= bin/xmake man/man1/xmake.1.gz -NO_STAGE= yes -pre-build: +post-extract: @${RM} -rf ${WRKSRC}/obj .include diff --git a/devel/xmake/files/patch-Makefile b/devel/xmake/files/patch-Makefile new file mode 100644 index 000000000000..06a8830b730b --- /dev/null +++ b/devel/xmake/files/patch-Makefile @@ -0,0 +1,20 @@ +--- ./Makefile.orig 2014-02-19 12:33:07.233262579 +0100 ++++ ./Makefile 2014-02-19 12:33:45.211272300 +0100 +@@ -6,7 +6,7 @@ + EXE= xmake + PREFIX ?= /usr/local + IBDIR= $(PREFIX)/bin +-IMDIR= $(PREFIX)/man/man1 ++IMDIR= $(MANPREFIX)/man/man1 + BSD_INSTALL_PROGRAM ?= install -c -s -m 755 + BSD_INSTALL_MAN ?= install -c -m 644 + +@@ -19,6 +19,6 @@ + rm -f $(OBJS) $(EXE) + + install: all +- $(BSD_INSTALL_PROGRAM) $(EXE) $(IBDIR)/$(EXE) +- $(BSD_INSTALL_MAN) ${.CURDIR}/xmake.1 $(IMDIR)/xmake.1 ++ $(BSD_INSTALL_PROGRAM) $(EXE) $(DESTDIR)$(IBDIR)/$(EXE) ++ $(BSD_INSTALL_MAN) ${.CURDIR}/xmake.1 $(DESTDIR)$(IMDIR)/xmake.1 +