mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
o Have faad depend on mpeg4ip-libmp4v2 so mpeg4ip can use faad
o Bump PORTREVISION PR: 72205 Submitted by: ahze
This commit is contained in:
parent
bc96b55f4b
commit
1bc9fd359f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121270
@ -7,16 +7,17 @@
|
||||
|
||||
PORTNAME= faad2
|
||||
PORTVERSION= 2.0
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= faac
|
||||
|
||||
MAINTAINER= ahze@FreeBSD.org
|
||||
COMMENT= A LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder
|
||||
|
||||
LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile
|
||||
LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
|
||||
sndfile.1:${PORTSDIR}/audio/libsndfile
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
@ -31,9 +32,8 @@ GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_INC_LIBTOOL_VER=13
|
||||
USE_REINPLACE= yes
|
||||
WANT_SDL= yes
|
||||
|
||||
CONFIGURE_ARGS= --with-mp4v2 --with-drm
|
||||
CONFIGURE_ARGS= --with-drm
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
||||
|
||||
@ -48,27 +48,6 @@ WITHOUT_MPEG4IP=yes
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_MPEG4IP)
|
||||
PLIST_SUB+= WITHOUT_MPEG4IP="" PLUGIN="@comment "
|
||||
.else
|
||||
LIB_DEPENDS+= mp4.0:${PORTSDIR}/multimedia/mpeg4ip
|
||||
USE_SDL= sdl
|
||||
PLIST_SUB+= WITHOUT_MPEG4IP="@comment " PLUGIN=""
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} "===>"
|
||||
.if !defined(WITHOUT_MPEG4IP)
|
||||
@${ECHO_MSG} "===> you can disable mpeg4ip support by"
|
||||
@${ECHO_MSG} "===> defining WITHOUT_MPEG4IP"
|
||||
.else
|
||||
@${ECHO_MSG} "===> WARNING: WITHOUT_MPEG4IP is defined"
|
||||
@${ECHO_MSG} "===> Having WITHOUT_MPEG4IP defined conflicts"
|
||||
@${ECHO_MSG} "===> with multimedia/mpeg4ip and you will not"
|
||||
@${ECHO_MSG} "===> be able to install mpeg4ip after you install faad2"
|
||||
.endif
|
||||
@${ECHO_MSG} "===>"
|
||||
|
||||
pre-patch: build-depends
|
||||
|
||||
post-patch:
|
||||
@ -78,11 +57,7 @@ post-patch:
|
||||
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
|
||||
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
|
||||
${WRKSRC}/aclocal.m4
|
||||
.if !defined(WITHOUT_MPEG4IP)
|
||||
@${REINPLACE_CMD} -e 's|<SDL|<SDL11|' \
|
||||
${WRKSRC}/plugins/mpeg4ip/faad2.cpp
|
||||
.endif
|
||||
@${ECHO_CMD} "SUBDIRS = libfaad common frontend plugins" > \
|
||||
@${ECHO_CMD} "SUBDIRS = libfaad common frontend" > \
|
||||
${WRKSRC}/Makefile.am
|
||||
.if ${OSVERSION} < 500000
|
||||
@${REINPLACE_CMD} -e 's|stdint.h|sys/inttypes.h|' \
|
||||
@ -93,9 +68,5 @@ post-patch:
|
||||
${XARGS} -n 5 -x \
|
||||
${REINPLACE_CMD} -e \
|
||||
's|-O2|${CFLAGS}|'
|
||||
post-install:
|
||||
.if defined(WITHOUT_MPEG4IP)
|
||||
@${INSTALL_DATA} ${WRKSRC}/common/mp4v2/systems.h ${PREFIX}/include
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -7,12 +7,3 @@ lib/libfaad.so.0
|
||||
lib/libmp4ff.a
|
||||
lib/libmp4ff.so
|
||||
lib/libmp4ff.so.0
|
||||
%%PLUGIN%%lib/mp4player_plugin/faad2_plugin.a
|
||||
%%PLUGIN%%lib/mp4player_plugin/faad2_plugin.so
|
||||
%%PLUGIN%%lib/mp4player_plugin/faad2_plugin.so.0
|
||||
%%WITHOUT_MPEG4IP%%include/mp4.h
|
||||
%%WITHOUT_MPEG4IP%%include/mpeg4ip.h
|
||||
%%WITHOUT_MPEG4IP%%include/systems.h
|
||||
%%WITHOUT_MPEG4IP%%lib/libmp4v2.a
|
||||
%%WITHOUT_MPEG4IP%%lib/libmp4v2.so
|
||||
%%WITHOUT_MPEG4IP%%lib/libmp4v2.so.0
|
||||
|
Loading…
Reference in New Issue
Block a user