diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-29 20:42:04 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-29 20:42:04 +0800 |
commit | 42034a997e9bbb7dd2e66f6719377aebbe4c7abd (patch) | |
tree | 44dc0e86776cb3ba9a994d27c2ee2b7a934bcdd2 /multimedia/libmpeg3 | |
parent | ff094d05cd8d446e528963491389242e738416e1 (diff) | |
download | freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.gz freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.tar.zst freebsd-ports-gnome-42034a997e9bbb7dd2e66f6719377aebbe4c7abd.zip |
Convert to new option framework
Diffstat (limited to 'multimedia/libmpeg3')
-rw-r--r-- | multimedia/libmpeg3/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/multimedia/libmpeg3/Makefile b/multimedia/libmpeg3/Makefile index c270ffa6f2cf..632e4ad4ee41 100644 --- a/multimedia/libmpeg3/Makefile +++ b/multimedia/libmpeg3/Makefile @@ -16,7 +16,7 @@ COMMENT= Advanced editing and manipulation of MPEG streams LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 -OPTIONS= MMX "Enable MMX instruction set (i386 only)" off +OPTIONS_DEFINE= MMX DOCS WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} @@ -38,9 +38,9 @@ LDFLAGS+= -lm -L${LOCALBASE}/lib -la52 ${PTHREAD_LIBS} NASM?= ${LOCALBASE}/bin/nasm -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_MMX) && (${ARCH} == "i386") +.if ${PORT_OPTIONS:MMMX} && (${ARCH} == "i386") BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm MAKE_ARGS+= USE_MMX=1 NASM="${NASM}" CFLAGS+= -DHAVE_MMX @@ -65,11 +65,11 @@ do-install: .for file in ${LIB_FILES} cd ${WRKSRC}/obj && ${INSTALL_DATA} ${file} ${PREFIX}/lib .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for file in ${PORTDOCS} cd ${WRKSRC}/docs && ${INSTALL_DATA} ${file} ${DOCSDIR} .endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |