pkgsrc-wip/mplayer-mt/Makefile.common

50 lines
1.4 KiB
Makefile

# $NetBSD: Makefile.common,v 1.2 2009/07/21 13:25:04 koifren Exp $
CATEGORIES?= multimedia
MASTER_SITES= http://kefren.netbsd.ro/ \
http://just.mooo.com/
EXTRACT_SUFX= .tar.bz2
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.mplayerhq.hu/
#
# NOTE: gmplayer has its own distinfo file. if you are also updating
# gmplayer, you must ensure that *both* distinfo files contain the
# correct, up-to-date files and checksums.
#
# NOTE: patches are shared between mplayer and gmplayer!
#
RESTRICTED= Prohibited by USAs DMCA and patent law
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_SRC_ON_FTP= ${RESTRICTED}
USE_TOOLS+= gmake
HAS_CONFIGURE= YES
PTHREAD_OPTS+= require
CONFIGURE_ARGS+= --prefix=${PREFIX} \
# --with-extraincdir="${LOCALBASE}/include:${LOCALBASE}/include/faad2:${LOCALBASE}/include/cdparanoia:${LOCALBASE}/include/freetype2" \
--with-extralibdir="${LOCALBASE}/lib" \
--disable-dvdread-internal --disable-smb
ONLY_FOR_COMPILER= gcc
# 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 configure script misdetects endianness on mipseb
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb"
CONFIGURE_ARGS+= --enable-big-endian
.endif
.include "options.mk"