diff options
Diffstat (limited to 'misc/linm/Makefile')
-rw-r--r-- | misc/linm/Makefile | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/misc/linm/Makefile b/misc/linm/Makefile index f7d8f71a0d3e..4f8f0525521f 100644 --- a/misc/linm/Makefile +++ b/misc/linm/Makefile @@ -2,49 +2,53 @@ # $FreeBSD$ PORTNAME= linm -PORTVERSION= ${LINM_VER}.1 -PORTREVISION= 3 +DISTVERSION= 0.8.1-1 CATEGORIES= misc shells -MASTER_SITES= http://kldp.net/frs/download.php/3152/ \ - ftp://ftp.kr.freebsd.org/pub/kldp.net/download/mls/1.LinMStable/LinM${LINM_VER}/ -DISTNAME= linm_${LINM_VER}-1 +MASTER_SITES= http://kldp.net/frs/download.php/4508/ +DISTNAME= ${PORTNAME}_${DISTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Clone of Mdir, mc-style terminal file manager -USES= pkgconfig iconv -USE_AUTOTOOLS= libtool +LICENSE= GPLv2 # (or later) + +OPTIONS_DEFINE= SMB + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-.*//} + +USES= gettext pkgconfig USE_OPENSSL= yes USE_GMAKE= yes -GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtool +CONFIGURE_ARGS= --enable-cfgpath="${ETCDIR}" +MAKE_JOBS_UNSAFE= yes CPPFLAGS+= -I${LOCALBASE}/include -# does not work now -#.if defined(WITHOUT_NLS) -#CONFIGURE_ARGS+=--disable-nls -#PLIST_SUB+= NLS="@comment " -#.else -CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl -liconv" -USES+= gettext -PLIST_SUB+= NLS="" -#.endif - -CONFIGURE_ARGS+= --enable-cfgpath="${PREFIX}/etc/linm" --enable-kolocalepath="${PREFIX}/share/locale/ko/LC_MESSAGES" - -LINM_VER= 0.7.7 -WRKSRC= ${WRKDIR}/linm-${LINM_VER} +LDFLAGS+= -L${LOCALBASE}/lib .include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MSMB} +LIB_DEPENDS+= smbclient:${PORTSDIR}/net/samba-libsmbclient +PLIST_SUB+= SMB="" +.else +CONFIGURE_ENV+= ac_cv_lib_smbclient_smbc_new_context=no +PLIST_SUB+= SMB="@comment " +.endif + post-patch: - @${REINPLACE_CMD} -e 's|Panel::SetCur|SetCur|' ${WRKSRC}/panel/common/panel.h - @${REINPLACE_CMD} -e 's|Position::Show|Show|' ${WRKSRC}/src/ncurses/dialog.h + @${REINPLACE_CMD} -e \ + 's|configpath|cfgpath|g ; \ + /LIBS=/s|-lpthread|-pthread|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + '/^AM_CFLAGS/s|=.*|= -fPIC -std=gnu89|' \ + ${WRKSRC}/panel/vfs/libssh2/Makefile.in post-install: .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${PREFIX}/share/doc/linm -.for file in AUTHORS COPYING ChangeLog README README.ko_euckr README.ko_utf8 - ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} + @${MKDIR} ${DOCSDIR} +.for i in AUTHORS ChangeLog README README.ko_euckr README.ko_utf8 + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) .endfor .endif |