blob: d61c83ff09263a82bdf19bf68b72e9858d861ad6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# New ports collection makefile for: p5-Compress-Raw-Lzma
# Date created: 2010-07-26
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
#
# $FreeBSD$
#
PORTNAME= Compress-Raw-Lzma
PORTVERSION= 2.031
PORTREVISION= 1
CATEGORIES= archivers perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Low-Level Interface to lzma compression library
PERL_CONFIGURE= yes
MAN3= Compress::Raw::Lzma.3
.include <bsd.port.pre.mk>
.if (${OSVERSION} > 900012) || ((${OSVERSION} > 800505) && (${OSVERSION} < 900000))
LZMA_DEPEND?= sys
.else
LZMA_DEPEND?= xz
.endif
.if (${LZMA_DEPEND} == "xz") || (${LZMA_DEPEND} == "lzmalib")
LIB_DEPENDS= lzma:${PORTSDIR}/archivers/${LZMA_DEPEND}
.endif
pre-build:
.if ${LZMA_DEPEND} == "sys"
${REINPLACE_CMD} -e "/^LDDLFLAGS/ s|${LOCALBASE}/lib|/usr/lib|" ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>
|