2016-02-25 10:28:36 +01:00
|
|
|
# $NetBSD: Makefile,v 1.25 2016/02/25 09:28:36 jperkin Exp $
|
2002-10-28 13:41:55 +01:00
|
|
|
#
|
|
|
|
|
2003-01-02 10:45:48 +01:00
|
|
|
DISTNAME= mousetar-20021217
|
2012-04-08 01:35:35 +02:00
|
|
|
PKGREVISION= 1
|
2002-10-28 13:41:55 +01:00
|
|
|
CATEGORIES= sysutils
|
2007-06-05 07:52:11 +02:00
|
|
|
MASTER_SITES= ftp://sparkle.rodents.montreal.qc.ca/pub/mouse/ftp.netbsd.org/tar/
|
2002-10-28 13:41:55 +01:00
|
|
|
DISTFILES= tar.c tar.man
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-10-28 13:41:55 +01:00
|
|
|
#HOMEPAGE= none
|
2013-04-06 05:45:05 +02:00
|
|
|
COMMENT= Version of tar program from der Mouse
|
2002-10-28 13:41:55 +01:00
|
|
|
|
2005-01-21 03:33:47 +01:00
|
|
|
NOT_FOR_PLATFORM+= Interix-*-* # no sys/mtio.h tape support
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
|
2004-07-29 23:47:09 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2012-04-08 01:32:40 +02:00
|
|
|
CPPFLAGS+= -DDIRENT_FIXUP
|
|
|
|
CPPFLAGS.SunOS+= -DTAR_INODE_NONE -DLINUX_NAMLEN
|
2012-02-29 19:14:31 +01:00
|
|
|
CPPFLAGS.SunOS+= -DL_SET=SEEK_SET -DL_INCR=SEEK_CUR -DL_XTND=SEEK_END
|
2016-02-25 10:28:36 +01:00
|
|
|
CPPFLAGS.Linux+= -DLINUX_NAMLEN
|
2012-02-29 19:14:31 +01:00
|
|
|
|
2013-10-12 19:16:54 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*-*)
|
2004-07-29 23:47:09 +02:00
|
|
|
CPPFLAGS+= -DTAR_INODE_INTERNAL
|
|
|
|
.endif
|
|
|
|
|
2006-04-21 16:32:02 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2004-07-30 16:53:43 +02:00
|
|
|
|
2002-10-28 13:41:55 +01:00
|
|
|
do-extract:
|
|
|
|
for f in ${DISTFILES}; do \
|
|
|
|
${CP} ${DISTDIR}/$$f ${WRKDIR}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
do-build:
|
2003-09-18 16:00:58 +02:00
|
|
|
cd ${WRKSRC}; ${CC} ${CPPFLAGS} ${CFLAGS} tar.c -o mousetar
|
2002-10-28 13:41:55 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-03-02 04:48:36 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mousetar ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tar.man \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/mousetar.1
|
2002-10-28 13:41:55 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|