blob: 9e63dd73666efc34d61dcb2c728849b7aab55817 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= libdvdcss
PORTVERSION= 1.2.12
CATEGORIES= multimedia
MASTER_SITES= http://download.videolan.org/pub/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= Portable abstraction library for DVD decryption
RESTRICTED= CSS code may violate the DMCA
USE_AUTOTOOLS= libtool
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
.ifndef(WITH_DOXYGEN)
NOPORTDOCS= yes
.endif
.ifndef(NOPORTDOCS)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PORTDOCS= *
.endif
NO_STAGE= yes
pre-everything::
.if !defined(WITH_DOXYGEN)
@${ECHO_MSG} '==> Define WITH_DOXYGEN to build API documentation'
.endif
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/ioctl.c
${REINPLACE_CMD} -e '/^pkgconfigdir/s|$$(libdir)|$$(libdir)data|' \
${WRKSRC}/src/Makefile.in
# 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
# to get in ps what we already have in html
@${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
.include <bsd.port.mk>
|