diff options
author | Jimmy Olgeni <olgeni@FreeBSD.org> | 2010-09-30 20:05:20 +0000 |
---|---|---|
committer | Jimmy Olgeni <olgeni@FreeBSD.org> | 2010-09-30 20:05:20 +0000 |
commit | 2ae704fad38d8a591e9127f6a9ab988b39e469df (patch) | |
tree | b149ad576370674867cad9cdbb387039750e6872 /net-im/ejabberd | |
parent | 81cd33b2839a329ac06b3639c7726351b0030d72 (diff) | |
download | ports-2ae704fad38d8a591e9127f6a9ab988b39e469df.tar.gz ports-2ae704fad38d8a591e9127f6a9ab988b39e469df.zip |
Teach the original Makefile about NOPORTDOCS.
Reported by: QAT
Notes
Notes:
svn path=/head/; revision=262207
Diffstat (limited to 'net-im/ejabberd')
-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 + |