48 lines
1.8 KiB
Makefile
48 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2016/10/01 13:00:42 joerg Exp $
|
|
|
|
DISTNAME= squashfs${VERSION}
|
|
PKGNAME= squashfs-${VERSION}
|
|
VERSION= 4.3
|
|
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/${PKGNAME} \
|
|
share/doc/${PKGNAME}/OLD-READMEs \
|
|
share/examples/${PKGNAME}
|
|
|
|
SQUASH_DIR= ${WRKDIR}/${DISTNAME}
|
|
WRKSRC= ${SQUASH_DIR}/squashfs-tools
|
|
SQUASH_PKG_DOC= ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && env EXTRA_LDFLAGS="-L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib" \
|
|
${GMAKE} ${BUILD_MAKE_FLAGS}
|
|
|
|
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/${PKGNAME}/
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|