blob: 6f7f599522acf98d024a69cdd5df957604f8ea2e (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# $NetBSD: Makefile,v 1.46.2.1 2005/02/21 17:08:00 snj Exp $
DISTNAME= mc-4.6.1-pre2b
PKGNAME= mc-4.6.1rc2
CATEGORIES= sysutils
MASTER_SITES= http://pavelsh.pp.ru/mc/
#MASTER_SITES= http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/ \
# ${MASTER_SITE_SUNSITE:=utils/file/managers/mc/}
MAINTAINER= pavel.arnost@clnet.cz
HOMEPAGE= http://www.ibiblio.org/mc/
COMMENT= User-friendly file manager and visual shell
.include "../../mk/bsd.prefs.mk"
USE_BUILDLINK3= YES
GNU_CONFIGURE= YES
USE_GNU_TOOLS+= make
USE_PKGLOCALEDIR= YES
.if ${OPSYS} == "Linux"
PLIST_SRC+= ${PKGDIR}/PLIST.cons.saver
.endif
# remove dir if no extensions were installed there
post-install:
@${RMDIR} ${PREFIX}/lib/mc 2>/dev/null || ${TRUE}
# we need working e2fsprogs and gpm packages first
CONFIGURE_ARGS+= --without-ext2undel
CONFIGURE_ARGS+= --without-gpm-mouse
MC_FEATURES= edit charset largefile samba subshell vfs x11
MC_DISABLE_FEATURES= x11 samba
MC_SCREEN_LIBRARY= slang
.for feature in ${MC_FEATURES}
__feature:=${feature}
. if empty(MC_DISABLE_FEATURES:M${feature})
. if ${__feature} == edit
CONFIGURE_ARGS+= --with-edit
PLIST_SRC+= ${PKGDIR}/PLIST.mcedit
. elif ${__feature} == charset
CONFIGURE_ARGS+= --enable-charset
.include "../../converters/libiconv/buildlink3.mk"
PLIST_SRC+= ${PKGDIR}/PLIST.charset
. elif ${__feature} == largefile
CONFIGURE_ARGS+= --enable-largefile
. elif ${__feature} == samba
CONFIGURE_ARGS+= --with-samba
. elif ${__feature} == subshell
CONFIGURE_ARGS+= --with-subshell
. elif ${__feature} == vfs
CONFIGURE_ARGS+= --with-vfs
PLIST_SRC+= ${PKGDIR}/PLIST.vfs
. elif ${__feature} == x11
USE_X11= YES
CONFIGURE_ARGS+= --with-x
. endif
. else
. if ${__feature} == edit
CONFIGURE_ARGS+= --without-edit
. elif ${__feature} == charset
CONFIGURE_ARGS+= --disable-charset
. elif ${__feature} == largefile
CONFIGURE_ARGS+= --disable-largefile
. elif ${__feature} == samba
CONFIGURE_ARGS+= --without-samba
. elif ${__feature} == subshell
CONFIGURE_ARGS+= --without-subshell
. elif ${__feature} == vfs
CONFIGURE_ARGS+= --without-vfs
. elif ${__feature} == x11
CONFIGURE_ARGS+= --without-x
. endif
. endif
.endfor
PLIST_SRC+= ${PKGDIR}/PLIST
.if ${MC_SCREEN_LIBRARY} == "slang"
CONFIGURE_ARGS+= --with-screen=slang
.include "../../devel/libslang/buildlink3.mk"
.elif ${MC_SCREEN_LIBRARY} == "ncurses"
CONFIGURE_ARGS+= --with-screen=ncurses
.include "../../devel/ncurses/buildlink3.mk"
.else
CONFIGURE_ARGS+= --with-screen=mcslang
.endif
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|