move sysfs to mount_root
[openwrt.git] / openwrt / package / serdisplib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=serdisplib
6 PKG_VERSION:=1.96
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
9
10 PKG_SOURCE_URL:=@SF/serdisplib
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,SERDISPLIB,serdisplib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
21 (cd $(PKG_BUILD_DIR); \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ac_cv_func_malloc_0_nonnull=yes \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --program-prefix="" \
32 --program-suffix="" \
33 --prefix=/usr \
34 --exec-prefix=/usr \
35 --bindir=/usr/bin \
36 --datadir=/usr/share \
37 --includedir=/usr/include \
38 --infodir=/usr/share/info \
39 --libdir=/usr/lib \
40 --libexecdir=/usr/lib \
41 --localstatedir=/var \
42 --mandir=/usr/share/man \
43 --sbindir=/usr/sbin \
44 --sysconfdir=/etc \
45 $(DISABLE_LARGEFILE) \
46 $(DISABLE_NLS) \
47 --enable-shared \
48 --disable-static \
49 --with-gnu-ld \
50 );
51 touch $@
52
53 $(PKG_BUILD_DIR)/.built:
54 $(MAKE) -C $(PKG_BUILD_DIR) all
55 touch $@
56
57 $(IPKG_SERDISPLIB):
58 install -d -m0755 $(IDIR_SERDISPLIB)/usr/lib
59 cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.so.* $(IDIR_SERDISPLIB)/usr/lib
60 $(RSTRIP) $(IDIR_SERDISPLIB)
61 $(IPKG_BUILD) $(IDIR_SERDISPLIB) $(PACKAGE_DIR)
62
63 $(STAGING_DIR)/usr/lib/libserdisp.so: $(PKG_BUILD_DIR)/.built
64 mkdir -p $(STAGING_DIR)/usr/include
65 cp -fpR $(PKG_BUILD_DIR)/include/serdisplib $(STAGING_DIR)/usr/include/
66 mkdir -p $(STAGING_DIR)/usr/lib
67 cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.{a,so*} $(STAGING_DIR)/usr/lib/
68 touch $@
69
70 install-dev: $(STAGING_DIR)/usr/lib/libserdisp.so
71
72 uninstall-dev:
73 rm -rf \
74 $(STAGING_DIR)/usr/include/serdisplib \
75 $(STAGING_DIR)/usr/lib/libserdisp.{a,so*} \
76
77 compile-targets: install-dev
78 clean-targets: uninstall-dev
79
80 mostlyclean:
81 $(MAKE) -C $(PKG_BUILD_DIR) clean
82 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.046389 seconds and 5 git commands to generate.