2012-02-29 19:14:31 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2012/02/29 18:14:31 hans Exp $
|
2002-10-28 13:41:55 +01:00
|
|
|
#
|
|
|
|
|
2003-01-02 10:45:48 +01:00
|
|
|
DISTNAME= mousetar-20021217
|
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
|
|
|
|
COMMENT= der Mouse's version of tar program
|
|
|
|
|
2004-07-30 16:53:43 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-03-02 04:48:36 +01:00
|
|
|
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
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
|
2004-07-29 23:47:09 +02:00
|
|
|
.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
|
|
|
|
|
2004-07-29 23:47:09 +02:00
|
|
|
.if ${MACHINE_PLATFORM:MNetBSD-[2-9].*-*} != ""
|
|
|
|
CPPFLAGS+= -DTAR_INODE_INTERNAL
|
|
|
|
.endif
|
|
|
|
|
2004-08-18 20:40:36 +02:00
|
|
|
.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
|
|
|
|
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"
|