freebsd-ports/textproc/modlogan/Makefile
Alexander Leidinger 266ac37f77 - stage-ify
- convert to USES-libtool
- convert to new lib depends
2014-06-03 20:04:00 +00:00

54 lines
1.6 KiB
Makefile

# Created by: Alexander@Leidinger.net
# $FreeBSD$
PORTNAME= modlogan
PORTVERSION= 0.8.13
PORTREVISION= 14
CATEGORIES= textproc www
MASTER_SITES= http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/distfiles/
MAINTAINER= netchild@FreeBSD.org
COMMENT= A modular log file analysis program
LIB_DEPENDS= libadns.so:${PORTSDIR}/dns/adns \
libgd.so:${PORTSDIR}/graphics/gd \
libpcre.so:${PORTSDIR}/devel/pcre \
libexpat.so:${PORTSDIR}/textproc/expat2
USES= gettext libtool:keepla
# Please don't remove the comments, as soon as autoconf/libtool get's
# updated in the ports collection the comments may be removed.
# They serve as a reminder.
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-ltdl-install=no --with-gd=${LOCALBASE}/include \
--program-transform-name=\'\'
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+=--with-mysql
.endif
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DOC1= faq.txt glosar manual.txt translations.txt \
using-plugins.txt writing-plugins.txt
post-patch:
@${REINPLACE_CMD} -e 's:\@config_path\@:${PREFIX}/etc/modlogan:g' ${WRKSRC}/doc/modlogan.conf-dist.in
#post-configure:
# ${TOUCH} ${WRKSRC}/libltdl/config.status
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}/${PREFIX}/share/doc/modlogan
.for i in ${DOC1}
@${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}/${PREFIX}/share/doc/modlogan/${i}
.endfor
.endif
${MKDIR} ${STAGEDIR}/${PREFIX}/share/examples/modlogan
.for i in footer.ihtml header.ihtml output.tmpl convert_history_to_07x.pl convert_to_055.pl convert_to_060.pl
@${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}/${PREFIX}/share/examples/modlogan/${i}
.endfor
.include <bsd.port.mk>