ports/168027: devel/fastcrc: Fix build on 9-stable

KATO Tsuguru tkato432 at yahoo.com
Thu May 17 18:10:04 UTC 2012


>Number:         168027
>Category:       ports
>Synopsis:       devel/fastcrc: Fix build on 9-stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 18:10:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Fix build on 9-stable
- Support NOPORTDOCS

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/fastcrc/Makefile devel/fastcrc/Makefile
--- /usr/ports/devel/fastcrc/Makefile	2011-08-29 12:51:40.000000000 +0900
+++ devel/fastcrc/Makefile	2012-04-28 21:25:55.000000000 +0900
@@ -19,18 +19,19 @@
 
 USE_LDCONFIG=	yes
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 900035
-BROKEN=		Does not compile on recent FreeBSD-9
-.endif
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|gcc|$${CC}| ; \
+		 /strip/d' ${WRKSRC}/Makefile
 
 do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/fc ${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/fastcrc.h ${PREFIX}/include
 	${INSTALL_DATA} ${WRKSRC}/libfcrc.so.1 ${PREFIX}/lib
 	${LN} -fs ${PREFIX}/lib/libfcrc.so.1 ${PREFIX}/lib/libfcrc.so
-	${INSTALL_DATA} ${WRKSRC}/fastcrc.h ${PREFIX}/include
-	${MKDIR} ${PREFIX}/share/doc/fastcrc
-	${INSTALL_MAN} ${WRKSRC}/index.html ${PREFIX}/share/doc/fastcrc
-	${INSTALL_PROGRAM} ${WRKSRC}/fc ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR}
+.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/devel/fastcrc/pkg-plist devel/fastcrc/pkg-plist
--- /usr/ports/devel/fastcrc/pkg-plist	2000-06-16 19:37:31.000000000 +0900
+++ devel/fastcrc/pkg-plist	2012-04-28 18:35:04.000000000 +0900
@@ -2,5 +2,5 @@
 include/fastcrc.h
 lib/libfcrc.so
 lib/libfcrc.so.1
-share/doc/fastcrc/index.html
- at dirrm share/doc/fastcrc
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list