components/quagga/Makefile
branchs11-sru
changeset 2239 f0bde9a421fe
parent 499 fea5d407097b
equal deleted inserted replaced
2238:cc3545c342fd 2239:f0bde9a421fe
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		quagga
    28 COMPONENT_NAME=		quagga
    29 COMPONENT_VERSION=	0.99.8
    29 COMPONENT_VERSION=	0.99.19
    30 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION)
    30 IPS_COMPONENT_VERSION=	$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE_HASH=	sha1:9576d0ac266d173d2a90b8c6f72da8c6b43583d7
    33 COMPONENT_ARCHIVE_HASH=	sha1:614923aa21415a4d6dc19d4438ccee63548e2a9d
    34 COMPONENT_ARCHIVE_URL=	http://www.quagga.net/download/attic/$(COMPONENT_ARCHIVE)
    34 COMPONENT_ARCHIVE_URL=	http://www.quagga.net/download/$(COMPONENT_ARCHIVE)
    35 PATCH_LEVEL = 0
    35 PATCH_LEVEL = 0
    36 
    36 
    37 # without this we bus error on sparc. Until the code in all of Quagga
    37 # without this we bus error on sparc. Until the code in all of Quagga
    38 # does not have any misaligned code we will need the following flag.
    38 # does not have any misaligned code we will need the following flag.
    39 studio_ALIGN.sparc.32=  -xmemalign=8i
    39 studio_ALIGN.sparc.32=  -xmemalign=8i
    40 
    40 
    41 # These options are carried over from the SFW consolidation. Using -xO4 was
    41 # These options are carried over from the SFW consolidation. Using -xO4 was
    42 # explicitly commented out, but no reason was docuemnted.
    42 # explicitly commented out, but no reason was documented.
    43 
    43 
    44 studio_OPT = -xO3
    44 studio_OPT = -xO3
    45 
    45 
    46 LDFLAGS +=-lumem
    46 LDFLAGS +=-lumem
    47 CFGLOCALSTATEDIR=/system/volatile/quagga
    47 CFGLOCALSTATEDIR=/system/volatile/quagga
    56 
    56 
    57 include ../../make-rules/prep.mk
    57 include ../../make-rules/prep.mk
    58 include ../../make-rules/configure.mk
    58 include ../../make-rules/configure.mk
    59 include ../../make-rules/ips.mk
    59 include ../../make-rules/ips.mk
    60 
    60 
    61 CONFIGURE_OPTIONS +=	--with-tags=""
       
    62 CONFIGURE_OPTIONS +=	--with-cflags="$(CFLAGS)"
    61 CONFIGURE_OPTIONS +=	--with-cflags="$(CFLAGS)"
    63 CONFIGURE_OPTIONS +=	--enable-opaque-lsa
    62 CONFIGURE_OPTIONS +=	--enable-opaque-lsa
    64 CONFIGURE_OPTIONS +=	--localstatedir=$(CFGLOCALSTATEDIR)
    63 CONFIGURE_OPTIONS +=	--localstatedir=$(CFGLOCALSTATEDIR)
    65 CONFIGURE_OPTIONS +=	--sysconfdir=$(CFGSYSCONFDIR)
    64 CONFIGURE_OPTIONS +=	--sysconfdir=$(CFGSYSCONFDIR)
    66 CONFIGURE_OPTIONS +=	--includedir=$(CONFIGURE_INCLUDEDIR)
    65 CONFIGURE_OPTIONS +=	--includedir=$(CONFIGURE_INCLUDEDIR)
    70 CONFIGURE_OPTIONS +=	--disable-watchquagga
    69 CONFIGURE_OPTIONS +=	--disable-watchquagga
    71 CONFIGURE_OPTIONS +=	--enable-ospf6d
    70 CONFIGURE_OPTIONS +=	--enable-ospf6d
    72 CONFIGURE_OPTIONS +=	--enable-ripngd
    71 CONFIGURE_OPTIONS +=	--enable-ripngd
    73 CONFIGURE_OPTIONS +=	--enable-user=root
    72 CONFIGURE_OPTIONS +=	--enable-user=root
    74 CONFIGURE_OPTIONS +=	--enable-group=root
    73 CONFIGURE_OPTIONS +=	--enable-group=root
       
    74 CONFIGURE_OPTIONS +=	--enable-solaris
    75 
    75 
    76 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    76 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    77 
    77 
    78 build:		$(BUILD_32)
    78 build:		$(BUILD_32)
    79 install:	$(INSTALL_32)
    79 install:	$(INSTALL_32)