2004-03-31 16:17:52 +02:00
|
|
|
# New ports collection makefile for: lsdvd
|
|
|
|
# Date created: 2004-03-30
|
|
|
|
# Whom: michael johnson <ahze@ahze.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= lsdvd
|
2006-05-31 09:54:18 +02:00
|
|
|
PORTVERSION= 0.16
|
2007-04-05 08:03:23 +02:00
|
|
|
PORTREVISION= 2
|
2004-03-31 16:17:52 +02:00
|
|
|
CATEGORIES= multimedia
|
2004-05-25 21:16:09 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2004-03-31 16:17:52 +02:00
|
|
|
MASTER_SITE_SUBDIR= acidrip
|
|
|
|
|
2005-11-11 10:38:57 +01:00
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2004-03-31 16:17:52 +02:00
|
|
|
COMMENT= Print information about the contents and structure of a DVD
|
|
|
|
|
2007-04-05 08:03:23 +02:00
|
|
|
LIB_DEPENDS= dvdread.5:${PORTSDIR}/multimedia/libdvdread
|
2004-03-31 16:17:52 +02:00
|
|
|
|
2005-11-11 10:38:57 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
2006-05-31 09:54:18 +02:00
|
|
|
|
|
|
|
MAN1= lsdvd.1
|
2004-03-31 16:17:52 +02:00
|
|
|
PLIST_FILES= bin/lsdvd
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
2004-12-30 02:56:30 +01:00
|
|
|
WITH_DVD_DEVICE?=/dev/acd0c
|
2006-08-07 11:44:36 +02:00
|
|
|
BROKEN= does not configure
|
2004-03-31 16:17:52 +02:00
|
|
|
.else
|
2004-12-30 02:56:30 +01:00
|
|
|
WITH_DVD_DEVICE?=/dev/acd0
|
2004-03-31 16:17:52 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
2005-01-25 03:55:36 +01:00
|
|
|
@${ECHO_MSG} "===> The default DVD device is ${WITH_DVD_DEVICE}"
|
2004-03-31 16:17:52 +02:00
|
|
|
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
|
|
|
|
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
|
2005-01-25 03:55:36 +01:00
|
|
|
@${ECHO_MSG} "===>"
|
2004-03-31 16:17:52 +02:00
|
|
|
|
|
|
|
post-patch:
|
2004-12-30 02:56:30 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/dev/dvd|${WITH_DVD_DEVICE}|' \
|
2004-03-31 16:17:52 +02:00
|
|
|
${WRKSRC}/lsdvd.c
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|