blob: c309c116f629eea315c21185eeabe47876e8033d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $FreeBSD$
PORTNAME= opusfile
PORTVERSION= 0.7
CATEGORIES= audio
MASTER_SITES= http://downloads.xiph.org/releases/opus/ \
MOZILLA/opus
MAINTAINER= liangtai.s16@gmail.com
COMMENT= Opus playback library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
libopus.so:${PORTSDIR}/audio/opus
USES= autoreconf gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
PATHFIX_MAKEFILEIN= Makefile.am
PORTDOCS= AUTHORS README.txt
OPTIONS_DEFINE= DOXYGEN DOCS
OPTIONS_DEFAULT= # empty
DOXYGEN_CONFIGURE_ENABLE= doc
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
CONFIGURE_ARGS+= --disable-examples
INSTALL_TARGET= install-strip
post-patch:
@${GREP} -l '@openssl@' ${WRKSRC}/opusurl.pc.in | \
${XARGS} ${REINPLACE_CMD} -e 's| @openssl@||'
@${GREP} -L 'src/ftime.c' ${WRKSRC}/Makefile.am | \
${XARGS} ${REINPLACE_CMD} -e '/dist_doc_DATA/s/COPYING//' \
-e '/libopusurl_la_SOURCES/s|= \(src/http\.c\)|= src/ftime.c \1|'
@${CP} ${FILESDIR}/ftime.c ${WRKSRC}/src/
post-install-DOXYGEN-on:
@${RM} -f ${WRKDIR}/PLIST.doc ; \
${FIND} ${STAGEDIR}${DOCSDIR}/html -type f | \
${SED} 's|${STAGEDIR}${PREFIX}/||' \
>> ${WRKDIR}/PLIST.doc ; \
(cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST})
.include <bsd.port.mk>
|