pkgsrc/filesystems/squashfs/Makefile
kamil ea7d38fc4d Fix build of squashfs on CentOS 7.x
Fix usage of do-build, don't reinvent it without missing parameters passed
to gmake(1).

Include required lzo, xz, zlib.

Bump PKGREVISION to 2.
2017-03-09 16:31:50 +00:00

51 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2017/03/09 16:31:50 kamil Exp $
VERSION= 4.3
DISTNAME= squashfs${VERSION}
PKGNAME= squashfs-${VERSION}
PKGREVISION= 2
CATEGORIES= filesystems
MASTER_SITES= http://downloads.sourceforge.net/project/squashfs/squashfs/${DISTNAME}/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://squashfs.sourceforge.net/
COMMENT= Tools for squashfs archives
LICENSE= gnu-gpl-v2
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
USE_LANGUAGES= c
USE_TOOLS+= gmake
INSTALLATION_DIRS= bin \
share/doc/squashfs \
share/doc/squashfs/OLD-READMEs \
share/examples/squashfs
SQUASH_DIR= ${WRKDIR}/${DISTNAME}
WRKSRC= ${SQUASH_DIR}/squashfs-tools
SQUASH_PKG_DOC= ${DESTDIR}${PREFIX}/share/doc/squashfs
MAKE_ENV+= EXTRA_LDFLAGS="${COMPILER_RPATH_FLAG}${PREFIX}/lib"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mksquashfs ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/unsquashfs ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${SQUASH_DIR}/ACKNOWLEDGEMENTS ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/CHANGES ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/COPYING ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/DONATIONS ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/INSTALL ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/PERFORMANCE.README ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/README ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/README-4.3 ${SQUASH_PKG_DOC}
${INSTALL_DATA} ${SQUASH_DIR}/OLD-READMEs/* ${SQUASH_PKG_DOC}/OLD-READMEs/
${INSTALL_DATA} ${SQUASH_DIR}/pseudo-file.example ${DESTDIR}${PREFIX}/share/examples/squashfs/
.include "../../archivers/lzo/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"