blob: 778410c10aa480edb64c258deabc4dd603ff4b63 (
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.18 2000/09/26 11:09:27 agc Exp $
#
DISTNAME= mtools-3.9.5
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.tux.org/pub/tux/knaff/mtools/
PATCH_SITES= ftp://ftp.tux.org/pub/tux/knaff/mtools/
PATCHFILES= mtools-3.9.5-0905.diff.gz
MAINTAINER= is@netbsd.org
HOMEPAGE= http://www.tux.org/pub/knaff/mtools/
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
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
${RM} -f ${PREFIX}/man/man1/floppyd.1
${RM} -f ${PREFIX}/bin/floppyd ${PREFIX}/bin/floppyd_installtest
${GREP} -v /floppyd ${PKGDIR}/PLIST >${PLIST_SRC}
.else
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.endif
.include "../../mk/bsd.pkg.mk"
|