blob: 539c292c42ce2b4f619e0245f71977b9b5196efb (
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
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= mc
PKG_VERSION:= 4.8.31
PKG_RELEASE:= 1
PKG_HASH:= 24191cf8667675b8e31fc4a9d18a0a65bdc0598c2c5c4ea092494cd13ab4ab1a
PKG_DESCR:= norton commander clone
PKG_SECTION:= sys/misc
PKG_DEPENDS:= glib libncurses libssh2
PKG_BUILDDEP:= glib ncurses libssh2
PKG_URL:= http://www.midnight-commander.org/
PKG_SITES:= http://ftp.midnight-commander.org/
PKG_NOPARALLEL:= 1
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MC,mc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
TARGET_LDFLAGS+= -ltinfo -lncurses
CONFIGURE_ARGS+= --enable-charset \
--disable-background \
--disable-glibtest \
--disable-netcode \
--without-libiconv-prefix \
--without-x \
--enable-vfs \
--enable-vfs-sftp \
--with-mcfs \
--without-samba \
--without-gpm-mouse \
--with-configdir=/etc \
--without-ext2undel \
--with-subshell \
--with-screen=ncurses \
--disable-silent-rules
CONFIGURE_ENV+= mc_cv_have_zipinfo=yes \
am_cv_func_iconv=no
mc-install:
${INSTALL_DIR} ${IDIR_MC}/etc/mc
${INSTALL_DIR} ${IDIR_MC}/usr/bin
${INSTALL_DIR} ${IDIR_MC}/usr/share/mc
${CP} ${WRKINST}/usr/share/mc/* ${IDIR_MC}/usr/share/mc
${INSTALL_BIN} ${WRKINST}/usr/bin/mc ${IDIR_MC}/usr/bin/
cd ${IDIR_MC}/usr/bin && ln -fs mc mcedit && ln -fs mc mcview
cd ${WRKINST}/etc/mc && ${CP} mcedit.menu sfs.ini \
mc.menu ${IDIR_MC}/etc/mc/
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|