diff options
author | bapt <bapt@FreeBSD.org> | 2013-04-29 04:01:07 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-04-29 04:01:07 +0800 |
commit | 839ca29ce3909cfe75f51f01c6bfd6263cca79ac (patch) | |
tree | 8462df47de7a523e2debd710ebc0516911e33a43 /sysutils/squashfs-tools | |
parent | 7a2d41eb20684123f01fb37f8af0b0c0bdfd1f26 (diff) | |
download | freebsd-ports-gnome-839ca29ce3909cfe75f51f01c6bfd6263cca79ac.tar.gz freebsd-ports-gnome-839ca29ce3909cfe75f51f01c6bfd6263cca79ac.tar.zst freebsd-ports-gnome-839ca29ce3909cfe75f51f01c6bfd6263cca79ac.zip |
Convert left sysutils ports to new options framework
Diffstat (limited to 'sysutils/squashfs-tools')
-rw-r--r-- | sysutils/squashfs-tools/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/sysutils/squashfs-tools/Makefile b/sysutils/squashfs-tools/Makefile index 16d829a38cf8..64c191140d62 100644 --- a/sysutils/squashfs-tools/Makefile +++ b/sysutils/squashfs-tools/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: squashfs-tools -# Date created: 2010-04-21 -# Whom: Ashish SHUKLA <wahjava@gmail.com> -# +# Created by: Ashish SHUKLA <wahjava@gmail.com> # $FreeBSD$ -# PORTNAME= squashfs-tools PORTVERSION= 4.2 @@ -20,8 +16,10 @@ LICENSE_FILE= ${WRKSRC}/../COPYING PLIST_FILES= bin/mksquashfs \ bin/unsquashfs -OPTIONS= XZ "Build with XZ support" On \ - LZO "Build with LZO support" On +OPTIONS_DEFINE= XZ LZO DOCS +OPTIONS_DEFAULT= XZ LZO +XZ_DESC= Build with XZ support +LZO_DESC= Build with LZO support MAKE_JOBS_SAFE= yes WRKSRC= ${WRKDIR}/${DISTNAME}/squashfs-tools @@ -30,21 +28,21 @@ USE_CSTD= gnu89 USE_GMAKE= yes -.ifndef NOPORTDOCS +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= ACKNOWLEDGEMENTS CHANGES COPYING \ PERFORMANCE.README README README-${PORTVERSION} .endif -.include <bsd.port.options.mk> - -.ifdef WITH_XZ +.if ${PORT_OPTIONS:MXZ} MAKE_ARGS+= XZ_SUPPORT=1 .if ${OSVERSION} < 900012 && ${OSVERSION} < 800505 LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz .endif .endif -.ifdef WITH_LZO +.if ${PORT_OPTIONS:MLZO} MAKE_ARGS+= LZO_SUPPORT=1 LZO_DIR=${LOCALBASE} LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2 .endif @@ -54,7 +52,7 @@ post-patch: -e "s|^\(XATTR\)|# \1|g" \ ${WRKSRC}/Makefile -.ifndef NOPORTDOCS +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC:H}/|} ${DOCSDIR} |