2001-07-06 04:26:40 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: libdvdcss
|
|
|
|
# Date created: Jul 6, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libdvdcss
|
2005-11-23 03:43:01 +00:00
|
|
|
PORTVERSION= 1.2.9
|
2006-02-23 10:40:44 +00:00
|
|
|
PORTREVISION= 2
|
2002-11-28 00:09:51 +00:00
|
|
|
CATEGORIES= multimedia
|
2005-11-23 03:43:01 +00:00
|
|
|
MASTER_SITES= http://download.videolan.org/pub/%SUBDIR%/
|
2001-07-06 04:26:40 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
|
|
|
|
|
2002-04-18 16:30:22 +00:00
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= Portable abstraction library for DVD decryption
|
2001-07-06 04:26:40 +00:00
|
|
|
|
2003-08-09 15:25:47 +00:00
|
|
|
NO_CDROM= CSS code may violate the DMCA
|
|
|
|
|
2003-02-08 00:11:21 +00:00
|
|
|
USE_BZIP2= yes
|
2001-07-06 04:26:40 +00:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-07-06 04:26:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2005-11-28 00:56:13 +00:00
|
|
|
.ifndef(WITH_DOXYGEN)
|
|
|
|
NOPORTDOCS= yes
|
|
|
|
.endif
|
|
|
|
|
2005-11-27 20:25:07 +00:00
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
2005-11-28 00:56:13 +00:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_DOXYGEN)
|
|
|
|
@${ECHO_MSG} '==> Define WITH_DOXYGEN to build API documentation'
|
|
|
|
.endif
|
|
|
|
|
2002-06-04 16:32:00 +00:00
|
|
|
post-patch:
|
2002-08-27 18:21:14 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/ioctl.c
|
2005-11-27 20:25:07 +00:00
|
|
|
# should we disable doc building?
|
|
|
|
.ifdef(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^([[:space:]]*SUBDIRS[[:space:]]*=.*)doc|\1|' \
|
|
|
|
${BUILD_WRKSRC}/Makefile.in
|
|
|
|
.else
|
|
|
|
# we do not want the latex documents... too many dependencies just
|
2005-11-27 20:26:31 +00:00
|
|
|
# to get in ps what we already have in html
|
2005-11-27 20:25:07 +00:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^([[:space:]]*all:[[:space:]]*.*)stamp-latex|\1|' \
|
|
|
|
${BUILD_WRKSRC}/doc/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/html/* ${DOCSDIR}
|
|
|
|
.endif
|
2002-06-04 16:32:00 +00:00
|
|
|
|
2002-04-16 22:19:44 +00:00
|
|
|
.include <bsd.port.mk>
|