freebsd-ports/misc/linm/Makefile
Alexey Dokuchaev 2ab476a8cf - Add a patch to replace deprecated des_* methods from des_old.h, which
enables the build against LibreSSL (OpenSSL head has also removed this
  header)
- Simplify WRKSRC and move it where it normally belongs in Makefile
- Remove no longer required "/LIBS=/s|-lpthread|-pthread|" gimmick, and
  bring Makefile header under standard form
- Provide a better port description while I'm here

PR:		198984
Submitted by:	Bernard Spil
2015-04-11 14:55:33 +00:00

52 lines
1.3 KiB
Makefile

# Created by: CHOI Junho <cjh@FreeBSD.org>
# $FreeBSD$
PORTNAME= linm
DISTVERSION= 0.8.1-1
PORTREVISION= 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)
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gettext pkgconfig gmake libtool
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-cfgpath="${ETCDIR}"
MAKE_JOBS_UNSAFE= yes
INSTALL_TARGET= install-strip
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= SMB DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSMB}
LIB_DEPENDS+= libsmbclient.so:${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' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^AM_CFLAGS/s|=.*|= -fPIC -std=gnu89|' \
${WRKSRC}/panel/vfs/libssh2/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog README README.ko_euckr README.ko_utf8
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>