Index: head/devel/oserl/Makefile =================================================================== --- head/devel/oserl/Makefile (revision 390549) +++ head/devel/oserl/Makefile (revision 390550) @@ -1,44 +1,44 @@ # $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 -DOS2UNIX_FILES= Makefile USES= dos2unix gmake iconv ALL_TARGET= compile doc +DOS2UNIX_GLOB= Makefile *.hrl *.erl 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 Index: head/devel/oserl/files/patch-Makefile =================================================================== --- head/devel/oserl/files/patch-Makefile (revision 390549) +++ head/devel/oserl/files/patch-Makefile (revision 390550) @@ -1,47 +1,47 @@ ---- Makefile.orig +--- Makefile.orig 2015-06-25 10:06:03 UTC +++ Makefile -@@ -10,6 +10,13 @@ +@@ -10,6 +10,13 @@ HTMS = $(DOCS:.ndoc=.html) TEXS = $(DOCS:.ndoc=.tex) PDFS = $(DOCS:.ndoc=.pdf) +CD = cd +ERLDOC = txt2tags +MKDIR = mkdir +MV = mv -vf +RM = rm -vf +SED = sed + ### Dependecy Search Paths VPATH = src:include:ebin:doc -@@ -35,7 +42,11 @@ +@@ -35,7 +42,11 @@ clobber: clean @$(RM) -R doc/man @$(RM) -R doc/pdf -doc: man html pdf +doc: dirs man html + +dirs: + @$(MKDIR) doc/man + @$(MKDIR) doc/html man: $(MANS) @$(MV) doc/man/$(APPNAME)_overview.3 doc/man/$(APPNAME).1 -@@ -49,14 +60,14 @@ +@@ -49,14 +60,14 @@ pdf: $(PDFS) %.3: %.ndoc @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \ - $(ERLDOC) -i - -t man --no-toc --erl -o man/$@; $(CD) .. + $(ERLDOC) -i - -t man --no-toc -o man/$@; $(CD) .. %.html: %.ndoc @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \ - $(ERLDOC) -i - -t xhtml --erl -o html/$@; $(CD) .. + $(ERLDOC) -i - -t xhtml -o html/$@; $(CD) .. %.pdf: %.ndoc @$(CD) doc; $(SED) "s|%MODULES%|`echo $(MODS)`|g" ../$^ | \ $(SED) "s|%VSN%|$(VSN)|g" | $(SED) "s|%APPLICATION%|$(APPNAME)|g" | \ - $(ERLDOC) -i - -t pdf --no-toc --erl -o pdf/$@; $(CD) .. + $(ERLDOC) -i - -t pdf --no-toc -o pdf/$@; $(CD) .. Index: head/devel/oserl/files/patch-rebar.config =================================================================== --- head/devel/oserl/files/patch-rebar.config (revision 390549) +++ head/devel/oserl/files/patch-rebar.config (revision 390550) @@ -1,14 +1,14 @@ ---- rebar.config.orig +--- rebar.config.orig 2013-05-10 18:52:27 UTC +++ rebar.config @@ -1,10 +1,7 @@ -{lib_dirs, ["deps"]}. +{lib_dirs, ["deps", ".."]}. {erl_opts, [warnings_as_errors, debug_info]}. -{deps, [{common_lib, "3.3.4", - {git, "git://github.com/iamaleksey/common_lib.git", {tag, "3.3.4"}}}]}. - {erl_first_files, ["src/gen_esme_session.erl", "src/gen_mc_session.erl", "src/gen_esme.erl", Index: head/devel/oserl/files/patch-src_smpp__param.hrl =================================================================== --- head/devel/oserl/files/patch-src_smpp__param.hrl (revision 390549) +++ head/devel/oserl/files/patch-src_smpp__param.hrl (revision 390550) @@ -1,11 +1,11 @@ ---- src/smpp_param.hrl.orig +--- src/smpp_param.hrl.orig 2015-06-25 10:06:03 UTC +++ src/smpp_param.hrl @@ -159,7 +159,7 @@ %% destination_addr %% %% %@doc Specifies the destination SME address. For mobile terminated -%% messages, this is the directory number of the recipient MS. IP addresses ç +%% messages, this is the directory number of the recipient MS. IP addresses %% are specified in "aaa.bbb.ccc.ddd" notation. C-Octet String, Var. max 21 %% octets. %% %@end