Browse Source

Merge pull request #6752 from pprindeville/perl-build-redux

perl: version modules and non-base packages
lilik-openwrt-22.03
Philip Prindeville 6 years ago
committed by GitHub
parent
commit
ac35fa13c2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions
  1. +4
    -2
      lang/perl/Makefile
  2. +8
    -2
      lang/perl/perlmod.mk
  3. +10
    -0
      lang/perl/perlver.mk

+ 4
- 2
lang/perl/Makefile View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2016 OpenWrt.org
# Copyright (C) 2006-2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -7,8 +7,10 @@
include $(TOPDIR)/rules.mk
include perlver.mk
PKG_NAME:=perl
PKG_VERSION:=5.28.0
PKG_VERSION:=$(PERL_VERSION)
PKG_RELEASE:=1
PKG_SOURCE_URL:=\


+ 8
- 2
lang/perl/perlmod.mk View File

@ -1,7 +1,13 @@
# This makefile simplifies perl module builds.
#
PERL_VERSION:=5.28
include ../perl/perlver.mk
ifneq ($(PKG_NAME),perl)
PKG_VERSION:=$(PKG_VERSION)+perl$(PERL_VERSION2)
endif
PERL_VERSION:=$(PERL_VERSION2)
# Build environment
HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
@ -9,7 +15,7 @@ ifneq ($(CONFIG_USE_GLIBC),)
EXTRA_LIBS:=bsd
EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
endif
PERL_CMD:=$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION).0
PERL_CMD:=$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION3)
MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
ifdef CONFIG_PERL_THREADS


+ 10
- 0
lang/perl/perlver.mk View File

@ -0,0 +1,10 @@
PERL_VERSION:=5.28.0
PERL_EXPLODE:=$(subst ., ,$(PERL_VERSION))
PERL_MAJOR:=$(word 1,$(PERL_EXPLODE))
PERL_MINOR:=$(word 2,$(PERL_EXPLODE))
PERL_REL:=$(word 3,$(PERL_EXPLODE))
PERL_VERSION3:=$(PERL_VERSION)
PERL_VERSION2:=$(PERL_MAJOR).$(PERL_MINOR)

Loading…
Cancel
Save