mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
def6c5986e
PR: ports/142444 Reported by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# New ports collection makefile for: Oniguruma
|
|
# Date created: 31 January 2003
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= oniguruma
|
|
PORTVERSION= 2.5.8
|
|
CATEGORIES= devel textproc
|
|
MASTER_SITES= http://www.geocities.jp/kosako3/oniguruma/archive/:onig \
|
|
http://www.SpringDaemons.com/stas/:ruby
|
|
DISTFILES= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}:onig \
|
|
ruby187p248-oniguruma.patch:ruby
|
|
DIST_SUBDIR= ruby
|
|
EXTRACT_ONLY= onigd${PORTVERSION:S/./_/g}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= A BSDL Regular Expressions library compatible with POSIX/GNU/Perl
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_LATEST_LINK= yes
|
|
CONFLICTS= oniguruma-4.*
|
|
|
|
USE_GNOME= gnometarget
|
|
GNU_CONFIGURE= yes
|
|
DOCS= HISTORY README doc/*
|
|
|
|
post-patch:
|
|
${CP} ${DISTDIR}/${DIST_SUBDIR}/ruby187p248-oniguruma.patch \
|
|
${WRKSRC}/ruby187.patch
|
|
|
|
post-configure:
|
|
${SED} -e 's|%%PREFIX%%|${PREFIX}|' \
|
|
${FILESDIR}/onig-config > ${WRKSRC}/onig-config
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/onig-config ${PREFIX}/bin/
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
.if !defined(NOPORTEXAMPLES)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR}/
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|