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
|
|
|
|
PORTVERSION= 0.10
|
2004-12-13 03:15:16 +01:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
|
2004-10-30 00:24:47 +02:00
|
|
|
MAINTAINER= ahze@FreeBSD.org
|
2004-03-31 16:17:52 +02:00
|
|
|
COMMENT= Print information about the contents and structure of a DVD
|
|
|
|
|
|
|
|
LIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
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
|
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::
|
|
|
|
.if !defined(WITH_DVD_DEVICE)
|
|
|
|
@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
|
|
|
|
@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
|
|
|
|
@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2004-12-13 03:15:16 +01:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2004-12-13 03:24:51 +01:00
|
|
|
${CC} ${CFLAGS} -DPACKAGE=\"${PORTNAME}\" -DVERSION=\"${PORTVERSION}\" \
|
2004-12-13 03:15:16 +01:00
|
|
|
-DHAVE_LIBDVDREAD=1 -I. -I${LOCALBASE}/include -L${LOCALBASE}/lib \
|
|
|
|
-ldvdread lsdvd.c -o lsdvd
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lsdvd ${PREFIX}/bin
|
|
|
|
|
2004-03-31 16:17:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|