From 491cf1a5b44f2a12133ae445d0c2dda5c231003b Mon Sep 17 00:00:00 2001 From: edwin Date: Mon, 9 May 2005 03:14:09 +0000 Subject: On FreeBSD 4.x: rename cxm0 to bktr0 in setchannel.c On all: rename tuner0 into cxm0/bktr0 in setchannel.c --- multimedia/pvr250/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'multimedia/pvr250') diff --git a/multimedia/pvr250/Makefile b/multimedia/pvr250/Makefile index 39834c7f9bf..51ef18f1e03 100644 --- a/multimedia/pvr250/Makefile +++ b/multimedia/pvr250/Makefile @@ -8,6 +8,7 @@ PORTNAME= pvr250 PORTVERSION= 20050412 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://www.mavetju.org/download/adopted/ DISTFILES= ${CXMSHAR} hcwPVRP2.sys ${PVRTOOLS}.tar.gz @@ -71,8 +72,13 @@ do-extract: ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${PVRTOOLS}.tar.gz ${EXTRACT_AFTER_ARGS}; post-patch: -.if ${OSVERSION} > 500000 - ${REINPLACE_CMD} -e 's/bktr0/cxm0/' \ +.if ${OSVERSION} < 500000 + ${REINPLACE_CMD} -e 's/cxm0/bktr0/' \ + ${WRKDIR}/${PVRTOOLS}/setchannel.c + ${REINPLACE_CMD} -e 's/tuner0/bktr0/' \ + ${WRKDIR}/${PVRTOOLS}/setchannel.c +.else + ${REINPLACE_CMD} -e 's/tuner0/cxm0/' \ ${WRKDIR}/${PVRTOOLS}/setchannel.c .endif -- cgit