Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  8 May 2004 11:45:33 +0200 (CEST)
From:      Yann Berthier <yb@sainte-barbe.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/66374: [MAINTAINER] net/libnetdude: unbreak build on 4.x
Message-ID:  <20040508094533.4BBC245D9@taz.hsc.fr>
Resent-Message-ID: <200405080950.i489oOZf040113@freefall.freebsd.org>

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

>Number:         66374
>Category:       ports
>Synopsis:       [MAINTAINER] net/libnetdude: unbreak build on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 08 02:50:23 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yann Berthier
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD taz.hsc.fr 5.2-CURRENT FreeBSD 5.2-CURRENT #13: Thu Apr 22 22:37:37 CEST 2004
>Description:

- Unbreak the build on 4.x
- Reported by kris

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- libnetdude-0.6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/net/libnetdude/Makefile /usr/home/yb/tmp/ports/net/libnetdude/Makefile
--- /usr/ports/net/libnetdude/Makefile	Tue May  4 09:35:47 2004
+++ /usr/home/yb/tmp/ports/net/libnetdude/Makefile	Sat May  8 11:02:43 2004
@@ -23,13 +23,17 @@
 INSTALLS_SHLIB=	yes
 USE_REINPLACE=	yes
 
+.include <bsd.port.pre.mk>
+
 post-patch:
+.if ${OSVERSION} >= 500000
 	@${REINPLACE_CMD} -e "s|netinet/if_fddi.h|net/fddi.h|g" \
 	${WRKSRC}/protocols/fddi/libnd_fddi.h
+.endif
 	@${REINPLACE_CMD} -e 's|DOC_MODULE = libnetdude|DOC_MODULE =|' \
 	${WRKSRC}/docs/Makefile.in
 .if defined(NOPORTDOCS)
 	@${REINPLACE_CMD} -e 's|docs||' ${WRKSRC}/Makefile.in
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- libnetdude-0.6.patch ends here ---

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



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