update htpdate to new upstream release (v0.8.8)
[openwrt.git] / openwrt / package / gmediaserver / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gmediaserver
6 PKG_VERSION:=0.8.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=fe5d6ab36287999d7acd8aff8dc0819c
9
10 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,GMEDIASERVER,gmediaserver,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
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" \
28 am_cv_func_iconv=no \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --enable-shared \
50 --disable-static \
51 --disable-rpath \
52 --with-gnu-ld \
53 --with-id3lib="$(STAGING_DIR)/usr" \
54 --with-libupnp="$(STAGING_DIR)/usr" \
55 )
56 touch $@
57
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)" \
63 all install
64 touch $@
65
66 $(IPKG_GMEDIASERVER):
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)
75
This page took 0.045311 seconds and 5 git commands to generate.