freebsd-ports/archivers/p5-Compress-Raw-Lzma/Makefile
2011-06-30 07:42:45 +00:00

44 lines
940 B
Makefile

# 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.037
CATEGORIES= archivers perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:PMQS
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 (${ARCH} == "sparc64")
LZMA_DEPEND= xz
.endif
.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|${LIBDIR}|" ${WRKSRC}/Makefile
.endif
.include <bsd.port.post.mk>