From 2237f7a69b3f945846f5a4fb202d19f7e16dd813 Mon Sep 17 00:00:00 2001 From: ahoka Date: Fri, 12 Jun 2009 20:26:30 +0000 Subject: Add a missing file from the previous commit. Thanks David! --- multimedia/ffmpeg/Makefile.common | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 multimedia/ffmpeg/Makefile.common (limited to 'multimedia') diff --git a/multimedia/ffmpeg/Makefile.common b/multimedia/ffmpeg/Makefile.common new file mode 100644 index 00000000000..d7561545e03 --- /dev/null +++ b/multimedia/ffmpeg/Makefile.common @@ -0,0 +1,50 @@ +# $NetBSD: Makefile.common,v 1.1 2009/06/12 20:26:30 ahoka Exp $ + +DISTNAME= ffmpeg-${DISTVERSION:S/-//g} +CATEGORIES= multimedia +MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/ahoka/dist/ +EXTRACT_SUFX= .tar.bz2 + +DISTVERSION= 2009-06-11 +PREV_PKGPATH= multimedia/ffmpeg-devel +WRKSRC= ${WRKDIR}/ffmpeg-export-${DISTVERSION} +PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg/patches + +HAS_CONFIGURE= YES +USE_LIBTOOL= YES +USE_TOOLS+= gmake texi2html pod2man + +BUILD_DEPENDS+= yasm>=0.7.2:../../devel/yasm + +REPLACE_PERL+= doc/texi2pod.pl + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= post-patch +SUBST_FILES.conf= ffserver.c +SUBST_SED.conf= -e 's,/etc/ffserver.conf,${PKG_SYSCONFDIR}/ffserver.conf,g' +SUBST_MESSAGE.conf= Fixing configuration path. + +PLIST_SRC+= ${PKGDIR}/PLIST + +MAKE_ENV+= EXTRA_LIBS=${LIBGETOPT:Q} +# LOCALBASE=${LOCALBASE:Q} + +# Let's not put garbage into /tmp +CONFIGURE_ENV+= TMPDIR=${WRKSRC:Q}/tmp + +CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} \ + --cc=${CC:Q} \ + --prefix=${PREFIX:Q} \ + --disable-debug \ + --disable-stripping \ + --enable-shared \ + --enable-runtime-cpudetect \ + --enable-pthreads \ + --enable-gpl + +pre-configure: + mkdir ${WRKSRC}/tmp + +.include "../../mk/pthread.buildlink3.mk" +.include "../../devel/libgetopt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" -- cgit v1.2.3