pkgsrc/archivers/pax/Makefile
triaxx c20ba9288e pax: add <sys/sysmacros.h> for Linux
* On Arch Linux, the build failed, makedev(3) indicates
  #include <sys/sysmacros.h>
* On Debian Buster, the build succeed but a big warning is displayed:
    warning: In the GNU C Library, "minor" is defined
    by <sys/sysmacros.h>. For historical compatibility, it is
    currently defined by <sys/types.h> as well, but we plan to
    remove this soon. To use "minor", include <sys/sysmacros.h>
    directly. If you did not intend to use a system-defined macro
    "minor", you should undefine it after including <sys/types.h>.
2018-10-29 20:18:02 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.53 2018/10/29 20:18:02 triaxx Exp $
DISTNAME= pax-20080110
PKGREVISION= 4
CATEGORIES= archivers
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/
COMMENT= POSIX standard archiver with many extensions
LICENSE= 2-clause-bsd AND modified-bsd AND public-domain
BOOTSTRAP_PKG= yes
CHECK_PERMS= no
MAKE_ENV+= CATMAN_SECTION_SUFFIX=${CATMAN_SECTION_SUFFIX:Q}
MAKE_ENV+= MANINSTALL=${MANINSTALL:Q}
USE_FEATURES= nbcompat
CPPFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1
.include "../../mk/bsd.prefs.mk"
.if defined(NBPAX_PROGRAM_PREFIX) && ${NBPAX_PROGRAM_PREFIX} != ""
CONFIGURE_ARGS+= --program-prefix=${NBPAX_PROGRAM_PREFIX:Q}
.endif
PLIST_SUBST+= NBPAX_PROGRAM_PREFIX=${NBPAX_PROGRAM_PREFIX:Q}
BUILD_DEFS+= NBPAX_PROGRAM_PREFIX
GNU_CONFIGURE= yes
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
# Haiku (BeFS) cannot support hard link
SUBST_CLASSES.Haiku+= symlink
SUBST_STAGE.symlink= pre-configure
SUBST_FILES.symlink= Makefile.in
SUBST_SED.symlink= -e 's,ln -f ,ln -sf ,g'
.include "../../mk/bsd.pkg.mk"