1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/mail/quickml/Makefile
Doug Barton 1d28e3ed5f Update rc.d script.
Approved by:	maintainer timeout
2010-02-13 21:17:42 +00:00

80 lines
2.1 KiB
Makefile

# New ports collection makefile for: quickml
# Date created: 11 June 2004
# Whom: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp>
#
# $FreeBSD$
#
PORTNAME= quickml
PORTVERSION= 0.7
PORTREVISION= 8
CATEGORIES= mail
MASTER_SITES= http://0xcc.net/quickml/
MAINTAINER= yaizawa@2004.jukuin.keio.ac.jp
COMMENT= An easy-to-use mailing list system
OPTIONS+= ANALOG "Enable quickml-analog" on \
LIMIT "Enable Creators and Members Limitation Patch" off
PKGINSTALL= ${WRKDIR}/pkg-install
SUB_FILES+= pkg-install
QUICKML_USER= quickml
QUICKML_GROUP= quickml
USE_AUTOTOOLS= autoconf:262
GNU_CONFIGURE= yes
USE_RUBY= yes
USE_RC_SUBR= ${PORTNAME}
SUB_LIST+= USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} RUBY=${RUBY}
CONFIGURE_ARGS+= --datadir="${PREFIX}/share/quickml"
CONFIGURE_ARGS+= --with-ruby="${RUBY}"
CONFIGURE_ARGS+= --with-user="${QUICKML_USER}"
CONFIGURE_ARGS+= --with-group="${QUICKML_GROUP}"
CONFIGURE_ARGS+= --with-rubydir="${RUBY_LIBDIR}"
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_LIMIT)
PATCH_DIST_STRIP= -p1
.endif
.if !defined(WITHOUT_ANALOG)
USE_GHOSTSCRIPT_RUN= yes
RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot \
convert:${PORTSDIR}/graphics/ImageMagick
.endif
post-fetch:
.if !defined(WITHOUT_LIMIT)
@ ( cd ${DISTDIR} && ${FETCH_CMD} -o ${PORTNAME}-${PORTVERSION}-limited.patch "http://linux.matchy.net/view.xcg?c=plugin;plugin=attach_download;p=QuickMLLimited;file_name=${PORTNAME}-${PORTVERSION}-limited.patch" )
.endif
post-patch:
.if !defined(WITHOUT_LIMIT)
@${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
.endif
.if defined(WITHOUT_ANALOG)
${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog
.endif
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/messages.ja ${DATADIR}
.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
.include <bsd.port.post.mk>