gcc49: use -j4 on jeffpc's dev box
[unleashed-userland.git] / components / libtorrent / Makefile
blob5b1c3a10eed5106f92917430cae240543a42d8b3
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libtorrent
29 COMPONENT_VERSION= 0.13.4
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_PROJECT_URL= https://rakshasa.github.io/rtorrent/
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:704e097119dc89e2ee4630396b25de1cd64b0549841347ea75b9ef9217084955
35 COMPONENT_ARCHIVE_URL= http://rtorrent.net/downloads/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/rtorrent
38 include ../../make-rules/prep.mk
39 include ../../make-rules/configure.mk
40 include ../../make-rules/ips.mk
42 COMPONENT_PREP_ACTION = \
43 (cd $(@D) && \
44 autoreconf -f -I./scripts -I. )
46 COMPONENT_PRE_CONFIGURE_ACTION = \
47 ($(CLONEY) $(SOURCE_DIR) $(@D))
49 # this is needed or we can't compile the rak headers
50 CC=$(CXX)
52 CONFIGURE_OPTIONS += --enable-shared
53 CONFIGURE_OPTIONS += --disable-debug
54 CONFIGURE_OPTIONS += --disable-static
55 #CONFIGURE_OPTIONS += --with-ports
56 CONFIGURE_OPTIONS += --disable-libtool-lock
57 CONFIGURE_OPTIONS.32 += --srcdir=$(BUILD_DIR_32)
58 CONFIGURE_OPTIONS.64 += --srcdir=$(BUILD_DIR_64)
61 # common targets
62 build: $(BUILD_32_and_64)
64 install: $(INSTALL_32_and_64)
66 COMPONENT_TEST_ENV += "LDFLAGS=-lnsl -lcppunit -lsocket -lz"
67 test: $(TEST_32_and_64)
69 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
71 include ../../make-rules/depend.mk