openbsd-ports/archivers/p5-Compress-Zlib/Makefile

29 lines
723 B
Makefile

# $OpenBSD: Makefile,v 1.51 2008/09/29 18:32:12 simon Exp $
COMMENT= perl interface to the zlib compression library
COMES_WITH= 4.5
MODULES= cpan
DISTNAME= Compress-Zlib-2.011
CATEGORIES= archivers
# Perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::archivers/p5-IO-Compress-Zlib
EXAMPLE_FILES= filtdef filtinf gzcat gzgrep gzstream
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p5-Compress-Zlib
@cd ${WRKSRC}/examples && perl -pi -e \
's,/usr/local/bin/perl,/usr/bin/perl,g' ${EXAMPLE_FILES}
@cd ${WRKSRC}/examples && ${INSTALL_SCRIPT} ${EXAMPLE_FILES} \
${PREFIX}/share/examples/p5-Compress-Zlib
.include <bsd.port.mk>