0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
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.
|
|
7 |
#
|
|
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.
|
|
12 |
#
|
|
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]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
#
|
70
|
21 |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
|
0
|
22 |
#
|
70
|
23 |
# ident "@(#)Makefile.sfw 1.4 11/02/21 SMI"
|
0
|
24 |
|
|
25 |
include ../Makefile.cmd
|
|
26 |
|
|
27 |
VER =$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
28 |
TARBALL =$(VER).tar.gz
|
|
29 |
|
|
30 |
CXXFLAGS_i386 = -i -xspace -pentium -mr -norunpath -xregs=no%frameptr -xO1 -I/usr/sfw/include -I/usr/include/ncurses -I$(ROOT)/usr/include
|
|
31 |
CXXFLAGS_sparc = -i -xspace -xarch=v8a -mr -norunpath -xO1 -I/usr/sfw/include -I/usr/include/ncurses -I$(ROOT)/usr/include
|
|
32 |
|
|
33 |
LDFLAGS = -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/gnu/lib -R/usr/gnu/lib -L$(ROOT)/usr/lib/
|
|
34 |
|
|
35 |
PKG_CONFIG_PATH = /usr/lib/pkgconfig:$(ROOT)/usr/lib/pkgconfig
|
|
36 |
|
|
37 |
# Build rtorrent
|
|
38 |
# set CC to $CCC so that rak header files can be compile correctly
|
|
39 |
|
|
40 |
all: $(VER)/config.status
|
|
41 |
(cd $(VER); env - \
|
|
42 |
"CC=$(CCC)" \
|
|
43 |
"CXX=$(CCC)" \
|
|
44 |
"CXXFLAGS=$(CXXFLAGS_$(MACH))" \
|
|
45 |
"LDFLAGS=$(LDFLAGS)" \
|
|
46 |
"PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)" \
|
4
|
47 |
$(SFW_ENV) \
|
0
|
48 |
$(CCSMAKE))
|
|
49 |
|
|
50 |
install: all
|
|
51 |
VERSDIR=$(VER) $(SHELL) ./install-sfw
|
|
52 |
|
|
53 |
$(VER)/config.status: $(VER)/configure
|
|
54 |
(cd $(VER); env - \
|
4
|
55 |
$(SFW_ENV) \
|
0
|
56 |
"CC=$(CCC)" \
|
|
57 |
"CXX=$(CCC)" \
|
|
58 |
"CXXFLAGS=$(CXXFLAGS_$(MACH))" \
|
|
59 |
"LDFLAGS=$(LDFLAGS)" \
|
|
60 |
"PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)" \
|
70
|
61 |
$(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS))
|
0
|
62 |
|
|
63 |
$(VER)/configure: $(TARBALL)
|
|
64 |
gzip -dc $(TARBALL) | tar xopf -
|
|
65 |
( cd $(VER); \
|
|
66 |
gpatch -p1 < ../patches/rtorrent-01-solaris.diff; \
|
|
67 |
gpatch -p1 < ../patches/rtorrent-02-event-ports.diff; \
|
|
68 |
gpatch -p1 < ../patches/rtorrent-03-curl-event.diff; \
|
|
69 |
gpatch -p1 < ../patches/rtorrent-04-sunpro.diff; \
|
|
70 |
gpatch -p1 < ../patches/rtorrent-05-sunpro-crash.diff; \
|
|
71 |
aclocal-1.10 -I./scripts -I. ; \
|
|
72 |
autoheader; \
|
|
73 |
libtoolize --automake --copy --force; \
|
|
74 |
automake-1.10; \
|
|
75 |
autoconf )
|
|
76 |
|
|
77 |
clean:
|
|
78 |
-rm -rf $(VER)
|
|
79 |
|
|
80 |
include ../Makefile.targ
|