blob: 7066cc0616a04b6a81bd4fb500a54ce0c6d866a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: Makefile,v 1.24 2014/10/09 14:05:53 wiz Exp $
#
DISTNAME= mousetar-20021217
PKGREVISION= 1
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= Version of tar program from der Mouse
NOT_FOR_PLATFORM+= Interix-*-* # no sys/mtio.h tape support
WRKSRC= ${WRKDIR}
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -DDIRENT_FIXUP
CPPFLAGS.SunOS+= -DTAR_INODE_NONE -DLINUX_NAMLEN
CPPFLAGS.SunOS+= -DL_SET=SEEK_SET -DL_INCR=SEEK_CUR -DL_XTND=SEEK_END
.if !empty(MACHINE_PLATFORM:MNetBSD-[2-9].*-*)
CPPFLAGS+= -DTAR_INODE_INTERNAL
.endif
.if ${OPSYS} == "Linux"
CPPFLAGS+= -DLINUX_NAMLEN
.endif
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
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"
|