diff options
Diffstat (limited to 'textproc/sablotron/Makefile')
-rw-r--r-- | textproc/sablotron/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile new file mode 100644 index 000000000000..ccadb4345e18 --- /dev/null +++ b/textproc/sablotron/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: sablotron +# Date created: 13 Nov 2000 +# Whom: Sergey Skvortsov <skv@protey.ru> +# +# $FreeBSD$ +# + +PORTNAME= Sablot +PORTVERSION= 0.44 +CATEGORIES= textproc +MASTER_SITES= http://download.gingerall.cz/sablot/ + +PATCH_SITES= http://www.gingerall.com/download/ +PATCHFILES= Sablot-0.44.1.patch +PATCH_DIST_STRIP= -p1 + +MAINTAINER= skv@protey.ru + +LIB_DEPENDS= iconv.1:${PORTSDIR}/converters/iconv \ + expat.2:${PORTSDIR}/textproc/expat2 + +INSTALLS_SHLIB= yes +LDCONFIG_DIRS= %%PREFIX%%/lib + +USE_GMAKE= yes +USE_AUTOCONF= yes +USE_LIBTOOL= yes + +post-patch: +.for f in configure.in + @${PERL} -pi -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/${f} +.endfor +.if defined(WITH_RUSSIAN) + @${ECHO_MSG} "Patching for russian support..." + @cd ${WRKDIR} ; \ + if ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/rus-patch ; then \ + ${ECHO_MSG} ">> Patch applied cleanly." ; \ + else \ + ${ECHO_MSG} ">> Patch failed to apply cleanly." ; \ + ${FALSE} ; \ + fi +.endif + +.include <bsd.port.mk> |