Makefile revision 2899
200N/A#
200N/A# CDDL HEADER START
200N/A#
200N/A# The contents of this file are subject to the terms of the
200N/A# Common Development and Distribution License (the "License").
200N/A# You may not use this file except in compliance with the License.
200N/A#
200N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
200N/A# or http://www.opensolaris.org/os/licensing.
200N/A# See the License for the specific language governing permissions
200N/A# and limitations under the License.
200N/A#
200N/A# When distributing Covered Code, include this CDDL HEADER in each
200N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200N/A# If applicable, add the following below this CDDL HEADER, with the
200N/A# fields enclosed by brackets "[]" replaced with your own identifying
200N/A# information: Portions Copyright [yyyy] [name of copyright owner]
200N/A#
200N/A# CDDL HEADER END
200N/A#
200N/A
200N/A#
1625N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
200N/A#
200N/A
200N/Ainclude ../../make-rules/shared-macros.mk
200N/A
814N/ACOMPONENT_NAME= snort
206N/ACOMPONENT_VERSION= 2.9.2
200N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
903N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
618N/ACOMPONENT_ARCHIVE_HASH= \
200N/A sha256:04d375b627dd256d6257f2cbe5a770e4552e3f35d5e2100b97f75426b600d8cb
200N/ACOMPONENT_PROJECT_URL= http://www.snort.org/
844N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dl/snort-current/$(COMPONENT_ARCHIVE)
903N/ACOMPONENT_BUGDB= utility/snort
903N/A
1258N/ATPNO= 9027
200N/A
200N/Ainclude ../../make-rules/prep.mk
200N/Ainclude ../../make-rules/configure.mk
200N/Ainclude ../../make-rules/ips.mk
200N/A
200N/A# without this we bus error on sparc. sadly I don't see any patches
200N/A# that might relate from the upstream (though maybe that's really
200N/A# "happily", as this is simpler)
200N/Astudio_ALIGN.sparc.64= -xmemalign=1i
1625N/A
1625N/A# Need to recreate the configure script for gethrtime checks.
1625N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
1625N/A
1625N/ACONFIGURE_OPTIONS += --with-libpcre-libraries="/usr/lib/$(MACH64)"
200N/ACONFIGURE_OPTIONS += --with-dnet-libraries="/usr/lib/$(MACH64)"
206N/ACONFIGURE_OPTIONS += --without-mysql
206N/ACONFIGURE_OPTIONS += --without-postgresql
206N/ACONFIGURE_OPTIONS += --enable-zlib
206N/ACONFIGURE_OPTIONS += --enable-ipv6
200N/ACONFIGURE_OPTIONS += --disable-static-daq
206N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
200N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
200N/A
200N/A# Move snort shared objects to 64-bit path to stop pkglint bitching.
206N/ACOMPONENT_POST_INSTALL_ACTION += \
200N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
1625N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
206N/A
206N/A# Enable ASLR for this component
206N/AASLR_MODE = $(ASLR_ENABLE)
1625N/A
1625N/A# common targets
1625N/Abuild: $(BUILD_64)
1625N/A
1625N/Ainstall: $(INSTALL_64)
1625N/A
1625N/Atest: $(NO_TESTS)
1625N/A
1625N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
200N/A
200N/Ainclude ../../make-rules/depend.mk
200N/A