blob: 0064dff4e5e7b4364785fcab34cf7254646e9b5c (
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
|
# $NetBSD: Makefile,v 1.21 2001/02/14 14:28:58 is Exp $
#
DISTNAME= mtools-3.9.7
PKGNAME= mtools-3.9.7nb1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.tux.org/pub/tux/knaff/mtools/
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
${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"
|