c1a2386a93
This is a patch release from the old 0.10 branch which contains backported fixes for security problems reported in the 1.x and 1.2 branches.
78 lines
2.1 KiB
Text
78 lines
2.1 KiB
Text
# $NetBSD: Makefile.common,v 1.11 2015/03/14 16:14:43 tnn Exp $
|
|
# used by multimedia/ffmpeg010/Makefile
|
|
|
|
DISTNAME= ffmpeg-${DISTVERSION:S/-//g}
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://www.ffmpeg.org/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
DISTVERSION= 0.10.16
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg010/patches
|
|
|
|
HAS_CONFIGURE= YES
|
|
USE_LANGUAGES+= c99
|
|
USE_LIBTOOL= YES
|
|
USE_TOOLS+= gmake texi2html pod2man
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if ${OPSYS} == "SunOS" && empty(CC_VERSION:Mgcc*)
|
|
SUBST_CLASSES+= sunwspro
|
|
SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler.
|
|
SUBST_STAGE.sunwspro= post-configure
|
|
SUBST_FILES.sunwspro= config.mak
|
|
SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /"
|
|
SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g"
|
|
SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/"
|
|
SUBST_SED.sunwspro+= -e "s/-Wl,-rpath-link,/-L /g"
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= yasm>=0.7.2:../../devel/yasm
|
|
|
|
REPLACE_PERL+= doc/texi2pod.pl
|
|
REPLACE_SH+= configure version.sh
|
|
|
|
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}/tmp
|
|
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
|
|
CONFIGURE_ARGS+= --cc=${CC:Q}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --disable-optimizations
|
|
CONFIGURE_ARGS+= --disable-stripping
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --enable-pthreads
|
|
CONFIGURE_ARGS+= --enable-gpl
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-runtime-cpudetect
|
|
.endif
|
|
|
|
# No posix_memalign() in NetBSD 4.0 and earlier
|
|
#
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*)
|
|
CONFIGURE_ARGS+= --enable-memalign-hack
|
|
.endif
|
|
|
|
pre-configure:
|
|
mkdir ${WRKSRC}/tmp
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|