diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2005-04-21 13:06:03 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2005-04-21 13:06:03 +0000 |
commit | 66ce40ebd0e099cb1df9c1f0cc334a8451a50d7e (patch) | |
tree | f65da13e2ca1510a82c6c52dbddc02d7b4eb74f7 /multimedia/x264/Makefile | |
parent | a6d68f6bb43435c5365f2c42dd5da9cc512d267f (diff) | |
download | ports-66ce40ebd0e099cb1df9c1f0cc334a8451a50d7e.tar.gz ports-66ce40ebd0e099cb1df9c1f0cc334a8451a50d7e.zip |
Notes
Diffstat (limited to 'multimedia/x264/Makefile')
-rw-r--r-- | multimedia/x264/Makefile | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile index a6aed1a5ecee..58e8bb30d278 100644 --- a/multimedia/x264/Makefile +++ b/multimedia/x264/Makefile @@ -6,7 +6,7 @@ # PORTNAME= x264 -PORTVERSION= 0.0.20050125 +PORTVERSION= 0.0.20050421 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_LOCAL:S|$|ahze/|} # http://download.videolan.org/pub/videolan/contrib/ \ @@ -22,9 +22,9 @@ WRKSRC= ${WRKDIR}/${DISTNAME} USE_REINPLACE= yes USE_GMAKE= yes ALL_TARGET= default -SHLIB_VER= 0 -CFLAGS+= -DSYS_FREEBSD +SHLIB_VER= 1 INSTALLS_SHLIB= yes +HAS_CONFIGURE= yes PLIST_FILES= bin/x264 \ include/x264.h \ @@ -35,34 +35,29 @@ PLIST_FILES= bin/x264 \ OPTIONS= DEBUG "Enable Debugging" Off \ OPTIMIZED_CFLAGS "Enable Optimized CFLAGS" Off +CONFIGURE_ARGS+= --extra-cflags="${CPPFLAGS} ${CFLAGS} -fPIC" \ + --extra-ldflags="${LDFLAGS}" + .include <bsd.port.pre.mk> .if ${ARCH}=="i386" BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm - -CFLAGS+= -DARCH_X86 MAKE_ENV+= ARCH_X86="1" -.if ${MACHINE_CPU:Mmmx} -CFLAGS+= -DHAVE_MMXEXT -.endif -.if ${MACHINE_CPU:Msse} -CFLAGS+= -DHAVE_SSE2 .endif + +.if ${ARCH}=="amd64" +BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm +MAKE_ENV+= ARCH_X86_64="1" .endif .if !defined(WITH_DEBUG) -MAKE_ENV+= NDEBUG="1" +CONFIGURE_ARGS+= --enable-debug .endif .if defined(WITH_OPTIMIZED_CFLAGS) -CFLAGS+= -O2 -funroll-loops +CFLAGS+= -O2 -funroll-loops -ffast-math .endif -post-patch: - @${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CPPFLAGS} ${CFLAGS}|; \ - s|%%SHLIB_VER%%|${SHLIB_VER}|; \ - s|-lm|${LDFLAGS} -lm|' ${WRKSRC}/${MAKEFILE} - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/x264 ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/x264.h ${PREFIX}/include |