diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2005-02-03 09:46:52 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2005-02-03 09:46:52 +0000 |
commit | 1b97dc0155b95bb02250dfe3d1aeca50b4a9932b (patch) | |
tree | be80adbb75401608190b9147c668116076af8661 /multimedia | |
parent | 88413af3b8210a5e5d7a3dbb2a6050f03229850b (diff) | |
download | ports-1b97dc0155b95bb02250dfe3d1aeca50b4a9932b.tar.gz ports-1b97dc0155b95bb02250dfe3d1aeca50b4a9932b.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/x264-devel/Makefile | 15 | ||||
-rw-r--r-- | multimedia/x264-devel/files/patch-Makefile | 21 | ||||
-rw-r--r-- | multimedia/x264/Makefile | 15 | ||||
-rw-r--r-- | multimedia/x264/files/patch-Makefile | 21 |
4 files changed, 46 insertions, 26 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile index 5da799d90f7e..a6aed1a5ecee 100644 --- a/multimedia/x264-devel/Makefile +++ b/multimedia/x264-devel/Makefile @@ -16,10 +16,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.0.//} MAINTAINER= ahze@FreeBSD.org COMMENT= Multimedia library and tool for encoding H.264/AVC video streams -BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm - -ONLY_FOR_ARCHS= i386 - USE_GETOPT_LONG=yes USE_BZIP2= yes WRKSRC= ${WRKDIR}/${DISTNAME} @@ -42,15 +38,16 @@ OPTIONS= DEBUG "Enable Debugging" Off \ .include <bsd.port.pre.mk> .if ${ARCH}=="i386" -CFLAGS+=-DARCH_X86 -.endif +BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm +CFLAGS+= -DARCH_X86 +MAKE_ENV+= ARCH_X86="1" .if ${MACHINE_CPU:Mmmx} -CFLAGS+=-DHAVE_MMXEXT +CFLAGS+= -DHAVE_MMXEXT .endif - .if ${MACHINE_CPU:Msse} -CFLAGS+=-DHAVE_SSE2 +CFLAGS+= -DHAVE_SSE2 +.endif .endif .if !defined(WITH_DEBUG) diff --git a/multimedia/x264-devel/files/patch-Makefile b/multimedia/x264-devel/files/patch-Makefile index 1b48e572bf63..6a8172d174cd 100644 --- a/multimedia/x264-devel/files/patch-Makefile +++ b/multimedia/x264-devel/files/patch-Makefile @@ -1,7 +1,20 @@ --- Makefile.orig Tue Jan 25 16:36:54 2005 -+++ Makefile Tue Jan 25 20:52:45 2005 -@@ -22,8 +22,11 @@ ++++ Makefile Mon Jan 31 01:14:20 2005 +@@ -12,18 +12,19 @@ + encoder/set.c encoder/macroblock.c encoder/cabac.c \ + encoder/cavlc.c encoder/encoder.c encoder/eval.c x264.c + +-ifdef SYS_MACOSX +-PFLAGS=-DARCH_PPC -DSYS_MACOSX -faltivec +-SRCS= $(SRCS_COMMON) common/ppc/mc.c common/ppc/pixel.c +-else +-PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -DHAVE_SSE2 -DHAVE_MALLOC_H ++ifdef ARCH_X86 + SRCS= $(SRCS_COMMON) common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c + ASMSRC= common/i386/dct-a.asm common/i386/cpu-a.asm common/i386/pixel-a.asm common/i386/mc-a.asm OBJASM= $(ASMSRC:%.asm=%.o) ++else ++SRCS= $(SRCS_COMMON) endif -CC=gcc @@ -14,7 +27,7 @@ ifdef NDEBUG CFLAGS+=-s -DNDEBUG else -@@ -39,14 +42,17 @@ +@@ -39,14 +40,17 @@ OBJS = $(SRCS:%.c=%.o) DEP = depend @@ -35,7 +48,7 @@ checkasm: testing/checkasm.c libx264.a $(CC) $(CFLAGS) -o checkasm $< libx264.a -lm -@@ -56,7 +62,7 @@ +@@ -56,7 +60,7 @@ .depend: $(SRCS) x264.c rm -f .depend diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile index 5da799d90f7e..a6aed1a5ecee 100644 --- a/multimedia/x264/Makefile +++ b/multimedia/x264/Makefile @@ -16,10 +16,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.0.//} MAINTAINER= ahze@FreeBSD.org COMMENT= Multimedia library and tool for encoding H.264/AVC video streams -BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm - -ONLY_FOR_ARCHS= i386 - USE_GETOPT_LONG=yes USE_BZIP2= yes WRKSRC= ${WRKDIR}/${DISTNAME} @@ -42,15 +38,16 @@ OPTIONS= DEBUG "Enable Debugging" Off \ .include <bsd.port.pre.mk> .if ${ARCH}=="i386" -CFLAGS+=-DARCH_X86 -.endif +BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm +CFLAGS+= -DARCH_X86 +MAKE_ENV+= ARCH_X86="1" .if ${MACHINE_CPU:Mmmx} -CFLAGS+=-DHAVE_MMXEXT +CFLAGS+= -DHAVE_MMXEXT .endif - .if ${MACHINE_CPU:Msse} -CFLAGS+=-DHAVE_SSE2 +CFLAGS+= -DHAVE_SSE2 +.endif .endif .if !defined(WITH_DEBUG) diff --git a/multimedia/x264/files/patch-Makefile b/multimedia/x264/files/patch-Makefile index 1b48e572bf63..6a8172d174cd 100644 --- a/multimedia/x264/files/patch-Makefile +++ b/multimedia/x264/files/patch-Makefile @@ -1,7 +1,20 @@ --- Makefile.orig Tue Jan 25 16:36:54 2005 -+++ Makefile Tue Jan 25 20:52:45 2005 -@@ -22,8 +22,11 @@ ++++ Makefile Mon Jan 31 01:14:20 2005 +@@ -12,18 +12,19 @@ + encoder/set.c encoder/macroblock.c encoder/cabac.c \ + encoder/cavlc.c encoder/encoder.c encoder/eval.c x264.c + +-ifdef SYS_MACOSX +-PFLAGS=-DARCH_PPC -DSYS_MACOSX -faltivec +-SRCS= $(SRCS_COMMON) common/ppc/mc.c common/ppc/pixel.c +-else +-PFLAGS=-DARCH_X86 -DHAVE_MMXEXT -DHAVE_SSE2 -DHAVE_MALLOC_H ++ifdef ARCH_X86 + SRCS= $(SRCS_COMMON) common/i386/mc-c.c common/i386/dct-c.c common/i386/predict.c + ASMSRC= common/i386/dct-a.asm common/i386/cpu-a.asm common/i386/pixel-a.asm common/i386/mc-a.asm OBJASM= $(ASMSRC:%.asm=%.o) ++else ++SRCS= $(SRCS_COMMON) endif -CC=gcc @@ -14,7 +27,7 @@ ifdef NDEBUG CFLAGS+=-s -DNDEBUG else -@@ -39,14 +42,17 @@ +@@ -39,14 +40,17 @@ OBJS = $(SRCS:%.c=%.o) DEP = depend @@ -35,7 +48,7 @@ checkasm: testing/checkasm.c libx264.a $(CC) $(CFLAGS) -o checkasm $< libx264.a -lm -@@ -56,7 +62,7 @@ +@@ -56,7 +60,7 @@ .depend: $(SRCS) x264.c rm -f .depend |