aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-31 09:16:40 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-31 09:16:40 +0800
commit91fea3c0004e31d61e7e1289f801af5e1133c402 (patch)
treeb73ef92050ce726194c71255a45e9a1d4fc64bd6 /multimedia
parent48d175eb38c4383c19935c4a399edb53da0a1ae7 (diff)
downloadfreebsd-ports-gnome-91fea3c0004e31d61e7e1289f801af5e1133c402.tar.gz
freebsd-ports-gnome-91fea3c0004e31d61e7e1289f801af5e1133c402.tar.zst
freebsd-ports-gnome-91fea3c0004e31d61e7e1289f801af5e1133c402.zip
- Add LICENSE
- Switch to options helpers
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libmpeg3/Makefile25
1 files changed, 12 insertions, 13 deletions
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 <bsd.port.options.mk>
+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}