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