components/libmcrypt/Makefile
author Adam Stevko <adam.stevko@gmail.com>
Thu, 07 Feb 2013 00:33:59 +0100
changeset 545 3e7752f531e1
parent 418 0f14712774ea
permissions -rw-r--r--
3487 bring help2man into oi-build
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
418
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    23
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		libmcrypt
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	2.5.8
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	sha1:9a426532e9087dd7737aabccff8b91abf9151a7a
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/mcrypt/files/Libmcrypt/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=  http://mcrypt.sourceforge.net/
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    34
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    35
include $(WS_TOP)/make-rules/prep.mk
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    36
include $(WS_TOP)/make-rules/configure.mk
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
include $(WS_TOP)/make-rules/ips.mk
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
CFLAGS += -xstrconst
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
LDFLAGS += -lsocket -lnsl
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
CONFIGURE_ENV +=	MAKE=$(GMAKE)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
# Need the GNU sed in our path because of assumptions 
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
# in the configure script.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
CONFIGURE_ENV +=	PATH=/usr/gnu/bin:$(PATH)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    48
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    49
CONFIGURE_OPTIONS += --disable-dynamic-loading
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
CONFIGURE_OPTIONS += --with-included-algos="\
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
	rijndael-128,rijndael-192,rinjndael-256,enigma,arcfour,blowfish,des,\
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    52
	tripledes,ecb,cbc,cfb,ctr,ncfb,nofb,ofb,stream" 
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
# Use cloney to symlink to everything in the source directory because
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    55
# some of parts of the build seem to reference directories relative 
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    56
# to the current (build) directory, but are expecting to find files (e.g.,
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    57
# header files) which reside in the source dir. 
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    58
#
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    59
# We also must remove the config.status file; otherwise, configure
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    60
# thinks it has already been configured.
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    61
COMPONENT_PRE_CONFIGURE_ACTION += \
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    62
	$(TOUCH) $(CONFIGURE_SCRIPT) ; \
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    63
	$(RM) $(SOURCE_DIR)/config.status ; \
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    64
	($(CLONEY) $(SOURCE_DIR) $(@D))
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
# common targets
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    67
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
build:		$(BUILD_32_and_64)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    69
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    70
install:	$(INSTALL_32_and_64)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    71
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    72
test:		$(TEST_32_and_64)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    73
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    74
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    75
0f14712774ea 7066768 Move libmcrypt from SFW to Userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    76
include $(WS_TOP)/make-rules/depend.mk