# Created by: Akinori MUSHA aka knu # $FreeBSD$ PORTNAME= oniguruma PORTVERSION= 5.9.5 CATEGORIES= devel textproc MASTER_SITES= http://www.geocities.jp/kosako3/oniguruma/archive/ PKGNAMESUFFIX= 5 DISTNAME= onig-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= ports@FreeBSD.org COMMENT= BSDL Regular Expressions library compatible with POSIX/GNU/Perl LICENSE= BSD OPTIONS_DEFINE= DOCS EXAMPLES CONFLICTS= oniguruma-2.* USES= pathfix GNU_CONFIGURE= yes USE_LDCONFIG= yes .include post-patch: @${REINPLACE_CMD} -e \ '/^INCLUDES/s|$$(includedir)|| ; \ s|$$(<)|$$(@).in|' ${WRKSRC}/Makefile.in post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}) @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/sample && ${INSTALL_DATA} *.c ${STAGEDIR}${EXAMPLESDIR}) .include