blob: 0e9d74f927c32e3f39108e11a3a09782ea5e315c (
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
|
# Created by: Volker Theile <votdev@gmx.de>
# $FreeBSD$
PORTNAME= ushare
PORTVERSION= 1.1a
PORTREVISION= 10
CATEGORIES= net
MASTER_SITES= http://ushare.geexbox.org/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= Lightweight UPnP (TM) A/V Media Server
LIB_DEPENDS= libupnp.so:${PORTSDIR}/devel/upnp
HAS_CONFIGURE= yes
USE_BZIP2= yes
USES= gettext gmake pkgconfig
LDFLAGS+= -L${LOCALBASE}/lib -lintl
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}
MAN1= ${PORTNAME}.1
OPTION_DEFINE= LIBDLNA
LIBDLNA_DESC= DLNA (PS3) support
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBDLNA}
LIB_DEPENDS+= libdlna.so:${PORTSDIR}/devel/libdlna
CONFIGURE_ARGS= --enable-dlna
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${CP} ${WRKSRC}/scripts/${PORTNAME}.conf \
${PREFIX}/etc/${PORTNAME}.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/scripts/${PORTNAME} ${PREFIX}/etc/rc.d
${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.1 ${PREFIX}/man/man1
post-install:
${CP} -np ${PREFIX}/etc/${PORTNAME}.conf.sample \
${PREFIX}/etc/${PORTNAME}.conf || ${TRUE}
.include <bsd.port.mk>
|