# $NetBSD: Makefile.common,v 1.48 2010/10/24 21:56:51 ahoka Exp $ # used by multimedia/gmplayer/Makefile # used by multimedia/mencoder/Makefile # used by multimedia/mplayer/Makefile MPLAYER_SNAPSHOT_DATE= 2010-09-13 MPLAYER_VERSION= 1.0rc${MPLAYER_SNAPSHOT_DATE:S/-//g} DISTNAME= mplayer-${MPLAYER_SNAPSHOT_DATE:S/-//g} CATEGORIES?= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=commondistfiles/} EXTRACT_SUFX= .tar.bz2 DIST_SUBDIR= mplayer WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE} 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! # PATCHDIR= ${.CURDIR}/../../multimedia/mplayer-share/patches DISTINFO_FILE= ${.CURDIR}/../../multimedia/mplayer-share/distinfo 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:Q} \ #--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:Q} .include "../../mk/bsd.prefs.mk" # The configure script misdetects endianness on mipseb .if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "mipseb" CONFIGURE_ARGS+= --enable-big-endian .endif .if !empty(MACHINE_PLATFORM:MNetBSD-*-arm) # Avoid crash with system include file: pre-patch: mv ${WRKSRC}/libavutil/arm/bswap.h ${WRKSRC}/libavutil/arm/avbswap.h SUBST_CLASSES+= arm_bswap SUBST_STAGE.arm_bswap= pre-configure SUBST_FILES.arm_bswap= libavutil/bswap.h SUBST_SED.arm_bswap= -e s,\"arm/bswap.h\",\"arm/avbswap.h\",g SUBST_MESSAGE.arm_bswap= Fixing "arm/bswap.h" conflict in libavutil # autodetect code enables these options on NetBSD/arm but it should not CONFIGURE_ARGS+= --disable-armv5te --disable-armv6 --disable-armv6t2 .endif .include "../../multimedia/mplayer-share/options.mk"