mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
eee58d187e
Before, we had: site_perl : lib/perl5/site_perl/5.18 site_perl/perl_arch : lib/perl5/site_perl/5.18/mach perl_man3 : lib/perl5/5.18/man/man3 Now we have: site_perl : lib/perl5/site_perl site_arch : lib/perl5/site_perl/mach/5.18 perl_man3 : lib/perl5/site_perl/man/man3 Modules without any .so will be installed at the same place regardless of the Perl version, minimizing the upgrade when the major Perl version is changed. It uses a version dependent directory for modules with compiled bits. As PERL_ARCH is no longer needed in plists, it has been removed from PLIST_SUB. The USE_PERL5=fixpacklist keyword is removed, the .packlist file is now always removed, as is perllocal.pod. The old site_perl and site_perl/arch directories have been kept in the default Perl @INC for all Perl ports, and will be phased out as these old Perl versions expire. PR: 194969 Differential Revision: https://reviews.freebsd.org/D1019 Exp-run by: antoine Reviewed by: perl@ Approved by: portmgr
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= XML-XML2JSON
|
|
PORTVERSION= 0.06
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Convert XML into JSON (and back again) using XML::LibXML
|
|
|
|
LICENSE= ART10 GPLv1
|
|
LICENSE_COMB= dual
|
|
|
|
BUILD_DEPENDS= p5-XML-LibXML>=1.59:${PORTSDIR}/textproc/p5-XML-LibXML
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
# the order of options follows the search order of JSON module by XML::XML2JSON
|
|
OPTIONS_DEFINE= JSON_SYCK JSON_XS JSON JSON_DWIW
|
|
OPTIONS_DEFAULT=JSON_SYCK
|
|
JSON_SYCK_DESC= Use JSON::Syck
|
|
JSON_XS_DESC= Use JSON::XS
|
|
JSON_DESC= Use JSON
|
|
JSON_DWIW_DESC= Use JSON::DWIW
|
|
|
|
USE_PERL5= configure
|
|
USES= perl5
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if !${PORT_OPTIONS:MJSON_SYCK} && !${PORT_OPTIONS:MJSON_XS} && !${PORT_OPTIONS:MJSON} && !${PORT_OPTIONS:MJSON_DWIW}
|
|
IGNORE= you must choose at least one JSON module
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJSON_SYCK}
|
|
BUILD_DEPENDS+= p5-YAML-Syck>=0:${PORTSDIR}/textproc/p5-YAML-Syck
|
|
RUN_DEPENDS+= p5-YAML-Syck>=0:${PORTSDIR}/textproc/p5-YAML-Syck
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJSON_XS}
|
|
BUILD_DEPENDS+= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
|
|
RUN_DEPENDS+= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJSON}
|
|
BUILD_DEPENDS+= p5-JSON>=0:${PORTSDIR}/converters/p5-JSON
|
|
RUN_DEPENDS+= p5-JSON>=0:${PORTSDIR}/converters/p5-JSON
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MJSON_DWIW}
|
|
BUILD_DEPENDS+= p5-JSON-DWIW>=0:${PORTSDIR}/converters/p5-JSON-DWIW
|
|
RUN_DEPENDS+= p5-JSON-DWIW>=0:${PORTSDIR}/converters/p5-JSON-DWIW
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|