blob: 79a4747b89f0c93c19428f72c65fbe8242064213 (
plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
PORTNAME= libslang2
PORTVERSION= 2.3.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.jedsoft.org/releases/slang/
DISTNAME= slang-${PORTVERSION}
MAINTAINER= garga@FreeBSD.org
COMMENT= Routines for rapid alpha-numeric terminal applications development
LICENSE= GPLv2
CONFLICTS= libslang-1.*.j[0-9]
USES= ncurses tar:bzip2
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes
PLIST_SUB+= SHLIB_VERSION=${PORTVERSION}
CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
LDFLAGS+= -lncurses
ALL_TARGET= all static
INSTALL_TARGET= install install-static
DOCSDIR= ${PREFIX}/share/doc/slang
DATADIR= ${PREFIX}/share/slsh
OPTIONS_DEFINE= PCRE PNG ICONV ONIG DOCS
OPTIONS_DEFAULT=PCRE PNG ICONV
OPTIONS_SUB= yes
ONIG_DESC= Oniguruma support
PORTDOCS= *
PCRE_CONFIGURE_WITH= pcre
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PNG_CONFIGURE_WITH= png
PNG_LIB_DEPENDS= libpng.so:graphics/png
ICONV_USES= iconv
ONIG_CONFIGURE_WITH= onig
ONIG_LIB_DEPENDS= libonig.so:devel/oniguruma
.include <bsd.port.pre.mk>
.if ! ${PORT_OPTIONS:MICONV} || empty(ICONV_LIB)
CONFIGURE_ARGS+= --without-iconv
.endif
post-patch:
@${REINPLACE_CMD} -E 's,doc/slsh,doc/slang/v\@slang_major_version\@,' \
${WRKSRC}/slsh/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in NEWS changes.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/slsh
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libslang.so.${PORTVERSION}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/slang/v2/modules/*.so
.include <bsd.port.post.mk>
|