From 91fea3c0004e31d61e7e1289f801af5e1133c402 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Thu, 31 Dec 2015 01:16:40 +0000 Subject: - Add LICENSE - Switch to options helpers --- multimedia/libmpeg3/Makefile | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'multimedia') diff --git a/multimedia/libmpeg3/Makefile b/multimedia/libmpeg3/Makefile index 87fc28dc308c..95cb2dae8d6e 100644 --- a/multimedia/libmpeg3/Makefile +++ b/multimedia/libmpeg3/Makefile @@ -10,16 +10,15 @@ MASTER_SITES= SF/heroines/releases/081108 MAINTAINER= ports@FreeBSD.org COMMENT= Advanced editing and manipulation of MPEG streams -LIB_DEPENDS= liba52.so:${PORTSDIR}/audio/liba52 +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING -OPTIONS_DEFINE= DOCS -OPTIONS_DEFINE_i386= MMX - -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +LIB_DEPENDS= liba52.so:${PORTSDIR}/audio/liba52 USES= alias gmake tar:bzip2 MAKE_ARGS= CC="${CC}" USE_CSS=0 OBJDIR="obj" \ CFLAGS="${CFLAGS} ${CPPFLAGS}" LIBS="${LIBS}" +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= index.html PLIST_FILES= ${BIN_FILES:S|^|bin/|} ${INC_FILES:S|^|include/|} \ @@ -34,15 +33,13 @@ LIBS+= -lm -L${LOCALBASE}/lib -la52 -pthread NASM?= ${LOCALBASE}/bin/nasm -.include +OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE_i386= MMX -.if ${PORT_OPTIONS:MMMX} -BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm -MAKE_ARGS+= USE_MMX=1 NASM="${NASM}" -CFLAGS+= -DHAVE_MMX -.else -MAKE_ARGS+= USE_MMX=0 -.endif +MMX_BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm +MMX_MAKE_ARGS= USE_MMX=1 NASM="${NASM}" +MMX_CFLAGS= -DHAVE_MMX +MMX_MAKE_ARGS_OFF= USE_MMX=0 post-patch: @${REINPLACE_CMD} -e 's|^OBJDIR|#OBJDIR|g ; \ @@ -61,6 +58,8 @@ do-install: .for file in ${LIB_FILES} cd ${WRKSRC}/obj && ${INSTALL_DATA} ${file} ${STAGEDIR}${PREFIX}/lib .endfor + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in ${PORTDOCS} cd ${WRKSRC}/docs && ${INSTALL_DATA} ${file} ${STAGEDIR}${DOCSDIR} -- cgit