Makefile revision 3433
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
3433N/ACOMPONENT_VERSION= 2.9.6.2
213N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
213N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
3433N/A sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
213N/ACOMPONENT_PROJECT_URL= http://www.snort.org/
3433N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
1258N/ACOMPONENT_BUGDB= utility/snort
213N/A
3433N/ATPNO= 19385
2899N/A
213N/Ainclude ../../make-rules/prep.mk
213N/Ainclude ../../make-rules/configure.mk
213N/Ainclude ../../make-rules/ips.mk
213N/A
3433N/APATCH_LEVEL = 0
3433N/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
3433N/A# This option has the side-effect of getting the bindir lines correct in
3433N/A# snort_output.pc, snort_preproc.pc and snort.pc under
3433N/A# /usr/lib/$(MACH64)/pkgconfig/
3433N/ACONFIGURE_OPTIONS += --bindir=/usr/bin
3433N/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