pkgsrc/archivers/mousetar/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

2012-02-29 19:14:31 +01:00
# $NetBSD: Makefile,v 1.18 2012/02/29 18:14:31 hans Exp $
#
DISTNAME= mousetar-20021217
CATEGORIES= sysutils
MASTER_SITES= ftp://sparkle.rodents.montreal.qc.ca/pub/mouse/ftp.netbsd.org/tar/
DISTFILES= tar.c tar.man
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= none
COMMENT= der Mouse's version of tar program
2004-07-30 16:53:43 +02:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
2004-07-30 16:53:43 +02:00
2005-01-21 03:33:47 +01:00
NOT_FOR_PLATFORM+= Interix-*-* # no sys/mtio.h tape support
WRKSRC= ${WRKDIR}
.include "../../mk/bsd.prefs.mk"
2012-02-29 19:14:31 +01:00
CPPFLAGS.SunOS+= -DTAR_INODE_NONE -DDIRENT_FIXUP -DLINUX_NAMLEN
CPPFLAGS.SunOS+= -DL_SET=SEEK_SET -DL_INCR=SEEK_CUR -DL_XTND=SEEK_END
.if ${MACHINE_PLATFORM:MNetBSD-[2-9].*-*} != ""
CPPFLAGS+= -DTAR_INODE_INTERNAL
.endif
.if ${OPSYS} == "Linux"
CPPFLAGS+= -DLINUX_NAMLEN
.endif
2006-04-21 16:32:02 +02:00
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
2004-07-30 16:53:43 +02:00
do-extract:
for f in ${DISTFILES}; do \
${CP} ${DISTDIR}/$$f ${WRKDIR}; \
done
do-build:
cd ${WRKSRC}; ${CC} ${CPPFLAGS} ${CFLAGS} tar.c -o mousetar
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mousetar ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tar.man \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mousetar.1
.include "../../mk/bsd.pkg.mk"