mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
5253496871
- Convert to USES=libtool - Strip binaries - Use new LIB_DEPENDS syntax
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Created by: 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
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:C/-.*//}
|
|
|
|
USES= gettext pkgconfig gmake libtool
|
|
USE_OPENSSL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-cfgpath="${ETCDIR}"
|
|
MAKE_JOBS_UNSAFE= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= SMB
|
|
|
|
.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 ; \
|
|
/LIBS=/s|-lpthread|-pthread|' ${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>
|