summaryrefslogtreecommitdiff
path: root/sysutils/mtools/Makefile
blob: 4f3bbc18d88f2122caded875098b56d75adc38b5 (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
# $NetBSD: Makefile,v 1.25 2001/11/29 01:12:48 hubertf Exp $
#

DISTNAME=	mtools-3.9.7
PKGREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	ftp://ftp.tux.org/pub/tux/knaff/mtools/

MAINTAINER=	is@netbsd.org
HOMEPAGE=	http://www.tux.org/pub/knaff/mtools/
COMMENT=	FAT (MS-DOS, Atari) disk access tools

NOT_FOR_PLATFORM = *-*-alpha *-*-sparc64	# LP64 problem

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
INFO_FILES=	mtools.info

.include "../../mk/bsd.prefs.mk"

.ifdef MTOOLS_ENABLE_FLOPPYD
USE_X11=	yes
CPPFLAGS+=	-I${X11BASE}/include
CONFIGURE_ARGS+=	--enable-floppyd
.endif

PLIST_SRC=	${WRKDIR}/PLIST

pre-patch:
	@${LN} -s . ${WRKSRC}/mtools

post-patch:
	@${RM} ${WRKSRC}/mtools

post-install:
.ifdef MTOOLS_ENABLE_FLOPPYD
	${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.else
	${RM} -f ${PREFIX}/man/man1/floppyd.1
	${RM} -f ${PREFIX}/bin/floppyd ${PREFIX}/bin/floppyd_installtest
	${GREP} -v /floppyd ${PKGDIR}/PLIST >${PLIST_SRC}
.endif

.include "../../mk/bsd.pkg.mk"