1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE_URL
:=http
://superb.dl.sourceforge.net
/sourceforge
/motion
8 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
14 include $(TOPDIR
)/package
/rules.mk
16 $(eval
$(call PKG_template
,MOTION
,motion
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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" \
24 --target
=$(GNU_TARGET_NAME
) \
25 --host
=$(GNU_TARGET_NAME
) \
26 --build
=$(GNU_HOST_NAME
) \
29 --with-jpeg-mmx
="$(STAGING_DIR)/usr" \
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)" \
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
)
49 make
-C
$(PKG_BUILD_DIR
) clean
50 rm $(PKG_BUILD_DIR
)/.built