2002-05-12 13:33:09 +00:00
|
|
|
# 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
|
2004-12-13 01:43:39 +00:00
|
|
|
PORTVERSION= 0.5.14
|
2005-02-27 15:53:42 +00:00
|
|
|
PORTREVISION= 1
|
2002-05-12 13:33:09 +00:00
|
|
|
CATEGORIES= sysutils
|
2002-10-26 16:48:27 +00:00
|
|
|
MASTER_SITES= http://lpn.rnbhq.org/download/
|
2002-05-12 13:33:09 +00:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= Decrypts and copies DVD .vob files
|
2002-05-12 13:33:09 +00:00
|
|
|
|
2003-04-18 04:08:57 +00:00
|
|
|
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
2002-10-26 16:48:27 +00:00
|
|
|
|
2003-04-10 21:16:03 +00:00
|
|
|
USE_BZIP2= yes
|
2003-04-18 04:08:57 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2002-10-26 16:48:27 +00:00
|
|
|
HAS_CONFIGURE= yes
|
2003-04-10 21:16:03 +00:00
|
|
|
CONFIGURE_SCRIPT= configure.sh
|
2002-10-26 16:48:27 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-05-12 13:33:09 +00:00
|
|
|
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
|
|
|
|
MAN1= vobcopy.1
|
|
|
|
|
2004-03-09 20:41:57 +00:00
|
|
|
PLIST_FILES= bin/vobcopy
|
|
|
|
PORTDOCS= COPYING Changelog README Release-Notes TODO \
|
2002-05-12 13:33:09 +00:00
|
|
|
alternative_programs.txt
|
|
|
|
|
2003-05-11 04:30:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-05-12 13:33:09 +00:00
|
|
|
post-patch:
|
2002-10-26 16:48:27 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(fopen\("/etc/)mtab|\1fstab|; \
|
2002-05-12 13:33:09 +00:00
|
|
|
s|iso9660|cd9660|' ${WRKSRC}/dvd.c
|
2003-04-10 21:16:03 +00:00
|
|
|
@${REINPLACE_CMD} -E -e 's|declare -i i=0||' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2003-05-11 04:30:12 +00:00
|
|
|
# -CURRENT after 500041 has getopt_long
|
2004-03-09 20:41:57 +00:00
|
|
|
# do not use libgnugetopt
|
2003-05-11 04:30:12 +00:00
|
|
|
.if ${OSVERSION} >= 500041
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|-lgnugetopt||' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
.endif
|
2002-05-12 13:33:09 +00:00
|
|
|
|
2004-03-09 20:41:57 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
@${REINPLACE_CMD} -e 's|#include <stdint.h>||' \
|
|
|
|
${WRKSRC}/vobcopy.c
|
|
|
|
.endif
|
2005-02-27 15:53:42 +00:00
|
|
|
# fix typo
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|FreeBSD_Version|FreeBSD_version|' \
|
|
|
|
${WRKSRC}/dvd.c
|
2004-03-09 20:41:57 +00:00
|
|
|
|
2002-10-26 16:48:27 +00:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^CC.+||; s|^PREFIX.+||; \
|
|
|
|
s|/usr/local/|${LOCALBASE}/|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2002-05-12 13:33:09 +00:00
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${PREFIX}/bin/vobcopy
|
2004-04-06 00:11:40 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/vobcopy.1${MAN1_SUFX} \
|
|
|
|
${MANPREFIX}/man/man1/vobcopy.1
|
2004-03-09 20:41:57 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-05-12 13:33:09 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-03-09 20:41:57 +00:00
|
|
|
.for file in ${PORTDOCS}
|
2002-05-12 13:33:09 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2003-05-11 04:30:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|