diff options
author | olgeni <olgeni@FreeBSD.org> | 2010-10-01 04:05:20 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2010-10-01 04:05:20 +0800 |
commit | 3cd8bfd23c646d04cbfe2379ff6583f9c490943a (patch) | |
tree | 4434ca13ce3955ed8710498c5f18d2cec89e3e43 | |
parent | 2c70230681aaf34879d460a161bcdd190a3de98e (diff) | |
download | freebsd-ports-gnome-3cd8bfd23c646d04cbfe2379ff6583f9c490943a.tar.gz freebsd-ports-gnome-3cd8bfd23c646d04cbfe2379ff6583f9c490943a.tar.zst freebsd-ports-gnome-3cd8bfd23c646d04cbfe2379ff6583f9c490943a.zip |
Teach the original Makefile about NOPORTDOCS.
Reported by: QAT
-rw-r--r-- | net-im/ejabberd/Makefile | 7 | ||||
-rw-r--r-- | net-im/ejabberd/files/patch-src-Makefile.in | 26 |
2 files changed, 25 insertions, 8 deletions
diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile index 7d4823fa5f80..888ec5828561 100644 --- a/net-im/ejabberd/Makefile +++ b/net-im/ejabberd/Makefile @@ -54,10 +54,11 @@ PLIST_SUB+= ODBC="" PLIST_SUB+= ODBC="@comment " .endif -post-patch: -.ifdef NOPORTDOCS - @${REINPLACE_CMD} -e '/DOCDIR)$$/s/^/#/g' ${WRKSRC}/Makefile.in +.if defined(NOPORTDOCS) +MAKE_ARGS+= NOPORTDOCS=${NOPORTDOCS} .endif + +post-patch: @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/configure post-install: diff --git a/net-im/ejabberd/files/patch-src-Makefile.in b/net-im/ejabberd/files/patch-src-Makefile.in index 2fa179d27052..076cde8ea655 100644 --- a/net-im/ejabberd/files/patch-src-Makefile.in +++ b/net-im/ejabberd/files/patch-src-Makefile.in @@ -1,6 +1,6 @@ ---- Makefile.in.orig 2010-03-12 11:40:41.000000000 +0100 -+++ Makefile.in 2010-04-08 17:23:18.000000000 +0200 -@@ -82,7 +82,7 @@ +--- Makefile.in.orig ++++ Makefile.in +@@ -89,7 +89,7 @@ SBINDIR = $(DESTDIR)@sbindir@ # /lib/ejabberd/ @@ -9,7 +9,7 @@ # /share/doc/ejabberd PACKAGE_TARNAME = @PACKAGE_TARNAME@ -@@ -108,7 +108,7 @@ +@@ -115,7 +115,7 @@ MSGSDIR = $(PRIVDIR)/msgs # /var/lib/ejabberd/ @@ -18,7 +18,7 @@ # /var/lock/ejabberdctl CTLLOCKDIR = $(DESTDIR)@localstatedir@/lock/ejabberdctl -@@ -171,25 +171,22 @@ +@@ -178,25 +178,22 @@ # # Configuration files install -d -m 750 $(G_USER) $(ETCDIR) @@ -51,3 +51,19 @@ # # Init script sed -e "s*@ctlscriptpath@*$(SBINDIR)*" \ +@@ -253,6 +250,7 @@ + chmod -R 750 $(LOGDIR) + # + # Documentation ++ifndef NOPORTDOCS + install -d $(DOCDIR) + install -m 644 ../doc/dev.html $(DOCDIR) + install -m 644 ../doc/guide.html $(DOCDIR) +@@ -262,6 +260,7 @@ + && install -m 644 ../doc/guide.pdf $(DOCDIR) \ + || echo "No ../doc/guide.pdf was built" + install -m 644 ../COPYING $(DOCDIR) ++endif + + uninstall: uninstall-binary + |