Initial Commit
- initial default booting image
This commit is contained in:
12
package/perl-gd/Config.in
Normal file
12
package/perl-gd/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_PERL_GD
|
||||
bool "perl-gd"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_GD
|
||||
help
|
||||
Perl interface to the libgd graphics library.
|
||||
|
||||
https://metacpan.org/release/GD
|
||||
|
||||
comment "perl-gd needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
6
package/perl-gd/perl-gd.hash
Normal file
6
package/perl-gd/perl-gd.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# retrieved by scancpan from https://cpan.metacpan.org/
|
||||
md5 da3f969367ea2e6d217ec05d3b98bc6f GD-2.77.tar.gz
|
||||
sha256 b56c88b8ef3be016ce29bb62dd1f1b6f6b5fbcaa57fea59e9468af6901016fb5 GD-2.77.tar.gz
|
||||
|
||||
# computed by scancpan
|
||||
sha256 1e2250289d6df4ba1c24f7550982d7ffaff2c97cd02e847659406e1afd28e83f LICENSE
|
||||
60
package/perl-gd/perl-gd.mk
Normal file
60
package/perl-gd/perl-gd.mk
Normal file
@@ -0,0 +1,60 @@
|
||||
################################################################################
|
||||
#
|
||||
# perl-gd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PERL_GD_VERSION = 2.77
|
||||
PERL_GD_SOURCE = GD-$(PERL_GD_VERSION).tar.gz
|
||||
PERL_GD_SITE = $(BR2_CPAN_MIRROR)/authors/id/R/RU/RURBAN
|
||||
PERL_GD_DEPENDENCIES = host-perl-extutils-pkgconfig zlib gd
|
||||
PERL_GD_LICENSE = Artistic or GPL-1.0+
|
||||
PERL_GD_LICENSE_FILES = LICENSE
|
||||
PERL_GD_DISTNAME = GD
|
||||
|
||||
PERL_GD_CONF_ENV = \
|
||||
PATH=$(BR_PATH) \
|
||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
|
||||
PERL_GD_DEPENDENCIES += fontconfig
|
||||
PERL_GD_OPTIONS += FONTCONFIG
|
||||
PERL_GD_CONF_OPTS += -lib_fontconfig_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
||||
PERL_GD_DEPENDENCIES += freetype
|
||||
PERL_GD_OPTIONS += FT
|
||||
PERL_GD_CONF_OPTS += -lib_ft_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
PERL_GD_DEPENDENCIES += jpeg
|
||||
PERL_GD_OPTIONS += JPEG
|
||||
PERL_GD_CONF_OPTS += -lib_jpeg_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
PERL_GD_DEPENDENCIES += libpng
|
||||
PERL_GD_OPTIONS += PNG
|
||||
PERL_GD_CONF_OPTS += -lib_png_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WEBP),y)
|
||||
PERL_GD_DEPENDENCIES += webp
|
||||
PERL_GD_OPTIONS += WEBP
|
||||
PERL_GD_CONF_OPTS += -lib_webp_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXPM),y)
|
||||
PERL_GD_DEPENDENCIES += xlib_libXpm
|
||||
PERL_GD_OPTIONS += XPM
|
||||
PERL_GD_CONF_OPTS += -lib_xpm_path=$(STAGING_DIR)/usr
|
||||
endif
|
||||
|
||||
PERL_GD_CONF_OPTS += \
|
||||
-lib_gd_path=$(STAGING_DIR)/usr \
|
||||
-lib_zlib_path=$(STAGING_DIR)/usr \
|
||||
-options=$(subst $(space),$(comma),$(PERL_GD_OPTIONS))
|
||||
|
||||
$(eval $(perl-package))
|
||||
Reference in New Issue
Block a user