blob: 45c71e0f5ca4676355932c2ae29b2897bf8de095 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.8 2013/02/16 15:10:46 tron Exp $
DISTNAME= gmediaserver-0.13.0
PKGREVISION= 5
CATEGORIES= multimedia net
MASTER_SITES= http://download.savannah.gnu.org/releases/gmediaserver/
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/gmediaserver/
COMMENT= UPnP compatible media server for the GNU system
LICENSE= gnu-gpl-v3
USE_TOOLS+= perl pkg-config gmake makeinfo msgfmt
GNU_CONFIGURE= yes
INFO_FILES= yes
USE_PKGLOCALEDIR= yes
CONFIGURE_ARGS+= --with-id3lib=${BUILDLINK_PREFIX.id3lib}
CONFIGURE_ARGS+= --with-libupnp=${BUILDLINK_PREFIX.libupnp}
EGDIR= share/examples/gmediaserver
CFGNAME= gmediaserver.conf
CFGFILE= ${PKG_SYSCONFDIR}/${CFGNAME}
CONF_FILES= ${PREFIX}/${EGDIR}/${CFGNAME} ${CFGFILE}
INSTALLATION_DIRS+= ${EGDIR}
OWN_DIRS_PERMS+= ${VARBASE}/gmediaserver ${GMEDIA_USER} \
${GMEDIA_GROUP} 750
RCD_SCRIPTS= gmediaserver
GMEDIA_USER?= gmedia
GMEDIA_GROUP?= gmedia
PKG_GROUPS_VARS+= GMEDIA_GROUP
PKG_USERS_VARS+= GMEDIA_USER
PKG_GROUPS= ${GMEDIA_GROUP}
PKG_USERS= ${GMEDIA_USER}:${GMEDIA_GROUP}
PKG_GECOS.${GMEDIA_USER}= GMediaServer pseudo-user
PKG_SHELL.${GMEDIA_USER}= ${SH}
BUILD_DEFS+= VARBASE
FILES_SUBST+= CFGFILE=${CFGFILE:Q}
FILES_SUBST+= GMEDIA_GROUP=${GMEDIA_GROUP:Q} GMEDIA_USER=${GMEDIA_USER:Q}
post-install:
${INSTALL_DATA} ${FILESDIR}/${CFGNAME} ${DESTDIR}${PREFIX}/${EGDIR}
.include "../../audio/id3lib/buildlink3.mk"
.include "../../audio/taglib/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../net/libupnp/buildlink3.mk"
.include "../../sysutils/file/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|