diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2004-12-19 01:59:40 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2004-12-19 01:59:40 +0000 |
commit | 6e271ee0dae4e4014002ccabc59b89e047e4fcae (patch) | |
tree | 488ab674fb02c379045f60b8bd4ce2c4efbc3491 /multimedia/handbrake-gtk2/Makefile | |
parent | 111c8ce3c18f9d9d100a63d270ff1873e320c5c9 (diff) |
- Remove ffmpeg snapshot and depend on multimedia/ffmpeg
- Move multimedia/mpeg4ip dependency to multimedia/mpeg4ip-libmp4v2
- Fix build on some configurations on 4.x
- Bump PORTREVISION
PR: ports/74754
Submitted by: Andrew Thompson (maintainer)
Notes
Notes:
svn path=/head/; revision=124460
Diffstat (limited to 'multimedia/handbrake-gtk2/Makefile')
-rw-r--r-- | multimedia/handbrake-gtk2/Makefile | 53 |
1 files changed, 6 insertions, 47 deletions
diff --git a/multimedia/handbrake-gtk2/Makefile b/multimedia/handbrake-gtk2/Makefile index 8012a975a15c..95290ce90d08 100644 --- a/multimedia/handbrake-gtk2/Makefile +++ b/multimedia/handbrake-gtk2/Makefile @@ -7,12 +7,10 @@ PORTNAME= handbrake PORTVERSION= 0.6.2 +PORTREVISION= 1 CATEGORIES= multimedia -MASTER_SITES= http://people.via.ecp.fr/~titer/handbrake/ \ - http://download.videolan.org/pub/videolan/vlc/0.8.1/contrib/:ffmpeg -DISTFILES= HandBrake-${PORTVERSION}-src${EXTRACT_SUFX} \ - ${FFMPEG_DIST}:ffmpeg -EXTRACT_ONLY= HandBrake-${PORTVERSION}-src${EXTRACT_SUFX} +MASTER_SITES= http://people.via.ecp.fr/~titer/handbrake/ +DISTNAME= HandBrake-${PORTVERSION}-src MAINTAINER= andy@fud.org.nz COMMENT= A DVD to MPEG-4 ripper and encoder @@ -20,20 +18,18 @@ COMMENT= A DVD to MPEG-4 ripper and encoder BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam \ nasm:${PORTSDIR}/devel/nasm LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \ + avcodec.1:${PORTSDIR}/multimedia/ffmpeg \ dvdcss.2:${PORTSDIR}/multimedia/libdvdcss \ dvdread.3:${PORTSDIR}/multimedia/libdvdread \ faac.0:${PORTSDIR}/audio/faac \ mp3lame.0:${PORTSDIR}/audio/lame \ - mp4.0:${PORTSDIR}/multimedia/mpeg4ip \ + mp4v2.0:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2 \ mpeg2.0:${PORTSDIR}/multimedia/libmpeg2 \ ogg.5:${PORTSDIR}/audio/libogg \ samplerate.1:${PORTSDIR}/audio/libsamplerate \ vorbis.3:${PORTSDIR}/audio/libvorbis \ xvidcore.4:${PORTSDIR}/multimedia/xvid -FFMPEG_SNAP= 20041113 -FFMPEG_DIST= ffmpeg-${FFMPEG_SNAP}.tar.bz2 -FFMPEG_SRC_DIR= ${WRKDIR}/ffmpeg-${FFMPEG_SNAP} PLIST_FILES= bin/handbrake WRKSRC= ${WRKDIR}/HandBrake-${PORTVERSION} @@ -43,35 +39,16 @@ USE_X_PREFIX= yes SYSCTL_CMD?= /sbin/sysctl -FFMPEG_CONFIGURE_ARGS+= --enable-gpl --disable-ffserver \ - --enable-memalign-hack \ - --cc="${CC}" \ - --make="${GMAKE}" \ - --extra-ldflags="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - --extra-cflags="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \ - --extra-libs"-lm" \ - --disable-debug \ - --enable-pp \ - --enable-pthreads \ - --enable-faac \ - --enable-mp3lame \ - --enable-a52 \ - --enable-xvid - .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 USE_GETOPT_LONG= yes -MAKE_ENV= EXTRA_LIBS="-lcipher" +MAKE_ENV= EXTRA_LIBS="-lcipher -lgnugetopt" WITH_DVD_DEVICE?= acd0c .else WITH_DVD_DEVICE?= acd0 .endif -post-extract: - cd ${WRKDIR}; ${BZIP2_CMD} ${EXTRACT_BEFORE_ARGS} \ - ${_DISTDIR}/${FFMPEG_DIST} ${EXTRACT_AFTER_ARGS} - do-build: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} jam) @@ -91,23 +68,5 @@ post-patch: # sysctl @${REINPLACE_CMD} -e 's|/usr/sbin/sysctl|${SYSCTL_CMD}|' \ ${BUILD_WRKSRC}/core/HandBrake.c -# ffmpeg -.if ${OSVERSION} < 502119 - @${REINPLACE_CMD} -e 's|roundf|rintf|' \ - ${FFMPEG_SRC_DIR}/libavcodec/xvidff.c -.endif - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \ - -e 's|-Wall||' \ - ${FFMPEG_SRC_DIR}/configure - cd ${FFMPEG_SRC_DIR} && \ - ${PATCH} -p0 < ${PATCHDIR}/ffmpeg-patch - -pre-configure: - cd ${FFMPEG_SRC_DIR} \ - && ${SETENV} ${SCRIPTS_ENV} ${CONFIGURE_ENV} \ - ${SH} ./configure ${CONFIGURE_ARGS} ${FFMPEG_CONFIGURE_ARGS} - cd ${FFMPEG_SRC_DIR}/libavcodec \ - && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile \ - ${MAKE_ARGS} all .include <bsd.port.post.mk> |