freebsd-ports/multimedia/mplayerxp/Makefile
Dirk Meyer f0b0ed72c7 New Port:
This is the port of mplayer, a project which has the effort
to become a very stable and useful movie player.

It is based on the windows codec compilation and
provides the ability to play many formats
in a very good quality without much CPU comsumption.

WWW: http://mplayer.sourceforge.net

PR:		29944
Submitted by:	riggs@f113.hadiko.de
2001-08-22 06:11:11 +00:00

74 lines
2.2 KiB
Makefile

# 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>