freebsd-ports/converters/p5-JSON-PP/Makefile
Sunpoet Po-Chuan Hsieh 3499bcb3a4 - Update to 2.27202
- Add LICENSE
- Cleanup Makefile header

Changes:	http://search.cpan.org/dist/JSON-PP/Changes
2013-03-14 18:54:56 +00:00

40 lines
821 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= JSON-PP
PORTVERSION= 2.27202
CATEGORIES= converters perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:MAKAMAKA
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= A JSON::XS compatible pure-Perl module
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
PERL_CONFIGURE= yes
MAN1= p5json_pp.1
MAN3= JSON::PP.3 \
JSON::PP::Boolean.3
SUB_FILES= pkg-install
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400
PLIST_SUB= BIN_JSON_PP=""
.else
PLIST_SUB= BIN_JSON_PP="@comment "
.endif
pre-patch:
@${MV} ${WRKSRC}/bin/json_pp ${WRKSRC}/bin/p5json_pp
@${REINPLACE_CMD} -e 's|bin/json_pp|bin/p5json_pp|' ${WRKSRC}/MANIFEST ${WRKSRC}/Makefile.PL
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>