diff options
Diffstat (limited to 'graphics/mplayer/Makefile')
-rw-r--r-- | graphics/mplayer/Makefile | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/graphics/mplayer/Makefile b/graphics/mplayer/Makefile new file mode 100644 index 0000000..4b60ab7 --- /dev/null +++ b/graphics/mplayer/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: mplayer +# Date created: 10 August 2001 +# Whom: Thomas E. Zander +# with lots of help from Vladimir Kushnir +# $FreeBSD$ +# + +PORTNAME= mplayer +PORTVERSION= 0.18 +CATEGORIES= graphics +MASTER_SITES= http://mp.dev.hu/MPlayer/releases/ \ + http://www.stud.uni-karlsruhe.de/~uedc/mplayer/ +DISTNAME= MPlayer-${PORTVERSION}pre +EXTRACT_SUFX= .tgz + +MAINTAINER= riggs@rrr.de + +ONLY_FOR_ARCHS= i386 + +WRKSRC= ${WRKDIR}/MPlayer-${PORTVERSION}pre5 +CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ + PTHREAD_LIBS="${PTHREAD_LIBS}" +CFLAGS+= -O3 -ffast-math -fomit-frame-pointer + +MAN1= mplayer.1 +MANCOMPRESSED= no + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_XLIB= yes + +LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png +RUN_DEPENDS= ${PREFIX}/share/mplayer/fonts:${PORTSDIR}/graphics/mplayer-fonts + +CONFIGURE_ARGS+=--disable-esd \ + --enable-mmx2 \ + --enable-3dnow \ + --enable-3dnowex + +.if defined(WITH_SDL) +LIB_DEPENDS+= SDL-1.1.3:${PORTSDIR}/devel/sdl12 +.else +BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm +.endif + +.if defined(USE_AVIFILE_CODECS) +BUILD_DEPENDS+= ${PREFIX}/lib/win32:${PORTSDIR}/graphics/win32-codecs +.else +BUILD_DEPENDS+= ${PREFIX}/lib/mplayer-codecs:${PORTSDIR}/graphics/mplayer-codecs +CONFIGURE_ARGS+=--with-win32libdir=${LOCALBASE}/lib/mplayer-codecs +.endif + +post-install: + @${MKDIR} ${PREFIX}/share/mplayer + @${CHMOD} 755 ${PREFIX}/share/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/codecs.conf ${PREFIX}/share/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/example.conf ${PREFIX}/share/mplayer +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/mplayer + @${CHMOD} 755 ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/DGA ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/FREEBSD ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/MPlayer-FAQ ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/OpenDivX ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/README ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/SDL ${PREFIX}/share/doc/mplayer + @${INSTALL_DATA} ${WRKSRC}/DOCS/VIDEOCARDS ${PREFIX}/share/doc/mplayer +.endif + @${CAT} pkg-message + +install-user: + @${PERL} ${FILESDIR}/install-user + +.include <bsd.port.mk> |