blob: f7d8f71a0d3e3f04d0fdb034b7d8844344a48f12 (
plain) (
blame)
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
|
# Created by: cjh@FreeBSD.org
# $FreeBSD$
PORTNAME= linm
PORTVERSION= ${LINM_VER}.1
PORTREVISION= 3
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
MAINTAINER= ports@FreeBSD.org
COMMENT= Clone of Mdir, mc-style terminal file manager
USES= pkgconfig iconv
USE_AUTOTOOLS= libtool
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= 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}
.include <bsd.port.options.mk>
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
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}
.endfor
.endif
.include <bsd.port.mk>
|