Lines 12-17
Link Here
|
12 |
COMMENT= Portable cross-platform Audio API |
12 |
COMMENT= Portable cross-platform Audio API |
13 |
|
13 |
|
14 |
LICENSE= MIT |
14 |
LICENSE= MIT |
|
|
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
15 |
|
16 |
|
16 |
USES= gmake dos2unix zip |
17 |
USES= gmake dos2unix zip |
17 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
Lines 26-38
Link Here
|
26 |
|
27 |
|
27 |
PORTDOCS= * |
28 |
PORTDOCS= * |
28 |
|
29 |
|
29 |
DOCSRCDIR1= ${WRKSRC} |
|
|
30 |
DOC_FILES1= README.txt index.html |
31 |
|
32 |
DOCSRCDIR2= ${WRKSRC}/docs |
33 |
DOCSDIR2= ${DOCSDIR}/docs |
34 |
DOC_FILES2= *.html *.txt *.pdf |
35 |
|
36 |
OPTIONS_DEFINE= DOCS PATEST |
30 |
OPTIONS_DEFINE= DOCS PATEST |
37 |
OPTIONS_DEFAULT= PATEST |
31 |
OPTIONS_DEFAULT= PATEST |
38 |
|
32 |
|
Lines 45-51
Link Here
|
45 |
post-patch: |
39 |
post-patch: |
46 |
@${REINPLACE_CMD} -e 's|#include <malloc.h>|#include <stdlib.h>|' ${WRKSRC}/pa_unix_oss/pa_unix.h |
40 |
@${REINPLACE_CMD} -e 's|#include <malloc.h>|#include <stdlib.h>|' ${WRKSRC}/pa_unix_oss/pa_unix.h |
47 |
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' ${WRKSRC}/pa_unix_oss/pa_unix_oss.c |
41 |
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' ${WRKSRC}/pa_unix_oss/pa_unix_oss.c |
48 |
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure ${WRKSRC}/configure.in \ |
42 |
@${REINPLACE_CMD} -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure ${WRKSRC}/configure.in \ |
49 |
${WRKSRC}/pa_unix_oss/Makefile |
43 |
${WRKSRC}/pa_unix_oss/Makefile |
50 |
|
44 |
|
51 |
pre-configure: |
45 |
pre-configure: |
Lines 54-67
Link Here
|
54 |
post-install: |
48 |
post-install: |
55 |
@${LN} -sf libportaudio.so \ |
49 |
@${LN} -sf libportaudio.so \ |
56 |
${STAGEDIR}${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION} |
50 |
${STAGEDIR}${PREFIX}/lib/libportaudio.so.${SHLIB_VERSION} |
57 |
|
51 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libportaudio.so |
58 |
.if ${PORT_OPTIONS:MPATEST} |
52 |
.if ${PORT_OPTIONS:MPATEST} |
59 |
${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin/ |
53 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin/ |
60 |
.endif |
54 |
.endif |
61 |
|
|
|
62 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
55 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
63 |
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} |
56 |
(cd ${WRKSRC} && ${COPYTREE_SHARE} "README.txt index.html \ |
64 |
@${MKDIR} ${STAGEDIR}${DOCSDIR2} |
57 |
docs/*.html docs/*.txt docs/*.pdf" ${STAGEDIR}${DOCSDIR}) |
65 |
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} |
|
|
66 |
|
58 |
|
67 |
.include <bsd.port.mk> |
59 |
.include <bsd.port.mk> |