1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/sysutils/vobcopy/Makefile
Mario Sergio Fujikawa Ferreira a4cbbc13f6 Update to 0.5.8
Submitted by:	Pav Lucistnik <pav@oook.cz>
2003-10-01 13:17:02 +00:00

63 lines
1.5 KiB
Makefile

# New ports collection makefile for: VOB dvd rip
# Date created: Sun May 12 09:25:37 BRT 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= vobcopy
PORTVERSION= 0.5.8
CATEGORIES= sysutils
MASTER_SITES= http://lpn.rnbhq.org/download/
MAINTAINER= lioux@FreeBSD.org
COMMENT= Decrypts and copies DVD .vob files
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
USE_BZIP2= yes
USE_GETOPT_LONG= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.sh
USE_REINPLACE= yes
ALL_TARGET= ${PORTNAME}
MAN1= vobcopy.1
DOC_FILES= COPYING Changelog README Release-Notes \
TODO \
alternative_programs.txt
.include <bsd.port.pre.mk>
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
.if ${OSVERSION} >= 500041
@${REINPLACE_CMD} -E \
-e 's|-lgnugetopt||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
post-configure:
@${REINPLACE_CMD} -E -e 's|^CC.+||; s|^PREFIX.+||; \
s|/usr/local/|${LOCALBASE}/|' \
${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${PREFIX}/bin/vobcopy
@${INSTALL_MAN} ${WRKSRC}/vobcopy.1 ${MANPREFIX}/man/man1/vobcopy.1
.ifndef(PORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>