Corrected missing dependency
[openwrt.git] / package / libamsel / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=libamsel
6 PKG_VERSION:=20040621-cvs
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2077e620047404881a65d39c53c9917e
9
10 PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBAMSEL,libamsel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 rm -rf $(PKG_INSTALL_DIR)
26 mkdir -p $(PKG_INSTALL_DIR)
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 $(TARGET_CONFIGURE_OPTS) \
29 LDIR=$(PKG_BUILD_DIR) \
30 PREFIX="$(PKG_INSTALL_DIR)/usr" \
31 all install
32 touch $@
33
34 $(IPKG_LIBAMSEL):
35 install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib
36 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
37 $(RSTRIP) $(IDIR_LIBAMSEL)
38 $(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR)
39
40
41 $(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built
42 mkdir -p $(STAGING_DIR)/usr/include
43 cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
44 mkdir -p $(STAGING_DIR)/usr/include/compat
45 cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
46 mkdir -p $(STAGING_DIR)/usr/lib/
47 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
48 touch $(STAGING_DIR)/usr/lib/libamsel.so
49
50 install-dev: $(STAGING_DIR)/usr/lib/libamsel.so
51
52 uninstall-dev:
53 rm -rf \
54 $(STAGING_DIR)/usr/include/compat.h \
55 $(STAGING_DIR)/usr/include/compat \
56 $(STAGING_DIR)/usr/lib/libamsel.so \
57
58 compile-targets: install-dev
59 clean-targets: uninstall-dev
60
This page took 0.041111 seconds and 5 git commands to generate.