Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2014 19:43:26 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r339810 - in branches/2014Q1/textproc/amberfish: . files
Message-ID:  <201401151943.s0FJhQQs093478@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Jan 15 19:43:25 2014
New Revision: 339810
URL: http://svnweb.freebsd.org/changeset/ports/339810
QAT: https://qat.redports.org/buildarchive/r339810/

Log:
  MFH: r339809
  
  - Fix build on 10/head
  - Respect CFLAGS, STRIP
  - Stage support
  
  PR:		ports/184865
  Submitted by:	KATO Tsuguru
  Approved by:	portmgr (implicit)

Deleted:
  branches/2014Q1/textproc/amberfish/files/patch-Makefile.in
  branches/2014Q1/textproc/amberfish/pkg-plist
Modified:
  branches/2014Q1/textproc/amberfish/Makefile
Directory Properties:
  branches/2014Q1/   (props changed)

Modified: branches/2014Q1/textproc/amberfish/Makefile
==============================================================================
--- branches/2014Q1/textproc/amberfish/Makefile	Wed Jan 15 19:36:26 2014	(r339809)
+++ branches/2014Q1/textproc/amberfish/Makefile	Wed Jan 15 19:43:25 2014	(r339810)
@@ -7,29 +7,36 @@ CATEGORIES=	textproc databases
 MASTER_SITES=	SF/${PORTNAME}/Amberfish%20source%20-%20stable/${PORTVERSION}	\
 		http://etymon.com/software/amberfish/stable/
 
-
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	General purpose text retrieval Software
 
-LIB_DEPENDS=	xerces-c.27:${PORTSDIR}/textproc/xerces-c2
+LIB_DEPENDS=	libxerces-c.so.27:${PORTSDIR}/textproc/xerces-c2
 
+USES=		gmake
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
+ALL_TARGET=	all html
+
+PLIST_FILES=	bin/af man/man1/af.1.gz
+PORTDOCS=	*
 
-MAN1=	af.1
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-extract:
 	${INSTALL_DATA} ${FILESDIR}/porter.cc ${WRKSRC}/src
 
-.if !defined(NOPORTDOCS)
-post-build:
-	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} html)
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|$${MAKEFLAGS} ||' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|cp |$${BSD_INSTALL_MAN} |' ${WRKSRC}/doc/Makefile.in
+	@${REINPLACE_CMD} -e \
+		's|-O3 |@CFLAGS@ | ; \
+		s|make strip|| ; \
+		s|cp |$${BSD_INSTALL_PROGRAM} |' ${WRKSRC}/src/Makefile.in
 
 post-install:
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/amberfish.png ${DOCSDIR}
-	${INSTALL_MAN} ${WRKSRC}/doc/html/*.html ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/amberfish.png ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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