Remove executable bit from these Makefiles. Closes #728
[openwrt/svn-archive/archive.git] / net / ctorrent / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ctorrent
11 PKG_VERSION:=1.3.4-dnh2
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=6635e2d0d0ee21faeb85d95cd93c137b
14
15 PKG_SOURCE_URL:=http://www.rahul.net/dholmes/ctorrent/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-dnh2
18 PKG_CAT:=zcat
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ctorrent
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=console-based BitTorrent client
27 DESCRIPTION:=CTorrent is a BitTorrent client written in the C programming language, known to\\\
28 be a very robust and mature programming language, which produces fast and\\\
29 optimized application.\\\
30 URL:=http://www.rahul.net/dholmes/ctorrent/
31 endef
32
33 define Build/Configure
34 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
38 LDFLAGS="-static -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 ./configure \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
43 --prefix=/usr \
44 --exec-prefix=/usr \
45 --bindir=/usr/bin \
46 --sbindir=/usr/sbin \
47 --libexecdir=/usr/lib \
48 --sysconfdir=/etc \
49 --datadir=/usr/share \
50 --localstatedir=/var \
51 --mandir=/usr/man \
52 --infodir=/usr/info \
53 --program-prefix="" \
54 --with-gnu-ld \
55 );
56 endef
57
58 define Build/Compile
59 $(call Build/Compile/Default, DESTDIR=$(PKG_INSTALL_DIR) install)
60 endef
61
62 define Package/ctorrent/install
63 mkdir -p $(1)
64 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
65 endef
66
67 $(eval $(call BuildPackage,ctorrent))