mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- Drop optional mp4v2 from faad support
PR: ports/70464 Submitted by: Michael Johnson <ahze@ahze.net> Approved by: maintainer
This commit is contained in:
parent
72bf9f2483
commit
48f4a1d602
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116377
@ -29,21 +29,12 @@ GNU_CONFIGURE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libmp4v2.so)
|
||||
.if exists(${LOCALBASE}/include/mpeg4ip_config.h)
|
||||
WITH_AAC= YES
|
||||
.else
|
||||
WITH_FAAD= YES
|
||||
.endif
|
||||
.endif
|
||||
.if defined(WITH_AAC) && defined(WITH_FAAD)
|
||||
BROKEN= "WITH_AAC and WITH_FAAD are exclusive."
|
||||
.endif
|
||||
|
||||
.if defined(WITH_AAC)
|
||||
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip
|
||||
.endif
|
||||
.if defined(WITH_FAAD)
|
||||
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/audio/faad
|
||||
.endif
|
||||
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||
@ -52,7 +43,6 @@ CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||
pre-everything::
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "To enable AAC support with mpeg4ip define the WITH_AAC knob."
|
||||
@${ECHO_MSG} "To enable AAC support with faad2 define the WITH_FAAD knob."
|
||||
@${ECHO_MSG}
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user