aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-04-06 07:54:48 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-04-06 07:54:48 +0800
commita3265ef7d719706f62f4b3cfa48230dff3a6d8b4 (patch)
tree4ff58c9eee74a991c1aa5226c99a7e27bbb86204
parent7ba6f0ca2f3d9d9a69a18a9fc3a997173d6cb7c8 (diff)
downloadfreebsd-ports-gnome-a3265ef7d719706f62f4b3cfa48230dff3a6d8b4.tar.gz
freebsd-ports-gnome-a3265ef7d719706f62f4b3cfa48230dff3a6d8b4.tar.zst
freebsd-ports-gnome-a3265ef7d719706f62f4b3cfa48230dff3a6d8b4.zip
- Add LICENSE_FILE
- Simplify installation - Strip library PR: 197850 Submitted by: amdmi3 Approved by: maintainer timeout
-rw-r--r--audio/portaudio/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/audio/portaudio/Makefile b/audio/portaudio/Makefile
index f31925fc99f2..abd9e386c6b3 100644
--- a/audio/portaudio/Makefile
+++ b/audio/portaudio/Makefile
@@ -3,7 +3,7 @@
PORTNAME= portaudio
PORTVERSION= 18.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
DISTNAME= ${PORTNAME}_v${PORTVERSION:S/./_/}
@@ -12,6 +12,7 @@ MAINTAINER= koalative@gmail.com
COMMENT= Portable cross-platform Audio API
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= gmake dos2unix zip
GNU_CONFIGURE= yes
@@ -26,13 +27,6 @@ SHLIB_VERSION= 0
PORTDOCS= *
-DOCSRCDIR1= ${WRKSRC}
-DOC_FILES1= README.txt index.html
-
-DOCSRCDIR2= ${WRKSRC}/docs
-DOCSDIR2= ${DOCSDIR}/docs
-DOC_FILES2= *.html *.txt *.pdf
-
OPTIONS_DEFINE= DOCS PATEST
OPTIONS_DEFAULT= PATEST
@@ -54,14 +48,12 @@ pre-configure:
post-install:
@${LN} -sf libportaudio.so \
${STAGEDIR}${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION}
-
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libportaudio.so
.if ${PORT_OPTIONS:MPATEST}
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin/
.endif
-
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} "README.txt index.html \
+ docs/*.html docs/*.txt docs/*.pdf" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>