3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=93de0f8dcbc1353a0d0dd5b5ab4b3142
10 PKG_SOURCE_URL
:=http
://savannah.nongnu.org
/download
/gmediaserver
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,GMEDIASERVER
,gmediaserver
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
22 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
23 $(TARGET_CONFIGURE_OPTS
) \
24 CFLAGS
="$(TARGET_CFLAGS)" \
25 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
26 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 LIBS
=" -lixml -lthreadutil -lupnp -luClibc++ -lz" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
53 --with-id3lib
="$(STAGING_DIR)/usr" \
54 --with-libupnp
="$(STAGING_DIR)/usr" \
58 $(PKG_BUILD_DIR
)/.built
:
59 rm -rf
$(PKG_INSTALL_DIR
)
60 mkdir
-p
$(PKG_INSTALL_DIR
)
61 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
62 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 install -m0755
-d
$(IDIR_GMEDIASERVER
)/etc
/default
68 install -m0644 .
/files
/gmediaserver.default
$(IDIR_GMEDIASERVER
)/etc
/default
/gmediaserver
69 install -m0755
-d
$(IDIR_GMEDIASERVER
)/etc
/init.d
70 install -m0755 .
/files
/gmediaserver.init
$(IDIR_GMEDIASERVER
)/etc
/init.d
/gmediaserver
71 install -m0755
-d
$(IDIR_GMEDIASERVER
)/usr
/sbin
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/gmediaserver
$(IDIR_GMEDIASERVER
)/usr
/sbin
/
73 $(RSTRIP
) $(IDIR_GMEDIASERVER
)
74 $(IPKG_BUILD
) $(IDIR_GMEDIASERVER
) $(PACKAGE_DIR
)