aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/mpeg2codec
diff options
context:
space:
mode:
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%%
+