first try to decrease the size of openssl 0.9.8a
[openwrt.git] / openwrt / package / motion / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=motion
4 PKG_VERSION:=3.2.5.1
5 PKG_RELEASE:=1
6
7 PKG_SOURCE_URL:=http://superb.dl.sourceforge.net/sourceforge/motion
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_CAT:=zcat
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,MOTION,motion,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
19 (cd $(PKG_BUILD_DIR); \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
22 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
23 ./configure \
24 --target=$(GNU_TARGET_NAME) \
25 --host=$(GNU_TARGET_NAME) \
26 --build=$(GNU_HOST_NAME) \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --with-jpeg-mmx="$(STAGING_DIR)/usr" \
30 );
31 touch $@
32
33 $(PKG_BUILD_DIR)/.built:
34 rm -rf $(PKG_INSTALL_DIR)
35 mkdir -p $(PKG_INSTALL_DIR)
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 DESTDIR="$(PKG_INSTALL_DIR)" \
39 all install
40 touch $@
41
42 $(IPKG_MOTION):
43 install -d -m0755 $(IDIR_MOTION)/usr/bin
44 $(CP) $(PKG_INSTALL_DIR)/usr/bin/motion $(IDIR_MOTION)/usr/bin
45 $(RSTRIP) $(IDIR_MOTION)
46 $(IPKG_BUILD) $(IDIR_MOTION) $(PACKAGE_DIR)
47
48 mostlyclean:
49 make -C $(PKG_BUILD_DIR) clean
50 rm $(PKG_BUILD_DIR)/.built
51
This page took 0.038177 seconds and 5 git commands to generate.