# New ports collection makefile for: quickml # Date created: 11 June 2004 # Whom: Yuichiro AIZAWA # # $FreeBSD$ # PORTNAME= quickml PORTVERSION= 0.7 CATEGORIES= mail MASTER_SITES= http://namazu.org/%7esatoru/quickml/ MAINTAINER= yaizawa@mdbl.sfc.keio.ac.jp COMMENT= An easy-to-use mailing list system OPTIONS+= ANALOG "Enable quickml-analog" on PKGINSTALL= ${WRKDIR}/pkg-install QUICKML_USER= quickml QUICKML_GROUP= quickml USE_AUTOTOOLS= yes USE_AUTOCONF_VER= 259 GNU_CONFIGURE= yes USE_RUBY= yes USE_RC_SUBR= yes FILES_SUB= USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} \ PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} RUBY=${RUBY} CONFIGURE_ARGS+= --with-ruby="${RUBY}" CONFIGURE_ARGS+= --with-user="${QUICKML_USER}" CONFIGURE_ARGS+= --with-group="${QUICKML_GROUP}" CONFIGURE_ARGS+= --with-rubydir="${RUBY_LIBDIR}" .include .if !defined(WITHOUT_ANALOG) USE_GHOSTSCRIPT_RUN= yes RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot \ convert:${PORTSDIR}/graphics/ImageMagick .endif post-patch: @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh .if defined(WITHOUT_ANALOG) ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog .endif pre-install: @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${PKGDIR}/pkg-install > ${PKGINSTALL} @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/ml-usage.en.rd ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/quickml.en.rd ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/quickml.ja.rd ${DOCSDIR} ${INSTALL_DATA} ${FILESDIR}/with-mta.en.rd ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/with-mta.ja.rd ${DOCSDIR} .endif .if !exists(${PREFIX}/etc/rc.d/quickml.sh) @${ECHO} "Installing ${PREFIX}/etc/rc.d/quickml.sh startup file." ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/quickml.sh ${PREFIX}/etc/rc.d/quickml.sh .endif @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${PKGMESSAGE} .include