fix mysql dependencies
[openwrt.git] / openwrt / package / serdisplib / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=serdisplib
4 PKG_VERSION:=1.96
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=b074e02d8d63f34cba8ec45c23f63f78
7
8 PKG_SOURCE_URL:=http://dl.sourceforge.net/sourceforge/serdisplib
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
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,SERDISPLIB,serdisplib,$(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)" \
22 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --without-libiconv-prefix \
30 --without-libintl-prefix \
31 --disable-nls \
32 );
33 touch $@
34
35 $(PKG_BUILD_DIR)/.built:
36 rm -rf $(PKG_INSTALL_DIR)
37 mkdir -p $(PKG_INSTALL_DIR)/usr/bin
38 mkdir -p $(PKG_INSTALL_DIR)/usr/lib
39 $(MAKE) -C $(PKG_BUILD_DIR)/src \
40 prefix="$(PKG_INSTALL_DIR)/usr"
41 cp -fpR $(PKG_BUILD_DIR)/src/testserdisp $(PKG_INSTALL_DIR)/usr/bin
42 cp -fpR $(PKG_BUILD_DIR)/lib/libserdisp.so* $(PKG_INSTALL_DIR)/usr/lib
43 touch $@
44
45 $(IPKG_SERDISPLIB):
46 install -d -m0755 $(IDIR_SERDISPLIB)/usr/bin
47 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/testserdisp $(IDIR_SERDISPLIB)/usr/bin
48 install -d -m0755 $(IDIR_SERDISPLIB)/usr/lib
49 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libserdisp.so* $(IDIR_SERDISPLIB)/usr/lib
50 $(RSTRIP) $(IDIR_SERDISPLIB)
51 $(IPKG_BUILD) $(IDIR_SERDISPLIB) $(PACKAGE_DIR)
52
53 mostlyclean:
54 make -C $(PKG_BUILD_DIR) clean
55 rm $(PKG_BUILD_DIR)/.built
This page took 0.0429850000000001 seconds and 5 git commands to generate.