component(developer/golang-123): Add Component
[oi-userland.git] / components / web / apache2-modules / mod_perl / Makefile
blob836cac4af4613314ba12fdea78b0cde1eed4b05a
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright 2023 Niklas Poslovski
25 BUILD_STYLE= justmake
27 include ../../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= mod_perl
30 COMPONENT_VERSION= 2.0.13
31 COMPONENT_PROJECT_URL= https://perl.apache.org/
32 COMPONENT_SUMMARY= Perl plugin for Apache Web Server V2.4
33 COMPONENT_CLASSIFICATION=Web Services/Application and Web Servers
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
36 COMPONENT_ARCHIVE_HASH= sha256:ade3be31c447b8448869fecdfcace258d6d587b8c6c773c5f22735f70d82d6da
37 COMPONENT_ARCHIVE_URL= https://archive.apache.org/dist/perl/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= utility/apache
39 COMPONENT_FMRI= web/server/apache-24/module/apache-perl
40 COMPONENT_LICENSE= Apache v2.0
41 COMPONENT_LICENSE_FILE= LICENSE
43 CONFIGURE_DEFAULT_DIRS= yes
45 include $(WS_MAKE_RULES)/common.mk
47 APACHE_USR_PREFIX= /usr/apache2/2.4
48 AP_PERL5LIB= $(APACHE_USR_PREFIX)/lib/perl
49 AP_PERL5BIN= $(APACHE_USR_PREFIX)/bin
50 PERLMAN= $(APACHE_USR_PREFIX)/man
52 COMPONENT_PRE_BUILD_ACTION= ( \
53 cd $(@D); $(PERL) Makefile.PL \
54 INSTALLDIRS=perl \
55 INSTALLSITELIB=$(AP_PERL5LIB) \
56 INSTALLARCHLIB=$(AP_PERL5LIB) \
57 INSTALLSITEARCH=$(AP_PERL5LIB) \
58 INSTALLPRIVLIB=$(AP_PERL5LIB) \
59 SITEARCHEXP=$(AP_PERL5LIB) \
60 SITELIBEXP=$(AP_PERL5LIB) \
61 INSTALLMAN1DIR=$(PERLMAN)/man1 \
62 INSTALLMAN3DIR=$(PERLMAN)/man3 \
63 INSTALLSCRIPT=$(AP_PERL5BIN) \
64 LINKTYPE=dynamic \
65 MP_APXS=$(APACHE_USR_PREFIX)/bin/apxs \
66 MP_APR_CONFIG=/usr/apr/bin/$(MACH64)/apr-1-config)
68 COMPONENT_TEST_TARGETS= test
70 # Auto-generated dependencies
71 PERL_REQUIRED_PACKAGES += runtime/perl
72 REQUIRED_PACKAGES += library/apr
73 REQUIRED_PACKAGES += library/apr-util
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += web/server/apache-24