source: freewrt/package/mt-daapd/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was b1bc4e2a, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix all remaining init scripts, normalize

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1029 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= mt-daapd
10PKG_VERSION:= 0.2.4
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 2e1cdbe6b94ef153e915806f80a28dca
13PKG_INIT:= 75
14
15PKG_SOURCE_URL:= @SF/mt-daapd
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,MT_DAAPD,mt-daapd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); 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 ac_cv_func_setpgrp_void=yes \
28 ./configure \
29 --target=$(GNU_TARGET_NAME) \
30 --host=$(GNU_TARGET_NAME) \
31 --build=$(GNU_HOST_NAME) \
32 --program-prefix="" \
33 --program-suffix="" \
34 --prefix=/usr \
35 --exec-prefix=/usr \
36 --bindir=/usr/bin \
37 --datadir=/usr/share \
38 --includedir=/usr/include \
39 --infodir=/usr/share/info \
40 --libdir=/usr/lib \
41 --libexecdir=/usr/lib \
42 --localstatedir=/var \
43 --mandir=/usr/share/man \
44 --sbindir=/usr/sbin \
45 --sysconfdir=/etc \
46 --disable-nls \
47 --enable-shared \
48 --disable-static \
49 --enable-mdns \
50 --enable-howl \
51 --with-id3tag="$(STAGING_DIR)/usr" \
52 --with-gdbm-includes="$(STAGING_DIR)/usr/include" \
53 --with-gdbm-libs="$(STAGING_DIR)/usr/lib" \
54 --with-howl-includes="$(STAGING_DIR)/usr/include/howl" \
55 --with-howl-libs="$(STAGING_DIR)/usr/lib" \
56 --without-static-libs \
57 )
58 touch $@
59
60$(WRKBUILD)/.built:
61 rm -rf $(WRKINST)
62 mkdir -p $(WRKINST)
63 $(MAKE) -C $(WRKBUILD) \
64 DESTDIR="$(WRKINST)" \
65 all install
66 touch $@
67
68$(IPKG_MT_DAAPD):
69 install -m0755 -d $(IDIR_MT_DAAPD)/etc
70 install -m0644 $(WRKBUILD)/contrib/mt-daapd.conf $(IDIR_MT_DAAPD)/etc/
71 install -m0644 $(WRKBUILD)/contrib/mt-daapd.playlist $(IDIR_MT_DAAPD)/etc/
72 install -m0755 -d $(IDIR_MT_DAAPD)/etc/init.d
73 install -m0755 ./files/mt-daapd.init \
74 $(IDIR_MT_DAAPD)/etc/init.d/S$(PKG_INIT)mt-daapd
75 install -m0755 -d $(IDIR_MT_DAAPD)/usr/share
76 $(CP) $(WRKINST)/usr/share/mt-daapd $(IDIR_MT_DAAPD)/usr/share/
77 install -m0755 -d $(IDIR_MT_DAAPD)/usr/sbin
78 $(CP) $(WRKINST)/usr/sbin/mt-daapd $(IDIR_MT_DAAPD)/usr/sbin/
79 $(RSTRIP) $(IDIR_MT_DAAPD)
80 $(IPKG_BUILD) $(IDIR_MT_DAAPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.