# $FreeBSD$ PORTNAME= oserl PORTVERSION= 3.2.4 CATEGORIES= devel MAINTAINER= olgeni@FreeBSD.org COMMENT= SMPP library for Erlang BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \ txt2tags:${PORTSDIR}/textproc/txt2tags RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \ common_lib>=3.3.4:${PORTSDIR}/devel/common_lib PLIST_SUB= VERSION="${PORTVERSION}" USE_GITHUB= yes GH_ACCOUNT= iamaleksey GH_PROJECT= oserl GH_COMMIT= f14115d GH_TAGNAME= ${PORTVERSION} DOS2UNIX_FILES= Makefile USES= dos2unix gmake iconv ALL_TARGET= compile doc post-extract: # Trick rebar into locating the oserl include files (see also patch-rebar.config) @${LN} -s ${WRKSRC} ${WRKDIR}/${PORTNAME} @${REINPLACE_CMD} -e "s@<@<@g" -e "s@>@>@g" ${WRKSRC}/doc/*.ndoc do-install: @for manpage in ${WRKSRC}/doc/man/*; do \ ${MV} $${manpage} $${manpage}.src; \ ${ICONV_CMD} -f UTF-8 -t ISO-8859-1 $${manpage}.src > $${manpage}; \ done ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MAN1PREFIX}/man/man3 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION} @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/ebin ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/include ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/oserl-${PORTVERSION}/src .include