freebsd-ports/devel/libslang2/Makefile
Renato Botelho aa9453c7a0 . Move USE_BZIP2 to USES=tar:bzip2
. Fix stage with non-root
. Strip binaries
2014-05-14 19:28:41 +00:00

73 lines
1.9 KiB
Makefile

# $FreeBSD$
PORTNAME= libslang2
PORTVERSION= 2.2.4
PORTREVISION= 6
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
LICENSE= GPLv2
CONFLICTS= libslang-1.*.j[0-9]
USES= tar:bzip2
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
DOCSDIR= ${PREFIX}/share/doc/slang
DATADIR= ${PREFIX}/share/slsh
OPTIONS_DEFINE= PCRE PNG ICONV ONIG DOCS
OPTIONS_DEFAULT=PCRE PNG ICONV DOCS
OPTIONS_SUB= yes
ONIG_DESC= Oniguruma support
PORTDOCS= *
PCRE_CONFIGURE_WITH= pcre
PCRE_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
PNG_CONFIGURE_WITH= png
PNG_LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
ICONV_USES= iconv
ONIG_CONFIGURE_WITH= onig
ONIG_LIB_DEPENDS= libonig.so:${PORTSDIR}/devel/oniguruma4
.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
@${REINPLACE_CMD} -e 's, install[_-]docs,,g; /MKINSDIR.*DEST_SLSH_DOC_DIR/d' \
${WRKSRC}/src/Makefile.in \
${WRKSRC}/slsh/Makefile.in
@${REINPLACE_CMD} -e '/RANLIB.*DEST_LIBDIR/d' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's,INSTALL_MODULE,INSTALL_LIB,g' \
${WRKSRC}/modules/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})
.include <bsd.port.post.mk>