1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/sysutils/vobcopy/Makefile
Ganael LAPLANCHE d8503c0c20 multimedia/libdvd{read,nav}: Update to latest version
Update libdvdread to 6.1.2, changelog:
https://code.videolan.org/videolan/libdvdread/-/blob/master/NEWS

Update libdvdnav to 6.1.1, changelog:
https://code.videolan.org/videolan/libdvdnav/-/blob/master/ChangeLog

and bump dependent ports' revisions.
2021-04-29 21:14:18 +02:00

62 lines
1.6 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
PORTNAME= vobcopy
PORTVERSION= 1.2.0
PORTREVISION= 8
CATEGORIES= sysutils
MASTER_SITES= http://vobcopy.org/download/ \
LOCAL/ehaupt
MAINTAINER= ports@FreeBSD.org
COMMENT= Decrypts and copies DVD .vob files
LIB_DEPENDS= libdvdread.so:multimedia/libdvdread
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.sh
CONFIGURE_ARGS= --with-lfs --with-dvdread-libs=${LOCALBASE}
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/vobcopy man/man1/vobcopy.1.gz
PORTDOCS= COPYING Changelog README TODO \
alternative_programs.txt
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -E -e 's|(fopen\( *"/etc/)mtab|\1fstab|; \
s|iso9660|cd9660|' ${WRKSRC}/dvd.c
@${REINPLACE_CMD} -E -e 's|declare -i i=0||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# -CURRENT after 500041 has getopt_long
# do not use libgnugetopt
@${REINPLACE_CMD} -E \
-e 's|-lgnugetopt||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# fix typo
@${REINPLACE_CMD} -E \
-e 's|FreeBSD_Version|FreeBSD_version|' \
${WRKSRC}/dvd.c
# no such flag under FreeBSD
# fdatasync(2) -> fsync(2)
@${REINPLACE_CMD} -E \
-e 's|O_LARGEFILE|0|' \
-e 's|fdatasync|fsync|g' \
${WRKSRC}/vobcopy.c
post-configure:
@${REINPLACE_CMD} -E -e 's|^CC.+||; s|^PREFIX.+||; \
s|/usr/local/|${LOCALBASE}/|' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${STAGEDIR}${PREFIX}/bin/vobcopy
${INSTALL_MAN} ${WRKSRC}/vobcopy.1${MAN1_SUFX} \
${STAGEDIR}${MANPREFIX}/man/man1/vobcopy.1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>