1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/textproc/sablotron/Makefile

45 lines
981 B
Makefile
Raw Normal View History

# 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>