[Midnightbsd-cvs] mports: Makefile: osversion assumption for __FreeBSD_version

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Jan 1 20:06:29 EST 2009


Log Message:
-----------
osversion assumption for __FreeBSD_version

Modified Files:
--------------
    mports/emulators/pearpc:
        Makefile (r1.4 -> r1.5)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/emulators/pearpc/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -L emulators/pearpc/Makefile -L emulators/pearpc/Makefile -u -r1.4 -r1.5
--- emulators/pearpc/Makefile
+++ emulators/pearpc/Makefile
@@ -8,7 +8,7 @@
 
 PORTNAME=	pearpc
 PORTVERSION=	0.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	emulators
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -85,6 +85,11 @@
 post-extract:
 	@${REINPLACE_CMD} -e 's|-g -O2||;s|-O2||' ${WRKSRC}/configure
 
+pre-configure:
+# Assumes __FreeBSD_version value.  Change when current switches over.
+.if ${OSVERSION} > 700000
+	@${REINPLACE_CMD} -e 's|clock_settime\ ()|foobar()|' ${WRKSRC}/configure
+.endif
 
 post-configure:
 	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile


More information about the Midnightbsd-cvs mailing list