pkgsrc/filesystems/fs-utils/Makefile
dholland 88c2d80387 Force MKPROFILE=yes to avoid PLIST divergence.
(I suppose there should probably be a better way to handle these...)
2011-12-21 07:46:59 +00:00

49 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2011/12/21 07:46:59 dholland Exp $
#
DISTNAME= fs-utils_20091116
PKGNAME= ${DISTNAME:S/_/-/}
PKGREVISION= 1
CATEGORIES= filesystems
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/stacktic/
MAINTAINER= stacktic@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/~stacktic/fs-utils.html
COMMENT= Tools to access/modify a file system image through RUMP
ONLY_FOR_PLATFORM= NetBSD-[5-9]*-* FreeBSD-*-* Linux-*-*
PKG_DESTDIR_SUPPORT= user-destdir
USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}/fs-utils
INSTALLATION_DIRS= bin lib include ${PKGMANDIR}/man1 ${PKGMANDIR}/man3
MAKE_FLAGS+= MKPROFILE=yes
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_MESSAGE.path= Adjusting path.
SUBST_FILES.path= Makefile.gen
SUBST_SED.path= -e "s|/usr/pkg|${PREFIX}|g"
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fsu_fts.h \
${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fsu_utils.h \
${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_utils/fts2fsufts.h \
${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/libfsu_mount/fsu_mount.h \
${DESTDIR}${PREFIX}/include
OSNAME!= uname -s
.if ${OSNAME} != "NetBSD"
MAKEFLAGS+= NOGCCERROR=1
USE_FEATURES= nbcompat
NBCOMPAT_CONFIGURE_ARGS+= CFLAGS='-D_FILE_OFFSET_BITS=64 -fPIC'
NBCOMPAT_CONFIGURE_ARGS+= CPPFLAGS='-DPIC'
NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt
.include "../../misc/rump/buildlink3.mk"
.endif # !NetBSD
.include "../../mk/bsd.pkg.mk"