From owner-svn-ports-all@freebsd.org Thu Dec 31 01:16:42 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24D08A56741; Thu, 31 Dec 2015 01:16:42 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFD40145A; Thu, 31 Dec 2015 01:16:41 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBV1GeeU091354; Thu, 31 Dec 2015 01:16:40 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBV1GefX091353; Thu, 31 Dec 2015 01:16:40 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201512310116.tBV1GefX091353@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 31 Dec 2015 01:16:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r404886 - head/multimedia/libmpeg3 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2015 01:16:42 -0000 Author: amdmi3 Date: Thu Dec 31 01:16:40 2015 New Revision: 404886 URL: https://svnweb.freebsd.org/changeset/ports/404886 Log: - Add LICENSE - Switch to options helpers Modified: head/multimedia/libmpeg3/Makefile Modified: head/multimedia/libmpeg3/Makefile ============================================================================== --- head/multimedia/libmpeg3/Makefile Thu Dec 31 01:16:31 2015 (r404885) +++ head/multimedia/libmpeg3/Makefile Thu Dec 31 01:16:40 2015 (r404886) @@ -10,16 +10,15 @@ MASTER_SITES= SF/heroines/releases/08110 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 -pt 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}