blob: 8158ae8b83d1d0fc338cbfab4c77e2d73fd119ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile.common,v 1.10 2002/05/07 22:02:05 wiz Exp $
MPLAYER_DIST_VERSION= 0.90pre3
MPLAYER_PKG_VERSION= ${MPLAYER_DIST_VERSION:S/pre/rc/}
DISTNAME= MPlayer-${MPLAYER_DIST_VERSION}
CATEGORIES?= graphics
MASTER_SITES= http://www.mplayerhq.hu/MPlayer/releases/
EXTRACT_SUFX= .tar.bz2
MAINTAINER?= svs@ropnet.ru,zuntum@netbsd.org
HOMEPAGE?= http://www.mplayerhq.hu/
PATCHDIR= ${.CURDIR}/../mplayer/patches
ONLY_FOR_PLATFORM= NetBSD-*-i386
RESTRICTED?= "unsure of the license"
# see http://www.mplayerhq.hu/DOCS/users_against_developers.html#binary
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
# no source on the ftp server because of the css source code in it
NO_SRC_ON_FTP= ${RESTRICTED}
USE_X11= YES
USE_GMAKE= YES
HAS_CONFIGURE= YES
USE_PTHREAD= native pth
CONFIGURE_ARGS+= --prefix="${PREFIX}"
CONFIGURE_ARGS+= --with-extraincdir="${BUILDLINK_DIR}/include"
CONFIGURE_ARGS+= --with-extralibdir="${LOCALBASE}/lib"
CONFIGURE_ARGS+= --with-win32libdir="${LOCALBASE}/lib/win32"
#CONFIGURE_ARGS+= --enable-dvdread
CONFIGURE_ARGS+= --disable-mpdvdkit
# The configure script attempts to test-execute compiled programs in /tmp,
# but that directory may be mounted as noexec; work this around by setting
# TMPDIR to ${WRKDIR}
CONFIGURE_ENV+= TMPDIR=${WRKDIR}
.include "../../mk/bsd.prefs.mk"
# The package needs GNU "as" 2.11 or newer to build.
#
AS_VERSION!= ${AS} --version | ${AWK} 'NR==1 {print $$3}'
.if ${AS_VERSION:M2.1[1-9]*} == ""
CONFIGURE_ARGS+= --as="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/as"
CONFIGURE_ENV+= GCC_EXEC_PREFIX="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/"
MAKE_ENV+= GCC_EXEC_PREFIX="${LOCALBASE}/${MACHINE_GNU_PLATFORM}/bin/"
.include "../../devel/binutils/buildlink.mk"
.include "../../lang/gcc/Makefile.gcc"
.endif
|