freebsd-ports/multimedia/libdvdread/Makefile
Jeremy Chadwick 1e44513898 * libdvdread - PORTREVISION increment
* libdvdread - add patch for including <stdlib.h> in dvdread/ifo_types.h
* Others - LIB_DEPENDS changes (require libdvdread.so.5)
* Others - PORTREVISION increment for those dependent on libdvdread

Approved by:	philip
2007-04-05 06:03:23 +00:00

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: libdvdread
# Date created: 24 Jun 2001
# Whom: Marc van Woerkom <3d@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= libdvdread
PORTVERSION= 0.9.7
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://www.dtek.chalmers.se/groups/dvd/dist/
MAINTAINER= rnoland@2hip.net
COMMENT= This is needed by ogle, which is a DVD player that supports DVD menus
LIB_DEPENDS= dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
DOC_FILES= AUTHORS COPYING NEWS README TODO
# allow build with more warnings enabled
.if defined(NO_WERROR)
CONFIGURE_ARGS+= --disable-warnings
.endif
# 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
post-patch:
.for p in Makefile.in dvdread/Makefile.in src/Makefile.in
@${REINPLACE_CMD} -E -e 's|cd \$$\(top_srcdir\) && \$$\(AUTOMAKE\)|\#|; \
s|cd \$$\(srcdir\) && \$$\(ACLOCAL\)|\#|' ${WRKSRC}/${p}
.endfor
# update this in sync with libdvdcss shared library version
@${REINPLACE_CMD} -E -e 's|(libdvdcss.so).2|\1.${DVDCSS_LIBVERSION}|' \
${WRKSRC}/dvdread/dvd_input.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>