aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mpeg2codec
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-19 23:54:00 +0800
committerbapt <bapt@FreeBSD.org>2013-10-19 23:54:00 +0800
commit8955eba1989ab1ff6a7e68d30972cdd9908e07fe (patch)
tree31fcbefd1a1e56705bd07fe961e734d734f63da9 /multimedia/mpeg2codec
parent5341e3d41fe8365f61fa03486e90d11d0a1466cd (diff)
downloadfreebsd-ports-gnome-8955eba1989ab1ff6a7e68d30972cdd9908e07fe.tar.gz
freebsd-ports-gnome-8955eba1989ab1ff6a7e68d30972cdd9908e07fe.tar.zst
freebsd-ports-gnome-8955eba1989ab1ff6a7e68d30972cdd9908e07fe.zip
Enable stage
Use options helpers Use pkg-plist
Diffstat (limited to 'multimedia/mpeg2codec')
-rw-r--r--multimedia/mpeg2codec/Makefile28
-rw-r--r--multimedia/mpeg2codec/pkg-plist11
2 files changed, 18 insertions, 21 deletions
diff --git a/multimedia/mpeg2codec/Makefile b/multimedia/mpeg2codec/Makefile
index ab93a356fb28..87bee3817605 100644
--- a/multimedia/mpeg2codec/Makefile
+++ b/multimedia/mpeg2codec/Makefile
@@ -27,33 +27,19 @@ DATADIR= ${PREFIX}/share/mpeg2
CFLAGS+= -DVERIFY -DVERBOSE -DTRACE
-PORTDOCS= mpeg2enc.doc
-PLIST_FILES= bin/mpeg2decode bin/mpeg2encode \
- %%DATADIR%%/MPEG-1.par %%DATADIR%%/NTSC.par \
- %%DATADIR%%/PAL.par %%DATADIR%%/inter.mat \
- %%DATADIR%%/intra.mat
-PLIST_DIRS= %%DATADIR%%
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MX11}
-USE_XORG= xext
-MAKE_ARGS+= USE_DISP="-DDISPLAY" \
+X11_USE= XORG=xext
+X11_MAKE_ARGS= USE_DISP="-DDISPLAY" \
USE_SHMEM="-DSH_MEM" \
LIBS="$$(pkg-config --libs xext) -lX11" \
INCLUDEDIR="$$(pkg-config --cflags xext)"
-.endif
do-install:
.for i in dec enc
- ${INSTALL_PROGRAM} ${WRKSRC}/src/mpeg2${i}/mpeg2${i}ode ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/mpeg2${i}/mpeg2${i}ode ${STAGEDIR}${PREFIX}/bin
.endfor
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/par/* ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/mpeg2enc.doc ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/par/* ${STAGEDIR}${DATADIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/mpeg2enc.doc ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/multimedia/mpeg2codec/pkg-plist b/multimedia/mpeg2codec/pkg-plist
new file mode 100644
index 000000000000..5a5c972fa44a
--- /dev/null
+++ b/multimedia/mpeg2codec/pkg-plist
@@ -0,0 +1,11 @@
+bin/mpeg2decode
+bin/mpeg2encode
+%%PORTDOCS%%%%DOCSDIR%%/mpeg2enc.doc
+%%DATADIR%%/MPEG-1.par
+%%DATADIR%%/NTSC.par
+%%DATADIR%%/PAL.par
+%%DATADIR%%/inter.mat
+%%DATADIR%%/intra.mat
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+