diff --git a/math/fxt/Makefile b/math/fxt/Makefile index 84c568c46bb9..ab821e469cdf 100644 --- a/math/fxt/Makefile +++ b/math/fxt/Makefile @@ -15,7 +15,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME} USES= gmake MAKEFILE= makefile -NO_STAGE= yes .include post-patch: @@ -28,12 +27,12 @@ post-patch: post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/00*.txt ${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/00*.txt ${STAGEDIR}${DOCSDIR}/ .endif .if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/) + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/) .endif plist: diff --git a/math/fxt/files/patch-makefile b/math/fxt/files/patch-makefile new file mode 100644 index 000000000000..293d5c5a2516 --- /dev/null +++ b/math/fxt/files/patch-makefile @@ -0,0 +1,22 @@ +--- makefile.orig 2014-06-18 20:52:27.430827185 +0800 ++++ makefile 2014-06-18 20:53:06.009833368 +0800 +@@ -127,13 +127,13 @@ install: lib + : '[$@]' + @echo 'PREFIX=$(PREFIX) LIBDIR=$(LIBDIR) INCDIR=$(INCDIR)' + @: +- @test -d $(INCDIR) || mkdir $(INCDIR) +- @$(FXT_INSTALL) $(FXTIDIR)/*.h $(INCDIR)/ +- @cd src && for f in $(SHFXTSRCDIRS); do mkdir -p $(INCDIR)/$$f; done +- @cd src && for f in $(SHFXTSRCDIRS); do $(FXT_INSTALL) $$f/*.h $(INCDIR)/$$f; done ++ @test -d $(DESTDIR)$(INCDIR) || mkdir $(DESTDIR)$(INCDIR) ++ @$(FXT_INSTALL) $(FXTIDIR)/*.h $(DESTDIR)$(INCDIR)/ ++ @cd src && for f in $(SHFXTSRCDIRS); do mkdir -p $(DESTDIR)$(INCDIR)/$$f; done ++ @cd src && for f in $(SHFXTSRCDIRS); do $(FXT_INSTALL) $$f/*.h $(DESTDIR)$(INCDIR)/$$f; done + @: +- @test -d $(LIBDIR) || mkdir $(LIBDIR) +- @$(FXT_INSTALL) $(FXTLIB) $(LIBDIR)/ ++ @test -d $(DESTDIR)$(LIBDIR) || mkdir $(DESTDIR)$(LIBDIR) ++ @$(FXT_INSTALL) $(FXTLIB) $(DESTDIR)$(LIBDIR)/ + : OK. + + .PHONY: chk-install ##x print whether installed header files are up to date