svn commit: r339809 - in head/textproc/amberfish: . files
Antoine Brodin
antoine at FreeBSD.org
Wed Jan 15 19:36:26 UTC 2014
Author: antoine
Date: Wed Jan 15 19:36:26 2014
New Revision: 339809
URL: http://svnweb.freebsd.org/changeset/ports/339809
QAT: https://qat.redports.org/buildarchive/r339809/
Log:
- Fix build on 10/head
- Respect CFLAGS, STRIP
- Stage support
PR: ports/184865
Submitted by: KATO Tsuguru
Deleted:
head/textproc/amberfish/files/patch-Makefile.in
head/textproc/amberfish/pkg-plist
Modified:
head/textproc/amberfish/Makefile
Modified: head/textproc/amberfish/Makefile
==============================================================================
--- head/textproc/amberfish/Makefile Wed Jan 15 19:25:17 2014 (r339808)
+++ head/textproc/amberfish/Makefile Wed Jan 15 19:36:26 2014 (r339809)
@@ -7,29 +7,36 @@ CATEGORIES= textproc databases
MASTER_SITES= SF/${PORTNAME}/Amberfish%20source%20-%20stable/${PORTVERSION} \
http://etymon.com/software/amberfish/stable/
-
MAINTAINER= ports at 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>
More information about the svn-ports-all
mailing list