View | Details | Raw Unified | Return to bug 210635
Collapse All | Expand All

(-)Makefile (-9 / +7 lines)
Lines 11-20 Link Here
11
MAINTAINER=	malus.x@gmail.com
11
MAINTAINER=	malus.x@gmail.com
12
COMMENT=	Reference DLNA open-source implementation
12
COMMENT=	Reference DLNA open-source implementation
13
13
14
LIB_DEPENDS+=	libavcodec.so:multimedia/ffmpeg
14
LICENSE=	LGPL21+
15
LICENSE_FILE=	${WRKSRC}/COPYING
15
16
17
LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg
18
16
HAS_CONFIGURE=	yes
19
HAS_CONFIGURE=	yes
17
USES=		tar:bzip2 gmake pkgconfig
20
USES=		gmake localbase pkgconfig tar:bzip2
18
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
19
MAKE_JOBS_UNSAFE=	yes
22
MAKE_JOBS_UNSAFE=	yes
20
23
Lines 22-33 Link Here
22
		--includedir="${PREFIX}/include" \
25
		--includedir="${PREFIX}/include" \
23
		--libdir="${PREFIX}/lib"
26
		--libdir="${PREFIX}/lib"
24
27
25
CFLAGS+=	-I${LOCALBASE}/include
28
post-install:
26
LDFLAGS+=	-L${LOCALBASE}/lib
29
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdlna.so
27
30
28
post-patch:
29
	@${REINPLACE_CMD} -e \
30
		's#\(PKGCONFIG_DIR = \).*#\1${STAGEDIR}${PREFIX}/libdata/pkgconfig#' \
31
		${WRKSRC}/Makefile
32
33
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)files/patch-Makefile (+20 lines)
Line 0 Link Here
1
--- Makefile.orig	2007-11-26 20:47:43 UTC
2
+++ Makefile
3
@@ -4,7 +4,7 @@ endif
4
 include config.mak
5
 
6
 DISTFILE = libdlna-$(VERSION).tar.bz2
7
-PKGCONFIG_DIR = $(libdir)/pkgconfig
8
+PKGCONFIG_DIR = $(prefix)/libdata/pkgconfig
9
 PKGCONFIG_FILE = libdlna.pc
10
 
11
 LIBTEST = test-libdlna
12
@@ -19,7 +19,7 @@ EXTRADIST = AUTHORS \
13
 SUBDIRS = src \
14
 
15
 CFLAGS += -Isrc
16
-LDFLAGS += -Lsrc -ldlna
17
+LDFLAGS := -Lsrc -ldlna ${LDFLAGS}
18
 
19
 ifeq ($(BUILD_STATIC),yes)
20
   LDFLAGS += $(EXTRALIBS)

Return to bug 210635