openbsd-ports/multimedia/x264/Makefile
2012-08-27 09:34:42 +00:00

46 lines
918 B
Makefile

# $OpenBSD: Makefile,v 1.19 2012/08/27 09:34:43 jasper Exp $
COMMENT= free H264/AVC encoder
V= 20120520
DISTNAME= x264-snapshot-${V}-2245
PKGNAME= x264-${V}
REVISION= 0
CATEGORIES= multimedia
MASTER_SITES= http://downloads.videolan.org/pub/videolan/x264/snapshots/
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= x264 9.0
HOMEPAGE= http://www.videolan.org/developers/x264.html
MAINTAINER= Brad Smith <brad@comstyle.com>
# GPLv2+
PERMIT_PACKAGE_CDROM= patents
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pthread
USE_GMAKE= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ENV= API=${LIBx264_VERSION}
CONFIGURE_ARGS+=--disable-asm \
--disable-ffms \
--disable-gpac \
--disable-lavf \
--disable-swscale \
--enable-static \
--prefix=${PREFIX}
NO_REGRESS= Yes
.include <bsd.port.mk>
.if ${NO_SHARED_LIBS:L} == "no"
CONFIGURE_ARGS+=--enable-shared \
--system-libx264
.endif