fine tune package, add example conf
[openwrt.git] / openwrt / package / gmediaserver / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=gmediaserver
6 PKG_VERSION:=0.7.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=08d3d0274ff7b37b135d6f21b47cb3c5
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 BR2_PACKAGE_GMEDIASERVER=m
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,GMEDIASERVER,gmediaserver,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS=" -lixml -lthreadutil -lupnp -luClibc++ -lz" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --enable-shared \
51 --disable-static \
52 --disable-rpath \
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.040845 seconds and 5 git commands to generate.