Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Mar 2002 21:38:58 -0800 (PST)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35958: Update port: devel/pcre++
Message-ID:  <200203160538.g2G5cwI60771@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         35958
>Category:       ports
>Synopsis:       Update port: devel/pcre++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 15 21:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CXXFLAGS/LOCALBASE properly

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/devel/pcre++/Makefile devel/pcre++/Makefile
--- /usr/ports/devel/pcre++/Makefile	Wed Mar  6 19:05:57 2002
+++ devel/pcre++/Makefile	Wed Mar 13 21:00:57 2002
@@ -13,19 +13,27 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
+LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
+
+PCRE_CONFIG?=	${LOCALBASE}/bin/pcre-config
 
-USE_LIBTOOL=	yes
-GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
+USE_LIBTOOL=	yes
+CONFIGURE_ENV=	CPPFLAGS="`${PCRE_CONFIG} --cflags`" \
+		LDFLAGS="`${PCRE_CONFIG} --libs`"
 INSTALLS_SHLIB=	yes
 
 MAN3=	Pcre.3
 
-.if !defined(NOPORTDOCS)
+post-patch:
+	@${PERL} -pi -e 's|-I/usr/local/include||g ; \
+		 s|-L/usr/local/lib||g' ${WRKSRC}/configure
+	@${PERL} -pi -e 's|-O -g|\@CXXFLAGS\@|g' ${WRKSRC}/Makefile.in
+
 post-install:
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${CP} -R ${WRKSRC}/doc/html/ ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/html/*.* ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203160538.g2G5cwI60771>