summaryrefslogtreecommitdiff
path: root/audio/libsamplerate
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-10-03 00:16:37 +0000
committerSteve Wills <swills@FreeBSD.org>2011-10-03 00:16:37 +0000
commite2000656d60d5d084fcad50748e89f5abeb3c8a1 (patch)
tree0b53789f6940e648270ce47e19182b25d502aa2e /audio/libsamplerate
parent- Remove duplicate test dependency (diff)
- Support NOPORTDOCS
PR: ports/160720 Submitted by: Takefu <takefu@airport.fm>
Notes
Notes: svn path=/head/; revision=282840
Diffstat (limited to 'audio/libsamplerate')
-rw-r--r--audio/libsamplerate/Makefile5
-rw-r--r--audio/libsamplerate/pkg-plist32
2 files changed, 21 insertions, 16 deletions
diff --git a/audio/libsamplerate/Makefile b/audio/libsamplerate/Makefile
index 66a516f20ad4..9061cbc923bb 100644
--- a/audio/libsamplerate/Makefile
+++ b/audio/libsamplerate/Makefile
@@ -25,4 +25,9 @@ USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
MAKE_ARGS= htmldocdir=${PREFIX}/share/doc/libsamplerate
+pre-install:
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e 's/SUBDIRS = M4 src doc examples tests/SUBDIRS = M4 src examples tests/' ${WRKSRC}/Makefile
+.endif
+
.include <bsd.port.mk>
diff --git a/audio/libsamplerate/pkg-plist b/audio/libsamplerate/pkg-plist
index ce91b5ea44bb..fa0dbf71d842 100644
--- a/audio/libsamplerate/pkg-plist
+++ b/audio/libsamplerate/pkg-plist
@@ -5,19 +5,19 @@ lib/libsamplerate.la
lib/libsamplerate.so
lib/libsamplerate.so.1
libdata/pkgconfig/samplerate.pc
-%%DOCSDIR%%/SRC.css
-%%DOCSDIR%%/SRC.png
-%%DOCSDIR%%/api.html
-%%DOCSDIR%%/api_callback.html
-%%DOCSDIR%%/api_full.html
-%%DOCSDIR%%/api_misc.html
-%%DOCSDIR%%/api_simple.html
-%%DOCSDIR%%/download.html
-%%DOCSDIR%%/faq.html
-%%DOCSDIR%%/history.html
-%%DOCSDIR%%/index.html
-%%DOCSDIR%%/license.html
-%%DOCSDIR%%/lists.html
-%%DOCSDIR%%/quality.html
-%%DOCSDIR%%/win32.html
-@dirrm %%DOCSDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/SRC.css
+%%PORTDOCS%%%%DOCSDIR%%/SRC.png
+%%PORTDOCS%%%%DOCSDIR%%/api.html
+%%PORTDOCS%%%%DOCSDIR%%/api_callback.html
+%%PORTDOCS%%%%DOCSDIR%%/api_full.html
+%%PORTDOCS%%%%DOCSDIR%%/api_misc.html
+%%PORTDOCS%%%%DOCSDIR%%/api_simple.html
+%%PORTDOCS%%%%DOCSDIR%%/download.html
+%%PORTDOCS%%%%DOCSDIR%%/faq.html
+%%PORTDOCS%%%%DOCSDIR%%/history.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/license.html
+%%PORTDOCS%%%%DOCSDIR%%/lists.html
+%%PORTDOCS%%%%DOCSDIR%%/quality.html
+%%PORTDOCS%%%%DOCSDIR%%/win32.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%