remove duplicate code
[openwrt.git] / openwrt / package / tmsnc / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=tmsnc
4 PKG_VERSION:=0.3.0
5 PKG_RELEASE:=2
6 PKG_MD5SUM:=cc1791dc5be267d272c9b2927c585f6e
7 PKG_SOURCE_URL:=@SF/tmsnc
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_CAT:=zcat
11
12 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,TMSNC,tmsnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.configured:
19 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
20 ac_cv_func_malloc_0_nonnull=yes \
21 ac_cv_func_realloc_0_nonnull=yes \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --sbindir=/usr/sbin \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 --datadir=/usr/share \
37 --localstatedir=/var \
38 --mandir=/usr/man \
39 --infodir=/usr/info \
40 $(DISABLE_NLS) \
41 --with-libiconv-prefix=$(STAGING_DIR)/usr \
42 --with-openssl=$(STAGING_DIR)/usr \
43 --with-ncurses=$(STAGING_DIR) \
44 --with-gnu-ld \
45 )
46 touch $@
47
48 $(PKG_BUILD_DIR)/.built:
49 mkdir -p $(PKG_INSTALL_DIR)
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 install
53 rm -rf $(PKG_INSTALL_DIR)/usr/man
54 touch $@
55
56 $(IPKG_TMSNC):
57 mkdir -p $(IDIR_TMSNC)
58 cp -fpR $(PKG_INSTALL_DIR)/* $(IDIR_TMSNC)/
59 $(RSTRIP) $(IDIR_TMSNC)
60 $(IPKG_BUILD) $(IDIR_TMSNC) $(PACKAGE_DIR)
This page took 0.042284 seconds and 5 git commands to generate.