18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 BUILD_BITS= 64 |
26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 COMPONENT_NAME= iftop |
28 COMPONENT_NAME= iftop |
29 COMPONENT_VERSION= 0.17 |
29 COMPONENT_VERSION= 0.17 |
30 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
31 COMPONENT_PROJECT_URL= http://www.ex-parrot.com/~pdw/iftop/ |
30 COMPONENT_PROJECT_URL= http://www.ex-parrot.com/~pdw/iftop/ |
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
34 sha256:d032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac |
32 sha256:d032547c708307159ff5fd0df23ebd3cfa7799c31536fa0aea1820318a8e0eac |
35 COMPONENT_ARCHIVE_URL= http://www.ex-parrot.com/~pdw/iftop/download/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= http://www.ex-parrot.com/~pdw/iftop/download/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= utility/iftop |
|
37 |
34 |
38 TPNO= 9256 |
35 TPNO= 9256 |
39 |
36 |
40 include $(WS_MAKE_RULES)/prep.mk |
37 TEST_TARGET= $(NO_TESTS) |
41 include $(WS_MAKE_RULES)/configure.mk |
38 include $(WS_MAKE_RULES)/common.mk |
42 include $(WS_MAKE_RULES)/ips.mk |
|
43 |
39 |
44 COMPONENT_PRE_CONFIGURE_ACTION = \ |
40 COMPONENT_PRE_CONFIGURE_ACTION = \ |
45 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
41 ($(CLONEY) $(SOURCE_DIR) $(@D)) |
46 |
42 |
47 PATCH_LEVEL= 0 |
43 PATCH_LEVEL= 0 |
49 # without this we bus error on sparc. sadly I don't see any patches |
45 # without this we bus error on sparc. sadly I don't see any patches |
50 # that might relate from the upstream (though maybe that's really |
46 # that might relate from the upstream (though maybe that's really |
51 # "happily", as this is simpler) |
47 # "happily", as this is simpler) |
52 studio_ALIGN.sparc.64= -xmemalign=1i |
48 studio_ALIGN.sparc.64= -xmemalign=1i |
53 |
49 |
54 |
50 IFTOP_LIBDIR= $(USRGNUDIR)/lib |
55 IFTOP_LIBDIR= /usr/gnu/lib |
|
56 LDFLAGS += -L$(IFTOP_LIBDIR) -R$(IFTOP_LIBDIR) |
51 LDFLAGS += -L$(IFTOP_LIBDIR) -R$(IFTOP_LIBDIR) |
57 CPPFLAGS += -I/usr/gnu/include -I/usr/include/ncurses |
52 CPPFLAGS += -I$(USRGNUDIR)/include -I$(USRINCDIR)/ncurses |
58 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
|
59 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
|
60 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
61 |
|
62 |
|
63 # common targets |
|
64 configure: $(CONFIGURE_64) |
|
65 |
|
66 build: $(BUILD_64) |
|
67 |
|
68 install: $(INSTALL_64) |
|
69 |
|
70 test: $(NO_TESTS) |
|
71 |
|
72 system-test: $(NO_TESTS) |
|
73 |
|
74 |
53 |
75 REQUIRED_PACKAGES += library/ncurses |
54 REQUIRED_PACKAGES += library/ncurses |
76 REQUIRED_PACKAGES += system/library |
|
77 REQUIRED_PACKAGES += system/library/libpcap |
55 REQUIRED_PACKAGES += system/library/libpcap |
78 REQUIRED_PACKAGES += system/library/math |
56 REQUIRED_PACKAGES += system/library/math |