summaryrefslogtreecommitdiff
path: root/package/gmediaserver/Makefile
blob: 8fda7494028a0206d9c7cf2b663dbdbd71e92fc0 (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
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		gmediaserver
PKG_VERSION:=		0.13.0
PKG_RELEASE:=		1
PKG_MD5SUM:=		c422de386331e2a1a859d45f6fa270a3
MASTER_SITES:=		http://savannah.nongnu.org/download/gmediaserver/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,GMEDIASERVER,gmediaserver,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))

CONFIGURE_STYLE=	gnu
CONFIGURE_ENV+=		LIBS=" -lixml -lthreadutil -lupnp -lz" \
			am_cv_func_iconv=no
CONFIGURE_ARGS+=	--with-id3lib="${STAGING_DIR}/usr" \
			--with-libupnp="${STAGING_DIR}/usr"
BUILD_STYLE=		auto
INSTALL_STYLE=		auto

ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
CONFIGURE_ENV+=		LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz"
endif

post-install:
	${INSTALL_DIR} ${IDIR_GMEDIASERVER}/etc/init.d
	${INSTALL_BIN} ./files/gmediaserver.init \
		${IDIR_GMEDIASERVER}/etc/init.d/gmediaserver
	${INSTALL_DIR} ${IDIR_GMEDIASERVER}/usr/sbin
	${INSTALL_BIN} ${WRKINST}/usr/bin/gmediaserver ${IDIR_GMEDIASERVER}/usr/sbin/

include ${TOPDIR}/mk/pkg-bottom.mk