This is a partial revert of commit 60955c0a09
which removed transcode
and ports depending on it for not building with -fno-common.
multimedia/transcode: Revert removal of port
The transcode port has been fixed to build with -fno-common by adding
1 "extern" and 3 "static" keywords to prevent some global symbols to
be defined in multiple files that are linked into one binary.
While here fix a few issues reported by "make stage-qa".
multimedia/dvdrip: remove DEPRECATED
multimedia/mkxvcd: remove DEPRECATED
multimedia/subtitleripper: remove DEPRECATED
While here add TIMESTAMP to distinfo of these ports and make portlint
and portclippy happy.
multimedia/transcode: Add TIMESTAMP to distinfo
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
PORTNAME= subtitleripper
|
|
DISTVERSION= 0.3-4
|
|
PORTREVISION= 11
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-0.3-4
|
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
|
COMMENT= Convert DVD subtitles into text format (subrip srt) or VobSub format
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libnetpbm.so:graphics/netpbm \
|
|
libpng.so:graphics/png
|
|
RUN_DEPENDS= gocr:graphics/gocr \
|
|
xv:graphics/xv \
|
|
transcode:multimedia/transcode
|
|
|
|
USES= gmake tar:tgz
|
|
CFLAGS+= -D_WITH_GETLINE=1 -DHAVE_GETLINE=1 \
|
|
-I${LOCALBASE}/include/netpbm
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
DOC_FILES= \
|
|
ChangeLog \
|
|
README \
|
|
README.gocr \
|
|
README.srttool \
|
|
README.subtitle2pgm \
|
|
README.vobsub
|
|
EXAMPLES_FILES= \
|
|
gocrfilter_en.sed \
|
|
gocrfilter_fr.sed \
|
|
gocrfilter_nl.sed \
|
|
gocrfilter_none.sed
|
|
PROGRAM_FILES= \
|
|
srttool \
|
|
subtitle2pgm \
|
|
subtitle2vobsub \
|
|
vobsub2pgm
|
|
SCRIPT_FILES= \
|
|
pgm2txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|^(CC[[:space:]]*=).*$$|\1${CC}|' \
|
|
-e 's|^(COPT[[:space:]]*=).*$$|\1${CFLAGS}|' \
|
|
-e 's|^(INCLUDES[[:space:]]*:=).*$$|\1 -I${LOCALBASE}/include|' \
|
|
-e 's|^(LIBS[[:space:]]*:=).*$$|\1 -lm -L${LOCALBASE}/lib|' \
|
|
-e 's|-lppm|-lnetpbm|' \
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's|^(DB_PATH[[:space:]]*=).*$$|\1\$${HOME}/.db/|' \
|
|
-e 's|^(IMAGE_VIWER[[:space:]]*=).*$$|\1${LOCALBASE}/bin/xv|' \
|
|
-e 's|^(PATH_TO_LANGUAGE_FILTER[[:space:]]*=).*$$|\1${EXAMPLESDIR}/|' \
|
|
-e 's|(gocr[[:space:]]+)|${LOCALBASE}/bin/\1|' \
|
|
${WRKSRC}/pgm2txt
|
|
|
|
do-install:
|
|
${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.mk>
|