diff options
Diffstat (limited to 'filesystems/squashfs/Makefile')
-rw-r--r-- | filesystems/squashfs/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/filesystems/squashfs/Makefile b/filesystems/squashfs/Makefile new file mode 100644 index 00000000000..346f27578dd --- /dev/null +++ b/filesystems/squashfs/Makefile @@ -0,0 +1,48 @@ +# $NetBSD: Makefile,v 1.1 2016/09/09 15:40:17 scole 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="${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" |