1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Backout previous commit because the rest of the updates can't be

tested because I'm still on 5.2.1 and I can't compile gcc34 and the
only packages for gcc34 I find are 4.10 or 5.3. Bummer!
This commit is contained in:
Edwin Groothuis 2004-10-14 05:13:43 +00:00
parent d64b9651d4
commit 83f0022166
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119360
2 changed files with 45 additions and 6 deletions

View File

@ -7,16 +7,16 @@
PORTNAME= faad2
PORTVERSION= 2.0
PORTREVISION= 5
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= faac
MAINTAINER= ahze@ahze.net
COMMENT= A LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder
LIB_DEPENDS= mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \
sndfile.1:${PORTSDIR}/audio/libsndfile
LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile
WRKSRC= ${WRKDIR}/${PORTNAME}
@ -31,8 +31,9 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER=13
USE_REINPLACE= yes
WANT_SDL= yes
CONFIGURE_ARGS= --with-drm
CONFIGURE_ARGS= --with-mp4v2 --with-drm
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
@ -40,6 +41,27 @@ INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
.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:
@ -49,7 +71,11 @@ post-patch:
${SETENV} ${SCRIPTS_ENV} ${LIBTOOLIZE} --automake
@${REINPLACE_CMD} -e 's|$$lt_target|$$host|' \
${WRKSRC}/aclocal.m4
@${ECHO_CMD} "SUBDIRS = libfaad common frontend" > \
.if !defined(WITHOUT_MPEG4IP)
@${REINPLACE_CMD} -e 's|<SDL|<SDL11|' \
${WRKSRC}/plugins/mpeg4ip/faad2.cpp
.endif
@${ECHO_CMD} "SUBDIRS = libfaad common frontend plugins" > \
${WRKSRC}/Makefile.am
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|stdint.h|sys/inttypes.h|' \
@ -60,5 +86,9 @@ 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>

View File

@ -7,3 +7,12 @@ 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