diff --git a/archivers/Makefile b/archivers/Makefile index cc529bdfecd5..22249c65aaa8 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -66,6 +66,7 @@ SUBDIR += p5-Archive-Zip SUBDIR += p5-Compress-Bzip2 SUBDIR += p5-Compress-LZF + SUBDIR += p5-Compress-LZO SUBDIR += p5-Compress-LZW SUBDIR += p5-Compress-Zlib SUBDIR += p5-IO-Zlib diff --git a/archivers/p5-Compress-LZO/Makefile b/archivers/p5-Compress-LZO/Makefile new file mode 100644 index 000000000000..2fc213193993 --- /dev/null +++ b/archivers/p5-Compress-LZO/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: p5-Compress-LZO +# Date created: 2006-09-10 +# Whom: Gea-Suan Lin +# +# $FreeBSD$ +# + +PORTNAME= Compress-LZO +PORTVERSION= 1.08 +CATEGORIES= archivers perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Compress +PKGNAMEPREFIX= p5- + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Interface to the LZO compression library + +LIB_DEPENDS= lzo:${PORTSDIR}/archivers/lzo + +PERL_CONFIGURE= yes + +post-patch: + ${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g' ${WRKSRC}/Makefile.PL + +MAN3= Compress::LZO.3 + +.include diff --git a/archivers/p5-Compress-LZO/distinfo b/archivers/p5-Compress-LZO/distinfo new file mode 100644 index 000000000000..4595b095cd82 --- /dev/null +++ b/archivers/p5-Compress-LZO/distinfo @@ -0,0 +1,3 @@ +MD5 (Compress-LZO-1.08.tar.gz) = 4266ea0cb23817dd02ead4f983c2604f +SHA256 (Compress-LZO-1.08.tar.gz) = cabf52349c12e7044189758093a8f7a56bae85850c1e772d977a7695070f4c06 +SIZE (Compress-LZO-1.08.tar.gz) = 12480 diff --git a/archivers/p5-Compress-LZO/files/patch-Makefile.PL b/archivers/p5-Compress-LZO/files/patch-Makefile.PL new file mode 100644 index 000000000000..2c8a9667db80 --- /dev/null +++ b/archivers/p5-Compress-LZO/files/patch-Makefile.PL @@ -0,0 +1,11 @@ +--- Makefile.PL.orig Sun Sep 10 23:56:49 2006 ++++ Makefile.PL Sun Sep 10 23:57:27 2006 +@@ -14,6 +14,8 @@ + # installed. + + #$LZO_LIB = '-L/usr/local/lib'; ++$LZO_INCLUDE = '-I%%LOCALBASE%%/include'; ++$LZO_LIB = '-L%%LOCALBASE%%/lib'; + + + # It shouldn't be necessary to change anything from here on. diff --git a/archivers/p5-Compress-LZO/pkg-descr b/archivers/p5-Compress-LZO/pkg-descr new file mode 100644 index 000000000000..39b5d37cb892 --- /dev/null +++ b/archivers/p5-Compress-LZO/pkg-descr @@ -0,0 +1,6 @@ +The Compress::LZO module provides a Perl interface to the LZO +compression library (see "AUTHOR" for details about where to get LZO). +A relevant subset of the functionality provided by LZO is available in +Compress::LZO. + +WWW: http://search.cpan.org/dist/Compress-LZO/ diff --git a/archivers/p5-Compress-LZO/pkg-plist b/archivers/p5-Compress-LZO/pkg-plist new file mode 100644 index 000000000000..5e36c50dc8e3 --- /dev/null +++ b/archivers/p5-Compress-LZO/pkg-plist @@ -0,0 +1,9 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/Compress/LZO.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress/LZO/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress/LZO/LZO.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress/LZO/LZO.so +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress/LZO/autosplit.ix +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress/LZO +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Compress +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/Compress