Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / mc46 / Makefile
blob8d937dec959454f552c8903bad8011c2906e376c
1 # $NetBSD: Makefile,v 1.10 2012/10/23 19:51:11 asau Exp $
3 DISTNAME= mc-4.6.1
4 PKGREVISION= 15
5 CATEGORIES= sysutils
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
16 GNU_CONFIGURE= YES
17 USE_PKGLOCALEDIR= YES
19 .include "../../mk/bsd.prefs.mk"
21 .if ${OPSYS} == "Linux"
22 PLIST_SRC+= ${PKGDIR}/PLIST.cons.saver
23 .endif
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
31 .include "options.mk"
33 PKG_SYSCONFSUBDIR= mc
34 SUBST_CLASSES+= conf
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
43 .endif
45 post-install:
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}
52 .endif
54 .include "../../devel/gettext-lib/buildlink3.mk"
55 .include "../../mk/bsd.pkg.mk"