mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
b2c4fbb77a
Introduces the UTF-32 library pcre32 Bump PORTREVISION in dependent ports
83 lines
1.8 KiB
Makefile
83 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libslang2
|
|
PORTVERSION= 2.2.4
|
|
PORTREVISION= 4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v${PORTVERSION:R}/ \
|
|
ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PORTVERSION:R}/ \
|
|
ftp://ftp.ntua.gr/pub/lang/slang/slang/v${PORTVERSION:R}/
|
|
DISTNAME= slang-${PORTVERSION}
|
|
|
|
MAINTAINER= garga@FreeBSD.org
|
|
COMMENT= Routines for rapid alpha-numeric terminal applications development
|
|
|
|
CONFLICTS= libslang-1.*.j[0-9]
|
|
|
|
USE_BZIP2= yes
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
PLIST_SUB+= SHLIB_VERSION=${PORTVERSION}
|
|
|
|
CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
|
|
|
ALL_TARGET= all static
|
|
INSTALL_TARGET= install install-static
|
|
|
|
MAN1= slsh.1
|
|
DOCSDIR= ${PREFIX}/share/doc/slang
|
|
DATADIR= ${PREFIX}/share/slsh
|
|
|
|
OPTIONS_DEFINE= PCRE PNG ICONV ONIG DOCS
|
|
OPTIONS_DEFAULT=PCRE PNG ICONV DOCS
|
|
|
|
ONIG_DESC= Oniguruma support
|
|
|
|
PORTDOCS= *
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
|
PLIST_SUB+= PCRE=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pcre
|
|
PLIST_SUB+= PCRE="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
|
PLIST_SUB+= PNG=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-png
|
|
PLIST_SUB+= PNG="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
|
USE_ICONV= yes
|
|
PLIST_SUB+= ICONV=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-iconv
|
|
PLIST_SUB+= ICONV="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MONIG}
|
|
LIB_DEPENDS+= onig:${PORTSDIR}/devel/oniguruma4
|
|
PLIST_SUB+= ONIG=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-onig
|
|
PLIST_SUB+= ONIG="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E 's,doc/slsh,doc/slang/v\@slang_major_version\@,' \
|
|
${WRKSRC}/slsh/Makefile.in
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
@${REINPLACE_CMD} -e 's, install[_-]docs,,g; /MKINSDIR.*DEST_SLSH_DOC_DIR/d' \
|
|
${WRKSRC}/src/Makefile.in \
|
|
${WRKSRC}/slsh/Makefile.in
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|