3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c389d3ffba0e69a179de2ec650f1fdcc
10 PKG_SOURCE_URL
:=http
://www.porchdogsoft.com
/download
/
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
,LIBHOWL
,libhowl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,MDNSRESPONDER
,mdnsresponder
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,HOWL_UTILS
,howl-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(eval
$(call PKG_template
,AUTOIPD
,autoipd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(eval
$(call PKG_template
,NIFD
,nifd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(PKG_BUILD_DIR
)/.configured
:
26 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
29 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
32 --target
=$(GNU_TARGET_NAME
) \
33 --host
=$(GNU_TARGET_NAME
) \
34 --build
=$(GNU_HOST_NAME
) \
40 --datadir=/usr
/share \
41 --includedir=/usr
/include \
42 --infodir=/usr
/share
/info \
44 --libexecdir
=/usr
/lib \
45 --localstatedir
=/var \
46 --mandir=/usr
/share
/man \
49 $(DISABLE_LARGEFILE
) \
56 $(PKG_BUILD_DIR
)/.built
:
57 rm -rf
$(PKG_INSTALL_DIR
)
58 mkdir
-p
$(PKG_INSTALL_DIR
)
59 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
60 DESTDIR
="$(PKG_INSTALL_DIR)" \
65 install -m0755
-d
$(IDIR_LIBHOWL
)/usr
/lib
66 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.so.
* $(IDIR_LIBHOWL
)/usr
/lib
/
67 $(RSTRIP
) $(IDIR_LIBHOWL
)
68 $(IPKG_BUILD
) $(IDIR_LIBHOWL
) $(PACKAGE_DIR
)
71 install -m0755
-d
$(IDIR_HOWL_UTILS
)/usr
/bin
72 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/mDNS
{Browse
,Publish
,Query
,Resolve
} $(IDIR_HOWL_UTILS
)/usr
/bin
/
73 $(RSTRIP
) $(IDIR_HOWL_UTILS
)
74 $(IPKG_BUILD
) $(IDIR_HOWL_UTILS
) $(PACKAGE_DIR
)
76 $(IPKG_MDNSRESPONDER
):
77 install -m0755
-d
$(IDIR_MDNSRESPONDER
)/etc
78 install -m0644 .
/files
/mDNSResponder.conf
$(IDIR_MDNSRESPONDER
)/etc
/mDNSResponder.conf
79 install -m0755
-d
$(IDIR_MDNSRESPONDER
)/etc
/init.d
80 install -m0644 .
/files
/mDNSResponder.init
$(IDIR_MDNSRESPONDER
)/etc
/init.d
/mDNSResponder
81 install -m0755
-d
$(IDIR_MDNSRESPONDER
)/usr
/sbin
82 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/mDNSResponder
$(IDIR_MDNSRESPONDER
)/usr
/sbin
/
83 $(RSTRIP
) $(IDIR_MDNSRESPONDER
)
84 $(IPKG_BUILD
) $(IDIR_MDNSRESPONDER
) $(PACKAGE_DIR
)
87 install -m0755
-d
$(IDIR_AUTOIPD
)/etc
/init.d
88 install -m0644 .
/files
/autoipd.init
$(IDIR_AUTOIPD
)/etc
/init.d
/autoipd
89 install -m0755
-d
$(IDIR_AUTOIPD
)/usr
/sbin
90 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/autoipd
$(IDIR_AUTOIPD
)/usr
/sbin
/
91 $(RSTRIP
) $(IDIR_AUTOIPD
)
92 $(IPKG_BUILD
) $(IDIR_AUTOIPD
) $(PACKAGE_DIR
)
95 install -m0755
-d
$(IDIR_NIFD
)/etc
/init.d
96 install -m0644 .
/files
/nifd.init
$(IDIR_NIFD
)/etc
/init.d
/nifd
97 install -m0755
-d
$(IDIR_NIFD
)/usr
/sbin
98 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/nifd
$(IDIR_NIFD
)/usr
/sbin
/
99 $(RSTRIP
) $(IDIR_NIFD
)
100 $(IPKG_BUILD
) $(IDIR_NIFD
) $(PACKAGE_DIR
)
102 $(STAGING_DIR
)/usr
/lib
/libhowl.so
: $(PKG_BUILD_DIR
)/.built
103 mkdir
-p
$(STAGING_DIR
)/usr
/include
104 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/howl
$(STAGING_DIR
)/usr
/include/
105 mkdir
-p
$(STAGING_DIR
)/usr
/lib
106 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
107 mkdir
-p
$(STAGING_DIR
)/usr
/lib
/pkgconfig
108 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/howl.
pc $(STAGING_DIR
)/usr
/lib
/pkgconfig
/
109 touch
$(STAGING_DIR
)/usr
/lib
/libhowl.so
111 install-dev
: $(STAGING_DIR
)/usr
/lib
/libhowl.so
115 $(STAGING_DIR
)/usr
/include/howl \
116 $(STAGING_DIR
)/usr
/lib
/lib
{howl
,mDNSResponder
}.
{a
,so
*} \
117 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/howl.
pc \