aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-21 01:37:22 +0800
committerbapt <bapt@FreeBSD.org>2013-10-21 01:37:22 +0800
commit358307a1550d02b2c39f0464b195f762b20611bb (patch)
tree542b9632045ae8693bbd563f45d7235b860dde54
parentffc049075cf13a668521dd15651c3d5bb2d752f7 (diff)
downloadfreebsd-ports-gnome-358307a1550d02b2c39f0464b195f762b20611bb.tar.gz
freebsd-ports-gnome-358307a1550d02b2c39f0464b195f762b20611bb.tar.zst
freebsd-ports-gnome-358307a1550d02b2c39f0464b195f762b20611bb.zip
Enable stage
Cleanup Use pkg-plist
-rw-r--r--multimedia/y4mscaler/Makefile28
-rw-r--r--multimedia/y4mscaler/pkg-plist8
2 files changed, 17 insertions, 19 deletions
diff --git a/multimedia/y4mscaler/Makefile b/multimedia/y4mscaler/Makefile
index dad01fc853e2..5eb177edd604 100644
--- a/multimedia/y4mscaler/Makefile
+++ b/multimedia/y4mscaler/Makefile
@@ -12,18 +12,12 @@ EXTRACT_SUFX= .tgz
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Y4mscaler scales, crops, and shifts Y'CbCr video
-LIB_DEPENDS= lavjpeg-2.0.0:${PORTSDIR}/multimedia/mjpegtools
+LIB_DEPENDS= liblavjpeg-2.0.so:${PORTSDIR}/multimedia/mjpegtools
-USE_GMAKE= yes
+USES= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-PORTDOCS= COPYING ChangeLog INSTALL README TODO
-MAN1= y4mscaler.1
-PLIST_FILES= bin/y4mscaler
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+DOCS= COPYING ChangeLog INSTALL README TODO
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
@@ -34,13 +28,9 @@ post-patch:
${WRKSRC}/Makefile
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler
- @${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${MANPREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for docfile in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
-.endfor
-.endif
-
-.include <bsd.port.post.mk>
+ ${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${STAGEDIR}${PREFIX}/bin/y4mscaler
+ ${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${STAGEDIR}${MANPREFIX}/man/man1/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/multimedia/y4mscaler/pkg-plist b/multimedia/y4mscaler/pkg-plist
new file mode 100644
index 000000000000..6921443039f8
--- /dev/null
+++ b/multimedia/y4mscaler/pkg-plist
@@ -0,0 +1,8 @@
+bin/y4mscaler
+man/man1/y4mscaler.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%@dirrm %%DOCSDIR%%