diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2005-01-12 04:57:18 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2005-01-12 04:57:18 +0000 |
commit | d98d8457f1ee7523a703f4c926f0d468ec73d535 (patch) | |
tree | b9f246884207f914dae90b03b6a9c1562df7c09a /multimedia/x264/Makefile | |
parent | 4114f4b7dbaa9b7945b61de19737f12227d85c0a (diff) | |
download | ports-d98d8457f1ee7523a703f4c926f0d468ec73d535.tar.gz ports-d98d8457f1ee7523a703f4c926f0d468ec73d535.zip |
Notes
Diffstat (limited to 'multimedia/x264/Makefile')
-rw-r--r-- | multimedia/x264/Makefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile new file mode 100644 index 000000000000..e4d52ada9f1c --- /dev/null +++ b/multimedia/x264/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: x264 +# Date created: 2005-01-11 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= x264 +PORTVERSION= 0.0.20041029 +CATEGORIES= multimedia +MASTER_SITES= http://download.videolan.org/pub/videolan/contrib/ \ + http://ftp.snt.utwente.nl/pub/software/videolan/contrib/ +DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.0.//} + +MAINTAINER= ahze@FreeBSD.org +COMMENT= Multimedia library for encoding H.264/AVC video streams + +BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm + +USE_GETOPT_LONG=yes +USE_BZIP2= yes +WRKSRC= ${WRKDIR}/${DISTNAME} +USE_REINPLACE= yes +USE_GMAKE= yes +ALL_TARGET= default +CFLAGS+= -DSYS_FREEBSD + +PLIST_FILES= bin/x264 \ + lib/libx264.a + +OPTIONS= DEBUG "Enable Debugging" Off \ + OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off + +.include <bsd.port.pre.mk> + +.if ${ARCH}=="i386" || ${ARCH}=="amd64" +CFLAGS+=-DARCH_X86 +.if ${MACHINE_CPU:Mmmx} +CFLAGS+=-DHAVE_MMXEXT +.endif +.if ${MACHINE_CPU:Msse} +CFLAGS+=-DHAVE_SSE2 +.endif +.endif + +.if defined(WITH_DEBUG) +CFLAGS+= -g -DDEBUG +.endif + +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -O2 -funroll-loops +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS} ${CPPFLAGS}|; \ + s|-lm|${LDFLAGS} -lm|' ${WRKSRC}/${MAKEFILE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/x264 ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/libx264.a ${PREFIX}/lib + +.include <bsd.port.post.mk> |