diff --git a/textproc/pcrs/Makefile b/textproc/pcrs/Makefile index c350571ca720..ad07005d3647 100644 --- a/textproc/pcrs/Makefile +++ b/textproc/pcrs/Makefile @@ -1,31 +1,26 @@ -# New ports collection makefile for: pcrs -# Date created: 31 July 2005 -# Whom: Ken Wong -# +# Created by: Ken Wong # $FreeBSD$ -# PORTNAME= pcrs PORTVERSION= 0.0.3 PORTREVISION= 2 CATEGORIES= textproc -MASTER_SITES= http://distfiles.master.finkmirrors.net/\ - http://download.mirror.ac.uk/mirror/master.us.finkmirrors.net/distfiles/\ - http://mirror.phy.olemiss.edu/mirror/fink/distfiles/ +MASTER_SITES= http://distfiles.master.finkmirrors.net/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= wongk@apt.homeunix.net -COMMENT= Perl compatible regular expression based substitutions +COMMENT= Perl-compatible regular expression based substitutions -LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre +LICENSE= LGPL21 + +LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre + +USES= gmake +GNU_CONFIGURE= yes +USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -GNU_CONFIGURE= yes -USE_GMAKE= yes - -USE_LDCONFIG= yes - MAN3= pcrs.3 PLIST_FILES= bin/pcrsed \ lib/libpcrs.a \ diff --git a/textproc/pcrs/files/patch-Makefile.in b/textproc/pcrs/files/patch-Makefile.in index d8a754e85e49..c1a72e1a4734 100644 --- a/textproc/pcrs/files/patch-Makefile.in +++ b/textproc/pcrs/files/patch-Makefile.in @@ -23,7 +23,8 @@ - $(CC) $(CLFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION) pcrs.@OBJEXT@ $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION_MAJOR) pcrs.@OBJEXT@ $(LIBS) - static: +-static: ++static: pcrs.@OBJEXT@ $(AR) libpcrs.a pcrs.@OBJEXT@ install: all diff --git a/textproc/pcrs/files/patch-configure b/textproc/pcrs/files/patch-configure index 3a82a058d29e..aa833da51366 100644 --- a/textproc/pcrs/files/patch-configure +++ b/textproc/pcrs/files/patch-configure @@ -38,3 +38,12 @@ cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +@@ -1256,7 +1256,7 @@ + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" + { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +-ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$" | grep -v warning:` + if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" diff --git a/textproc/pcrs/pkg-descr b/textproc/pcrs/pkg-descr index a4a5c48a57ac..1c6eee5e79d0 100644 --- a/textproc/pcrs/pkg-descr +++ b/textproc/pcrs/pkg-descr @@ -1,3 +1,3 @@ -PCRS is a small library, written as a supplement to the PCRE library, -that implements regex based substitution with the syntax and semantics -of Perl's s/// operator. +PCRS is a small library, written as a supplement to the PCRE library, +that implements regex based substitution with the syntax and semantics +of Perl's s/// operator.