aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libdvdread/Makefile
blob: 9d28b1f9ae19e9ca1c12bded35af7e95d568d55f (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
# New ports collection makefile for:    libdvdread
# Date created:             24 Jun 2001
# Whom:                 Marc van Woerkom <3d@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   libdvdread
PORTVERSION=    4.1.4.r1217
CATEGORIES= multimedia
# Svn repository URL : svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdread
MASTER_SITES=   http://contribs.martymac.org/FreeBSD-ports/distfiles/ \
        http://www1.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        http://www2.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        http://www3.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        http://www4.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        http://www5.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        ftp://ftp1.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        ftp://ftp2.mplayerhq.hu/MPlayer/releases/dvdnav/ \
        LOCAL/makc
DISTNAME=   ${PORTNAME}-${PORTVERSION:S,r,,}

MAINTAINER= ganael.laplanche@martymac.org
COMMENT=    MPlayer version of the libdvdread project

.if !defined(PACKAGE_BUILDING)
LIB_DEPENDS=    dvdcss.${DVDCSS_LIBVERSION}:${PORTSDIR}/multimedia/libdvdcss
.endif

USE_BZIP2=  yes
HAS_CONFIGURE=  yes
CONFIGURE_SCRIPT=   configure2
CONFIGURE_ARGS= --prefix="${PREFIX}" \
        --libdir="${PREFIX}/lib" \
        --libdatadir="${PREFIX}/libdata/pkgconfig" \
        --shlibdir="${PREFIX}/lib" \
        --incdir="${PREFIX}/include/dvdread" \
        --disable-opts \
        --disable-debug \
        --cc="${CC}"
USE_GMAKE=  yes
USE_LDCONFIG=   yes

# DVDCSS version hardcoded in src/dvd_input.c (dlopen'ed)
DVDCSS_LIBVERSION=  3

post-patch:
    @${REINPLACE_CMD} -e 's|-ldl ||g' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -E -e 's|(libdvdcss.so)\.2|\1.${DVDCSS_LIBVERSION}|' \
        ${WRKSRC}/src/dvd_input.c

.include <bsd.port.mk>