blob: 80385fd8a26f7bbde8eab383750b6fb81ff18482 (
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
|
# New ports collection makefile for: libdvdnav-mplayer
# Date created: 11 August 2008
# Whom: Ganael Laplanche <ganael.laplanche@martymac.com>
#
# $FreeBSD$
#
PORTNAME= libdvdnav-mplayer
PORTVERSION= 4.1.2
PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= 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/
DISTNAME= libdvdnav-${PORTVERSION}
MAINTAINER= ganael.laplanche@martymac.com
COMMENT= Mplayer fork of the lidvdnav project
LIB_DEPENDS= dvdread.4:${PORTSDIR}/multimedia/libdvdread
CFLAGS+= "-I${LOCALBASE}/include"
LDFLAGS+= "-L${LOCALBASE}/lib"
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure2
CONFIGURE_ARGS= --prefix="${PREFIX}" \
--libdir="${PREFIX}/lib" \
--shlibdir="${PREFIX}/lib" \
--incdir="${PREFIX}/include/dvdnav" \
--with-dvdread="${LOCALBASE}/include/dvdread" \
--disable-opts \
--disable-debug \
--extra-cflags="${CFLAGS}" \
--extra-ldflags="${LDFLAGS}"
USE_GMAKE= yes
CONFLICTS= libdvdnav-[0-9]*
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e 's|-ldl ||g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|threadlib="-lpthread"|threadlib="${PTHREAD_LIBS}"|g' \
${WRKSRC}/configure2
.include <bsd.port.mk>
|