1 # $NetBSD: Makefile,v 1.10 2012/10/23 19:51:11 asau Exp $
6 MASTER_SITES
= http
://www.ibiblio.org
/pub
/Linux
/utils
/file
/managers
/mc
/ \
7 ${MASTER_SITE_SUNSITE
:=utils
/file
/managers
/mc
/}
9 MAINTAINER
= pavel.arnost@clnet.cz
10 HOMEPAGE
= http
://www.ibiblio.org
/mc
/
11 COMMENT
= User-friendly file manager and visual
shell (old
4.6 branch
)
13 PKG_INSTALLATION_TYPES
= overwrite pkgviews
15 USE_TOOLS
+= pkg-config unzip
:run zip
:run
19 .
include "../../mk/bsd.prefs.mk"
21 .if
${OPSYS} == "Linux"
22 PLIST_SRC
+= ${PKGDIR}/PLIST.cons.saver
25 # we need working e2fsprogs and gpm packages first
26 CONFIGURE_ARGS
+= --without-ext2undel
27 CONFIGURE_ARGS
+= --without-gpm-mouse
28 CONFIGURE_ARGS
+= UNZIP
=${TOOLS_PATH.unzip
} ZIP
=${TOOLS_PATH.zip
}
30 PLIST_SRC
+= ${PKGDIR}/PLIST
35 SUBST_STAGE.conf
= post-patch
36 SUBST_FILES.conf
= vfs
/extfs.c vfs
/sfs.c
37 SUBST_VARS.conf
= PKG_SYSCONFDIR
39 .if
!empty
(PKG_OPTIONS
:Mmc-vfs
)
40 EGDIR
= ${PREFIX}/share
/examples
/mc
41 CONF_FILES
+= ${EGDIR}/extfs.ini
${PKG_SYSCONFDIR}/extfs.ini
42 CONF_FILES
+= ${EGDIR}/sfs.ini
${PKG_SYSCONFDIR}/sfs.ini
46 # remove dir if no extensions were installed there
47 rmdir
${DESTDIR}${PREFIX
:Q
}/lib
/mc
2>/dev
/null ||
${TRUE}
48 .if
!empty
(PKG_OPTIONS
:Mmc-vfs
)
49 ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
50 ${INSTALL_DATA} ${WRKSRC}/vfs
/extfs
/extfs.ini
${DESTDIR}${EGDIR}
51 ${INSTALL_DATA} ${WRKSRC}/vfs
/extfs
/sfs.ini
${DESTDIR}${EGDIR}
54 .
include "../../devel/gettext-lib/buildlink3.mk"
55 .
include "../../mk/bsd.pkg.mk"