summaryrefslogtreecommitdiff
path: root/devel/libdlna/Makefile
blob: d106b1739293c493edf9c65f132c0f24f0e30c74 (plain)
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
# Created by: Dave Grochowski <malus.x@gmail.com>
# $FreeBSD$

PORTNAME=	libdlna
PORTVERSION=	0.2.3
PORTREVISION=	5
CATEGORIES=	devel
MASTER_SITES=	http://libdlna.geexbox.org/releases/ \
		LOCAL/ehaupt

MAINTAINER=	malus.x@gmail.com
COMMENT=	Reference DLNA open-source implementation

LIB_DEPENDS+=	libavcodec.so:${PORTSDIR}/multimedia/ffmpeg

HAS_CONFIGURE=	yes
USES=		tar:bzip2 gmake pkgconfig
USE_LDCONFIG=	yes
MAKE_JOBS_UNSAFE=	yes

CONFIGURE_ARGS=	--prefix="${PREFIX}" --disable-optimize \
		--includedir="${PREFIX}/include" \
		--libdir="${PREFIX}/lib"

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e \
		's#\(PKGCONFIG_DIR = \).*#\1${STAGEDIR}${PREFIX}/libdata/pkgconfig#' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>