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

- Autosense SDL, FAAD, add knobs for them

- Use nasm for MMX assembly on i386

PR:		ports/69499
Submitted by:	Michael Johnson <ahze@ahze.net>
Approved by:	maintainer
This commit is contained in:
Pav Lucistnik 2004-07-25 23:15:00 +00:00
parent 36cec38eb9
commit 8c8628a022
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114720

View File

@ -24,6 +24,7 @@ USE_REINPLACE= yes
USE_X_PREFIX= yes
USE_LIBTOOL_VER=15
USE_GNOME= gnomeprefix gnomehack gtk20
WANT_SDL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
-I${LOCALBASE}/include/ffmpeg \
@ -37,6 +38,14 @@ USE_GMAKE= yes
.include <bsd.port.pre.mk>
#.if ${HAVE_SDL:Msdl}!=""
#WITH_SDL= yes
#.endif
.if exists(${LOCALBASE}/lib/libfaad.so.0)
WITH_FAAD= yes
.endif
.if exists(${LOCALBASE}/bin/mpeg2enc)
WITH_MPEGENC= yes
.endif
@ -60,12 +69,22 @@ CONFIGURE_ARGS+= --with-xvid-as-decoder
.if ${ARCH} != "i386"
CONFIGURE_ARGS+= --disable-mmx
.else
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif
.if defined(WITH_A52)
LIB_DEPENDS+= a52.0:${PORTSDIR}/audio/liba52
.endif
.if defined(WITH_SDL)
USE_SDL+= sdl
.endif
.if defined(WITH_FAAD)
LIB_DEPENDS+= faad.0:${PORTSDIR}/audio/faad
.endif
pre-everything::
.if !defined(WITH_MPEGENC)
@${ECHO_MSG} "To enable mpeg support define WITH_MPEGENC."
@ -79,6 +98,14 @@ pre-everything::
@${ECHO_MSG} "To enable A/52 support define WITH_A52."
.endif
.if !defined(WITH_SDL)
@${ECHO_MSG} "To enable SDL support define WITH_SDL."
.endif
.if !defined(WITH_FAAD)
@${ECHO_MSG} "To enable FAAD (mpeg4/aac) support define WITH_FAAD."
.endif
post-patch:
@${TOUCH} ${WRKSRC}/*
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure ${WRKSRC}/*/*/Makefile
@ -87,5 +114,9 @@ post-patch:
@${REINPLACE_CMD} 's|ADM_LOCALEDIR=$${datadir}/locale|ADM_LOCALEDIR=${PREFIX}/share/locale|' ${WRKSRC}/configure
@${REINPLACE_CMD} "s|-O2|${CFLAGS}|" ${WRKSRC}/adm_lavcodec/Makefile
@${REINPLACE_CMD} "s|-O2||" ${WRKSRC}/configure
@${REINPLACE_CMD} 's|SDL/|SDL11/|' \
${WRKSRC}/avidemux/ADM_audiodevice/ADM_deviceSDL.cpp \
${WRKSRC}/avidemux/ADM_gui2/GUI_sdlDraw.cpp \
${WRKSRC}/avidemux/main.cpp
.include <bsd.port.post.mk>