2005-04-11 23:44:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2005/04/11 21:44:49 tv 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
|
2003-07-17 23:21:03 +02:00
|
|
|
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/mouse/tar/
|
2002-10-28 13:41:55 +01:00
|
|
|
DISTFILES= tar.c tar.man
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tech-pkg@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
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2004-07-30 16:53:43 +02:00
|
|
|
INSTALLATION_DIRS= bin man/man1
|
|
|
|
|
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:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mousetar ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tar.man ${PREFIX}/man/man1/mousetar.1
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|