summaryrefslogtreecommitdiff
path: root/textproc/subtitleripper
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 20:41:51 +0000
committerjoerg <joerg>2009-07-07 20:41:51 +0000
commitc291afebc50ef7934f0925ea30462a04cfbe6a11 (patch)
treebaf391e1873255b6e0b17e61ed82db3b0631f13c /textproc/subtitleripper
parent43143664789168e2b4553e332b2b036a915f34b3 (diff)
downloadpkgsrc-c291afebc50ef7934f0925ea30462a04cfbe6a11.tar.gz
user-destdir support
Diffstat (limited to 'textproc/subtitleripper')
-rw-r--r--textproc/subtitleripper/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/textproc/subtitleripper/Makefile b/textproc/subtitleripper/Makefile
index aca7cb7a4ed..1ddd9c37752 100644
--- a/textproc/subtitleripper/Makefile
+++ b/textproc/subtitleripper/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2008/09/06 09:19:02 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2009/07/07 20:43:35 joerg Exp $
#
DISTNAME= subtitleripper-0.3-4
@@ -11,28 +11,28 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/subtitleripper/
COMMENT= Subtitle ripping program
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= gocr-[0-9]*:../../graphics/gocr
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}/subtitleripper
-INSTALLATION_DIRS= bin
+INSTALLATION_DIRS= bin libdata/subtitleripper share/doc/subtitleripper
CONFLICTS+= subtitleripper-0.3-[0-9]*
do-install:
${SED} -e "s,@PREFIX@,${PREFIX}," <${WRKSRC}/pgm2txt >${WRKDIR}/pgm2txt
- ${INSTALL_SCRIPT} ${WRKDIR}/pgm2txt ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2pgm ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/srttool ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2vobsub ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/subtitleripper
+ ${INSTALL_SCRIPT} ${WRKDIR}/pgm2txt ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2pgm ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/srttool ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/subtitle2vobsub ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}; ${INSTALL_DATA} README README.gocr README.srttool \
README.subtitle2pgm README.vobsub \
- ${PREFIX}/share/doc/subtitleripper
- ${INSTALL_DATA_DIR} ${PREFIX}/libdata/subtitleripper
+ ${DESTDIR}${PREFIX}/share/doc/subtitleripper
cd ${WRKSRC}; ${INSTALL_DATA} gocrfilter_en.sed \
gocrfilter_fr.sed gocrfilter_nl.sed gocrfilter_none.sed \
- ${PREFIX}/libdata/subtitleripper
+ ${DESTDIR}${PREFIX}/libdata/subtitleripper
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"