openbsd-ports/graphics/ffmpeg/Makefile

53 lines
1.5 KiB
Makefile
Raw Normal View History

2003-11-04 02:50:19 -05:00
# $OpenBSD: Makefile,v 1.6 2003/11/04 07:50:19 jolan Exp $
COMMENT= "audio/video converter and streamer"
2003-11-04 02:50:19 -05:00
DISTNAME= ffmpeg-0.4.8
CATEGORIES= graphics
2003-09-26 10:40:29 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ffmpeg/}
HOMEPAGE= http://ffmpeg.sourceforge.net/
MAINTAINER= Jolan Luff <jolan@openbsd.org>
# GPL
PERMIT_DISTFILES_CDROM= "patents"
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
NO_REGRESS= Yes # Possible to adapt with some work
USE_GMAKE= Yes
2003-09-26 10:40:29 -04:00
# It's either this or disable mmx so postprocess_template.c will build.
.if ${MACHINE_ARCH} == "i386"
CFLAGS+=-fomit-frame-pointer
.endif
CONFIGURE_STYLE=simple
2003-08-02 06:26:54 -04:00
CONFIGURE_ARGS+=--cc=${CC} --make=gmake ${CONFIGURE_SHARED} \
2003-11-04 02:50:19 -05:00
--disable-ffserver --disable-opts --enable-pp
2003-11-04 02:50:19 -05:00
SV= 0.4
2003-08-15 10:25:08 -04:00
pre-configure:
@perl -pi -e 's|_SV_|${SV}|g' ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/ffmpeg ${PREFIX}/bin/ffmpeg
${INSTALL_DATA_DIR} ${PREFIX}/include/ffmpeg
${INSTALL_DATA_DIR} ${PREFIX}/include/postproc
${INSTALL_DATA} ${WRKBUILD}/libavcodec/{avcodec,common}.h \
${PREFIX}/include/ffmpeg
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libpostproc/postprocess.h \
${PREFIX}/include/postproc
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libavcodec.a \
${WRKBUILD}/libavformat/libavformat.a ${PREFIX}/lib
.if !defined(NO_SHARED_LIBS)
2003-08-15 10:25:08 -04:00
${INSTALL_DATA} ${WRKBUILD}/libavcodec/libavcodec.so.${SV} \
${PREFIX}/lib/libavcodec.so.${SV}
${INSTALL_DATA} ${WRKBUILD}/libavformat/libavformat.so.${SV} \
${PREFIX}/lib/libavformat.so.${SV}
.endif
.include <bsd.port.mk>