1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/misc/linm/Makefile
Martin Wilke 01efb90dab - Update to 0.8.1.1
PR:		179211
Submitted by:	Ports Fury
2013-06-09 16:50:22 +00:00

56 lines
1.2 KiB
Makefile

# Created by: cjh@FreeBSD.org
# $FreeBSD$
PORTNAME= linm
DISTVERSION= 0.8.1-1
CATEGORIES= misc shells
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
LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= SMB
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-.*//}
USES= gettext pkgconfig
USE_OPENSSL= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --enable-cfgpath="${ETCDIR}"
MAKE_JOBS_UNSAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
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|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} ${DOCSDIR}
.for i in AUTHORS ChangeLog README README.ko_euckr README.ko_utf8
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
.endif
.include <bsd.port.mk>