freebsd-ports/databases/namazu2/Makefile
Dmitry Marakasov b37bff045e - Add CPE info
- Use /var instead of PREFIX/var
- Don't install win32 configs
- Use @sample
- Properly handle vardirs in plist
2015-10-01 09:42:19 +00:00

47 lines
1.5 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= namazu
PORTVERSION= ${NAMAZU_PORTVERSION}
PORTREVISION= 2
CATEGORIES+= databases www textproc
MASTER_SITES= http://www.namazu.org/stable/
PKGNAMESUFFIX= 2
MAINTAINER= ports@FreeBSD.org
COMMENT= Full-text search system intended for easy use
BUILD_DEPENDS= p5-File-MMagic>=0:${PORTSDIR}/devel/p5-File-MMagic
RUN_DEPENDS= p5-File-MMagic>=0:${PORTSDIR}/devel/p5-File-MMagic
USES= cpe gettext iconv libtool perl5
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-perl5="${PERL}" \
--with-libintl-prefix=${LOCALBASE} \
--localstatedir=/var \
${ICONV_CONFIGURE_ARG}
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
.include "${.CURDIR}/Makefile.common"
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local/var|/var|g' ${WRKSRC}/conf/namazurc-sample
post-install:
${RM} ${STAGEDIR}${PREFIX}/etc/namazu/*win32
${MV} ${STAGEDIR}${PREFIX}/etc/namazu/mknmzrc-sample \
${STAGEDIR}${PREFIX}/etc/namazu/mknmzrc.sample
${MV} ${STAGEDIR}${PREFIX}/etc/namazu/namazurc-sample \
${STAGEDIR}${PREFIX}/etc/namazu/namazurc.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.css ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/en
${INSTALL_DATA} ${WRKSRC}/doc/en/*.html ${STAGEDIR}${DOCSDIR}/en
@${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
${INSTALL_DATA} ${WRKSRC}/doc/ja/*.html ${STAGEDIR}${DOCSDIR}/ja
.include <bsd.port.mk>