diff options
author | bapt <bapt@FreeBSD.org> | 2013-10-20 00:18:04 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-10-20 00:18:04 +0800 |
commit | 5999861610f56fd7c6cf6e44d4eb93ff889fbb42 (patch) | |
tree | 32b1cb9ef21a494577baa9427e8026e1cecc061c /multimedia | |
parent | e4c44c6bdb012fc6bbc16971f9ac25591be0288a (diff) | |
download | freebsd-ports-gnome-5999861610f56fd7c6cf6e44d4eb93ff889fbb42.tar.gz freebsd-ports-gnome-5999861610f56fd7c6cf6e44d4eb93ff889fbb42.tar.zst freebsd-ports-gnome-5999861610f56fd7c6cf6e44d4eb93ff889fbb42.zip |
Enable stage
Cleanup
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/subtitleripper/Makefile | 59 | ||||
-rw-r--r-- | multimedia/subtitleripper/pkg-plist | 17 |
2 files changed, 28 insertions, 48 deletions
diff --git a/multimedia/subtitleripper/Makefile b/multimedia/subtitleripper/Makefile index 3d8c33f195ff..26c89e549eae 100644 --- a/multimedia/subtitleripper/Makefile +++ b/multimedia/subtitleripper/Makefile @@ -11,13 +11,14 @@ EXTRACT_SUFX= .tgz MAINTAINER= multimedia@FreeBSD.org COMMENT= Convert DVD subtitles into text format (subrip srt) or VobSub format -LIB_DEPENDS= netpbm:${PORTSDIR}/graphics/netpbm \ - png15:${PORTSDIR}/graphics/png +LIB_DEPENDS= libnetpbm.so:${PORTSDIR}/graphics/netpbm \ + libpng15.so:${PORTSDIR}/graphics/png RUN_DEPENDS= gocr:${PORTSDIR}/graphics/gocr \ xv:${PORTSDIR}/graphics/xv \ transcode:${PORTSDIR}/multimedia/transcode -USE_GMAKE= yes +USES= gmake + WRKSRC= ${WRKDIR}/${PORTNAME} DOC_FILES= \ @@ -40,7 +41,6 @@ PROGRAM_FILES= \ SCRIPT_FILES= \ pgm2txt -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -E \ -e 's|^(CC[[:space:]]*=).*$$|\1${CC}|' \ @@ -56,49 +56,12 @@ post-patch: -e 's|(gocr[[:space:]]+)|${LOCALBASE}/bin/\1|' \ ${WRKSRC}/pgm2txt -.include <bsd.port.pre.mk> - -## -# PLIST -## -.ifndef(NOPORTDOCS) -. for file in ${DOC_FILES} -PORTDOCS+= ${file} -. endfor -.endif -# -PLIST_DIRS+= %%EXAMPLESDIR%% -.for file in ${EXAMPLES_FILES} -PLIST_FILES+= %%EXAMPLESDIR%%/${file} -.endfor -# -.for file in ${PROGRAM_FILES} -PLIST_FILES+= bin/${file} -.endfor -# -.for file in ${SCRIPT_FILES} -PLIST_FILES+= bin/${file} -.endfor - -## -# install -## do-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -. for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -. endfor -.endif - @${MKDIR} ${EXAMPLESDIR} -.for file in ${EXAMPLES_FILES} - @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${EXAMPLESDIR} -.endfor -.for file in ${PROGRAM_FILES} - @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin -.endfor -.for file in ${SCRIPT_FILES} - @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin -.endfor + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}; ${INSTALL_DATA} ${DOC_FILES} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}; ${INSTALL_SCRIPT} ${EXAMPLES_FILES} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}; ${INSTALL_PROGRAM} ${PROGRAM_FILES} ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPT_FILES} ${STAGEDIR}${PREFIX}/bin -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/multimedia/subtitleripper/pkg-plist b/multimedia/subtitleripper/pkg-plist new file mode 100644 index 000000000000..ce70a7c34711 --- /dev/null +++ b/multimedia/subtitleripper/pkg-plist @@ -0,0 +1,17 @@ +bin/pgm2txt +bin/srttool +bin/subtitle2pgm +bin/subtitle2vobsub +bin/vobsub2pgm +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.gocr +%%PORTDOCS%%%%DOCSDIR%%/README.srttool +%%PORTDOCS%%%%DOCSDIR%%/README.subtitle2pgm +%%PORTDOCS%%%%DOCSDIR%%/README.vobsub +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gocrfilter_en.sed +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gocrfilter_fr.sed +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gocrfilter_nl.sed +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gocrfilter_none.sed +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% |