2001-07-07 15:07:13 +02:00
|
|
|
# New ports collection makefile for: libdvdread
|
|
|
|
# Date created: 24 Jun 2001
|
|
|
|
# Whom: Marc van Woerkom <3d@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libdvdread
|
2007-04-04 16:04:27 +02:00
|
|
|
PORTVERSION= 0.9.7
|
2007-12-12 22:42:08 +01:00
|
|
|
PORTREVISION= 3
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia
|
2001-10-17 23:31:57 +02:00
|
|
|
MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
|
2001-07-07 15:07:13 +02:00
|
|
|
|
2008-07-30 21:00:36 +02:00
|
|
|
MAINTAINER= rnoland@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= This is needed by ogle, which is a DVD player that supports DVD menus
|
2001-07-07 15:07:13 +02:00
|
|
|
|
2007-12-12 22:42:08 +01:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
2002-11-28 01:09:51 +01:00
|
|
|
LIB_DEPENDS= dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
|
2007-12-12 22:42:08 +01:00
|
|
|
.endif
|
2002-04-18 19:53:38 +02:00
|
|
|
|
2007-01-30 00:51:55 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2001-10-17 23:31:57 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-04-04 16:04:27 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2002-06-04 18:34:59 +02:00
|
|
|
DOC_FILES= AUTHORS COPYING NEWS README TODO
|
2001-07-07 15:07:13 +02:00
|
|
|
|
2003-05-11 09:47:17 +02:00
|
|
|
# allow build with more warnings enabled
|
|
|
|
.if defined(NO_WERROR)
|
|
|
|
CONFIGURE_ARGS+= --disable-warnings
|
|
|
|
.endif
|
|
|
|
|
2002-04-18 19:53:38 +02:00
|
|
|
# ugly hack to have libdvdread directly depend on libdvdcss since
|
|
|
|
# it already does for practical reasons even though not for compile
|
|
|
|
# time ones
|
|
|
|
DVDCSS_LIBVERSION= 2
|
|
|
|
|
2002-03-24 23:08:00 +01:00
|
|
|
post-patch:
|
|
|
|
.for p in Makefile.in dvdread/Makefile.in src/Makefile.in
|
2002-07-03 21:15:17 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|cd \$$\(top_srcdir\) && \$$\(AUTOMAKE\)|\#|; \
|
2002-03-24 23:08:00 +01:00
|
|
|
s|cd \$$\(srcdir\) && \$$\(ACLOCAL\)|\#|' ${WRKSRC}/${p}
|
|
|
|
.endfor
|
2002-04-01 21:12:47 +02:00
|
|
|
# update this in sync with libdvdcss shared library version
|
2002-07-03 21:15:17 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(libdvdcss.so).2|\1.${DVDCSS_LIBVERSION}|' \
|
2002-06-04 18:34:59 +02:00
|
|
|
${WRKSRC}/dvdread/dvd_input.c
|
2002-03-24 23:08:00 +01:00
|
|
|
|
2001-10-17 23:31:57 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2001-07-07 15:07:13 +02:00
|
|
|
|
2002-11-23 22:12:24 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include <bsd.port.post.mk>
|