mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Fix the build against libmp4v2.so (it is built without GTK support by
default, which will result in HAVE_GTK macro be undefined, and gtkpod depends on it [*] - Correctly detect and record FAAC/FAAD runtime dependencies - Slightly improve on comment while here PR: ports/122639 [*] Submitted by: Kevin Oberman
This commit is contained in:
parent
508ef0f66a
commit
73a78cbd46
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=255184
@ -42,8 +42,15 @@ OPTIONS= MPEG4IP "Enable AAC and H.264 support with MPEG4IP" off \
|
||||
|
||||
.if defined(WITH_MPEG4IP) || exists(${LOCALBASE}/lib/libmp4v2.so)
|
||||
LIB_DEPENDS+= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
|
||||
RUN_DEPENDS+= faac:${PORTSDIR}/audio/faac faad:${PORTSDIR}/audio/faad
|
||||
# Define HAVE_GTK to unbreak the build with libmp4v2.so (it is built
|
||||
# without Gtk support by default, which can result in gtkpod breakage)
|
||||
MAKE_ARGS+= CPPFLAGS="-DHAVE_GTK"
|
||||
.endif
|
||||
.for x in faac faad
|
||||
. if exists(${LOCALBASE}/bin/${x})
|
||||
RUN_DEPENDS+= ${x}:${PORTSDIR}/audio/${x}
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
.if defined(WITH_VORBIS) || exists(${LOCALBASE}/lib/libvorbis.so)
|
||||
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
||||
@ -71,7 +78,7 @@ LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
|
||||
.endif
|
||||
|
||||
pre-configure: .SILENT
|
||||
# install locale correctly (share dir instead of lib dir)
|
||||
# Install locale files correctly (to share dir instead of lib dir)
|
||||
${REINPLACE_CMD} -e 's|DATADIRNAME=lib|DATADIRNAME=share|' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user