Makefile revision 213
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
55434c770c89aa1b84474f2559a106803511aba0ek# Common Development and Distribution License (the "License").
55434c770c89aa1b84474f2559a106803511aba0ek# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/shared-macros.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_NAME= snort
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_VERSION= 2.8.4.1
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_HASH= sha1:3ffabb5366c088952fefab19a8dc19ce84d62645
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_PROJECT_URL= http://www.snort.org/
fa9e4066f08beec538e775443c5be79dd423fcabahrens# the main site does not retain older releases
fa9e4066f08beec538e775443c5be79dd423fcabahrensCOMPONENT_ARCHIVE_URL= http://mirror2.openwrt.org/sources/$(COMPONENT_ARCHIVE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
4f5064b73b1cc9de1d0f1a2ae700d519d4d565dfMark J Musanteinclude ../../make-rules/prep.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/configure.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude ../../make-rules/ips.mk
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensPATCH_LEVEL = 0
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens# without this we bus error on sparc. sadly I don't see any patches
fa9e4066f08beec538e775443c5be79dd423fcabahrens# that might relate from the upstream (though maybe that's really
fa9e4066f08beec538e775443c5be79dd423fcabahrens# "happily", as this is simpler)
fa9e4066f08beec538e775443c5be79dd423fcabahrensstudio_ALIGN.sparc.32= -xmemalign=1i
fa9e4066f08beec538e775443c5be79dd423fcabahrens
55434c770c89aa1b84474f2559a106803511aba0ekCONFIGURE_OPTIONS += --with-libpcre=included
88b7b0f29b20b808b9e06071885b1d6a3ddb6328Matthew AhrensCONFIGURE_OPTIONS += --with-libpcap=/usr
b24ab6762772a3f6a89393947930c7fa61306783Jeff BonwickCONFIGURE_OPTIONS += --enable-static=no
b24ab6762772a3f6a89393947930c7fa61306783Jeff BonwickCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
b24ab6762772a3f6a89393947930c7fa61306783Jeff Bonwick
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaum# common targets
0a586cea3ceec7e5e50e7e54c745082a7a333ac2Mark Shellenbaumbuild: $(BUILD_32)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
e05725b117836db173257fae43fb0746eb857fb5bonwickinstall: $(INSTALL_32)
d6e555bdd793b8bc8fe57d5f12c3d69c813d0661George Wilson
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk