Makefile change to compile modules, minor change in patch
[openwrt.git] / openwrt / package / irssi / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=irssi
6 PKG_VERSION:=0.8.9
7 PKG_RELEASE:=1
8
9 PKG_SOURCE_URL:=http://irssi.org/files/
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_MD5SUM:=1df516a770656ff0bec0ab62f9096bf6
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,IRSSI,irssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
24 ac_cv_c_bigendian=no \
25 ac_cv_sizeof_off_t=8 \
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 --program-prefix="" \
41 --with-perl=no \
42 --with-glib1 \
43 --with-gnu-ld \
44 --with-textui \
45 --without-terminfo \
46 --without-bot \
47 --without-file-offset-size \
48 --without-ssl \
49 $(DISABLE_NLS) \
50 --disable-ssl \
51 --disable-ipv6 \
52 --disable-proxy \
53 --with-glib-prefix=$(STAGING_DIR)/usr \
54 );
55 touch $@
56
57 $(PKG_BUILD_DIR)/.built:
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 CC=$(TARGET_CC)
60 touch $@
61
62 $(IPKG_IRSSI):
63 mkdir -p $(IDIR_IRSSI)/usr/bin
64 cp $(PKG_BUILD_DIR)/src/fe-text/$(PKG_NAME) $(IDIR_IRSSI)/usr/bin/
65 $(STRIP) $(IDIR_IRSSI)/usr/bin/*
66 $(IPKG_BUILD) $(IDIR_IRSSI) $(PACKAGE_DIR)
67
68 mostlyclean:
69 $(MAKE) -C $(PKG_BUILD_DIR) clean
70 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.047496 seconds and 5 git commands to generate.