components/mtr/Makefile
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 7687 1093e2a9adbd
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2015, 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=		mtr
    28 COMPONENT_NAME=		mtr
    29 COMPONENT_VERSION=	0.86
    29 COMPONENT_VERSION=	0.86
    30 COMPONENT_PROJECT_URL=	http://www.bitwizard.nl/mtr/
    30 COMPONENT_PROJECT_URL=	http://www.bitwizard.nl/mtr/
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH=	\
    31 COMPONENT_ARCHIVE_HASH=	\
    34     sha256:7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763
    32     sha256:7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763
    35 COMPONENT_ARCHIVE_URL=	https://github.com/traviscross/mtr/archive/v$(COMPONENT_VERSION).tar.gz
    33 COMPONENT_ARCHIVE_URL=	https://github.com/traviscross/mtr/archive/v$(COMPONENT_VERSION).tar.gz
    36 COMPONENT_BUGDB=	utility/mtr
       
    37 
    34 
    38 TPNO=			18130
    35 TPNO=			18130
    39 
    36 
    40 include ../../make-rules/prep.mk
    37 TEST_TARGET= $(NO_TESTS)
    41 include ../../make-rules/configure.mk
    38 include $(WS_MAKE_RULES)/common.mk
    42 include ../../make-rules/ips.mk
       
    43 
    39 
    44 CONFIGURE_SBINDIR.64 =		$(CONFIGURE_PREFIX)/bin
    40 CONFIGURE_SBINDIR.64 =		$(CONFIGURE_PREFIX)/bin
    45 CONFIGURE_OPTIONS  +=		--without-gtk
    41 CONFIGURE_OPTIONS  +=		--without-gtk
    46 CONFIGURE_OPTIONS  +=		--without-ipinfo
    42 CONFIGURE_OPTIONS  +=		--without-ipinfo
    47 CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
       
    48 CONFIGURE_OPTIONS  +=		LDFLAGS="$(LDFLAGS) $(CC_BITS)"
       
    49 
    43 
    50 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(SOURCE_DIR); ./bootstrap.sh)
    44 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(SOURCE_DIR); ./bootstrap.sh)
    51 
    45 
    52 ASLR_MODE = $(ASLR_ENABLE)
       
    53 
       
    54 # common targets
       
    55 build:		$(BUILD_64)
       
    56 
       
    57 install:	$(INSTALL_64)
       
    58 
       
    59 test:		$(NO_TESTS)
       
    60 
       
    61 system-test:    $(NO_TESTS)
       
    62 
       
    63 REQUIRED_PACKAGES += library/ncurses
    46 REQUIRED_PACKAGES += library/ncurses
    64 REQUIRED_PACKAGES += system/library
       
    65 REQUIRED_PACKAGES += system/library/math
    47 REQUIRED_PACKAGES += system/library/math