backport base-files fix from whiterussian [2308],
[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)/.built:
22 rm -rf $(PKG_INSTALL_DIR)
23 mkdir -p $(PKG_INSTALL_DIR)
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 $(TARGET_CONFIGURE_OPTS) \
26 LDIR=$(PKG_BUILD_DIR) \
27 PREFIX="$(PKG_INSTALL_DIR)/usr" \
28 all install
29 touch $@
30
31 $(IPKG_LIBAMSEL):
32 install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib
33 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
34 $(RSTRIP) $(IDIR_LIBAMSEL)
35 $(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR)
36
37
38 $(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built
39 mkdir -p $(STAGING_DIR)/usr/include
40 cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
41 mkdir -p $(STAGING_DIR)/usr/include/compat
42 cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
43 mkdir -p $(STAGING_DIR)/usr/lib/
44 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
45 touch $(STAGING_DIR)/usr/lib/libamsel.so
46
47 install-dev: $(STAGING_DIR)/usr/lib/libamsel.so
48
49 uninstall-dev:
50 rm -rf \
51 $(STAGING_DIR)/usr/include/compat.h \
52 $(STAGING_DIR)/usr/include/compat \
53 $(STAGING_DIR)/usr/lib/libamsel.so \
54
55 compile-targets: install-dev
56 clean-targets: uninstall-dev
57
This page took 0.050686 seconds and 5 git commands to generate.