diff options
-rw-r--r-- | multimedia/pvr250/Makefile | 10 | ||||
-rw-r--r-- | multimedia/pvrxxx/Makefile | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/multimedia/pvr250/Makefile b/multimedia/pvr250/Makefile index 39834c7f9bf7..51ef18f1e039 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 diff --git a/multimedia/pvrxxx/Makefile b/multimedia/pvrxxx/Makefile index 39834c7f9bf7..51ef18f1e039 100644 --- a/multimedia/pvrxxx/Makefile +++ b/multimedia/pvrxxx/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 |