source: freewrt/package/ctorrent/Makefile@ 0949a4d

freewrt_2_0
Last change on this file since 0949a4d was fa4d444, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix ctorrent, link with uclibc++

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@2304 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100755
File size: 1.6 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= ctorrent
10PKG_VERSION:= 1.3.4-dnh2
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 6635e2d0d0ee21faeb85d95cd93c137b
13PKG_SOURCE_URL:= http://www.rahul.net/dholmes/ctorrent/
14WRKSRC= ${WRKDIR}/$(PKG_NAME)-dnh2
15
16include $(TOPDIR)/mk/package.mk
17
18$(eval $(call PKG_template,CTORRENT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20$(WRKBUILD)/.configured:
21 (cd $(WRKBUILD); rm -rf config.cache; \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/openssl" \
26 LDFLAGS="-lgcc_s -luClibc++ -lc -lm -nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
27 ./configure \
28 --target=$(GNU_TARGET_NAME) \
29 --host=$(GNU_TARGET_NAME) \
30 --build=$(GNU_HOST_NAME) \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --sbindir=/usr/sbin \
35 --libexecdir=/usr/lib \
36 --sysconfdir=/etc \
37 --datadir=/usr/share \
38 --localstatedir=/var \
39 --mandir=/usr/man \
40 --infodir=/usr/info \
41 --program-prefix="" \
42 --with-gnu-ld \
43 );
44 touch $@
45
46$(WRKBUILD)/.built:
47 $(MAKE) STAGING_DIR=$(STAGING_DIR) DESTDIR=$(WRKINST) -C $(WRKBUILD) install
48 touch $@
49
50$(IPKG_CTORRENT):
51 mkdir -p $(IDIR_CTORRENT)
52 $(CP) $(WRKINST)/* $(IDIR_CTORRENT)/
53 $(RSTRIP) $(IDIR_CTORRENT)/
54 $(IPKG_BUILD) $(IDIR_CTORRENT) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.