freebsd-ports/sysutils/squashfs-tools/Makefile
Ashish SHUKLA 60e2a2226b - Update to 4.2[1]
- Add OPTIONS
- Add LICENSE information
- Fix building on clang
- Remove patch-warnings (integrated upstream)[1]

PR:		ports/166646[1]
Submitted by:	Alex Kozlov <soam@rm-rf.kiev.ua>[1]
2012-05-06 03:04:23 +00:00

63 lines
1.3 KiB
Makefile

# New ports collection makefile for: squashfs-tools
# Date created: 2010-04-21
# Whom: Ashish SHUKLA <wahjava@gmail.com>
#
# $FreeBSD$
#
PORTNAME= squashfs-tools
PORTVERSION= 4.2
CATEGORIES= sysutils
MASTER_SITES= SF/squashfs/squashfs/${DISTNAME}/
DISTNAME= squashfs${PORTVERSION}
MAINTAINER= ashish@FreeBSD.org
COMMENT= Set of tools to manipulate squashfs images
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/../COPYING
PLIST_FILES= bin/mksquashfs \
bin/unsquashfs
OPTIONS= XZ "Build with XZ support" On \
LZO "Build with LZO support" On
MAKE_JOBS_SAFE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/squashfs-tools
USE_CSTD= gnu89
USE_GMAKE= yes
.ifndef NOPORTDOCS
PORTDOCS= ACKNOWLEDGEMENTS CHANGES COPYING \
PERFORMANCE.README README README-${PORTVERSION}
.endif
.include <bsd.port.options.mk>
.ifdef WITH_XZ
MAKE_ARGS+= XZ_SUPPORT=1
.if ${OSVERSION} < 900012 && ${OSVERSION} < 800505
LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz
.endif
.endif
.ifdef WITH_LZO
MAKE_ARGS+= LZO_SUPPORT=1 LZO_DIR=${LOCALBASE}
LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2
.endif
post-patch:
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
-e "s|^\(XATTR\)|# \1|g" \
${WRKSRC}/Makefile
.ifndef NOPORTDOCS
post-install:
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC:H}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>