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