summaryrefslogtreecommitdiff
path: root/misc/ibutton-pdkit
diff options
context:
space:
mode:
authorobache <obache>2007-12-20 13:17:25 +0000
committerobache <obache>2007-12-20 13:17:25 +0000
commit6d78df4ee3953bc3bbf1985e26d06abfdbae6a45 (patch)
treef89106dc68900ce96a3a5aaf9557320eb2ad02a6 /misc/ibutton-pdkit
parent2524e6dd0f31266d4e081e1875de1ea19ea392d1 (diff)
downloadpkgsrc-6d78df4ee3953bc3bbf1985e26d06abfdbae6a45.tar.gz
Should replace with ${DEFAULT_SERIAL_DEVICE}, rather than hard coded /dev/tty00.
And switch to use SUBST framework. Bump PKGREVISION. While here, add DESTDIR support.
Diffstat (limited to 'misc/ibutton-pdkit')
-rw-r--r--misc/ibutton-pdkit/Makefile60
1 files changed, 30 insertions, 30 deletions
diff --git a/misc/ibutton-pdkit/Makefile b/misc/ibutton-pdkit/Makefile
index b7e6578014a..a43c99f434e 100644
--- a/misc/ibutton-pdkit/Makefile
+++ b/misc/ibutton-pdkit/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2007/03/01 18:34:46 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2007/12/20 13:17:25 obache Exp $
#
DISTNAME= ulinuxgnu
PKGNAME= ibutton-pdkit-2.00
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= misc
MASTER_SITES= ftp://ftp.dalsemi.com/pub/auto_id/public/
EXTRACT_SUFX= .zip
@@ -17,35 +17,35 @@ WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
-post-patch:
- cd ${WRKSRC}; \
- ${MAKE} clean; \
- for f in *.c; do \
- ${SED} -e 's|/dev/cua0|/dev/tty00|' \
- -e 's|Linux DS2480|${OPSYS} DS2480|' \
- $$f > $$f.new; \
- ${MV} -f $$f.new $$f; \
- done
+# Need clean, contains Linux binaries.
+BUILD_TARGET= clean all
+
+SUBST_CLASSES+= dev
+SUBST_STAGE.dev= pre-configure
+SUBST_FILES.dev= *.c
+SUBST_SED.dev= -e 's|/dev/cua0|${DEFAULT_SERIAL_DEVICE}|'
+
+PKG_DESTDIR_SUPPORT= user-destdir
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/atod ${PREFIX}/bin/atod
- ${INSTALL_PROGRAM} ${WRKSRC}/count ${PREFIX}/bin/count
- ${INSTALL_PROGRAM} ${WRKSRC}/coupler ${PREFIX}/bin/coupler
- ${INSTALL_PROGRAM} ${WRKSRC}/debit ${PREFIX}/bin/debit
- ${INSTALL_PROGRAM} ${WRKSRC}/initcopr ${PREFIX}/bin/initcopr
- ${INSTALL_PROGRAM} ${WRKSRC}/initrov ${PREFIX}/bin/initrov
- ${INSTALL_PROGRAM} ${WRKSRC}/list2tag ${PREFIX}/bin/list2tag
- ${INSTALL_PROGRAM} ${WRKSRC}/mktag ${PREFIX}/bin/mktag
- ${INSTALL_PROGRAM} ${WRKSRC}/mweather ${PREFIX}/bin/mweather
- ${INSTALL_PROGRAM} ${WRKSRC}/owsensor ${PREFIX}/bin/owsensor
- ${INSTALL_PROGRAM} ${WRKSRC}/swtloop ${PREFIX}/bin/swtloop
- ${INSTALL_PROGRAM} ${WRKSRC}/swtoper ${PREFIX}/bin/swtoper
- ${INSTALL_PROGRAM} ${WRKSRC}/swtsngl ${PREFIX}/bin/swtsngl
- ${INSTALL_PROGRAM} ${WRKSRC}/temp ${PREFIX}/bin/temp
- ${INSTALL_PROGRAM} ${WRKSRC}/thermodl ${PREFIX}/bin/thermodl
- ${INSTALL_PROGRAM} ${WRKSRC}/thermoms ${PREFIX}/bin/thermoms
- ${INSTALL_PROGRAM} ${WRKSRC}/tstfind ${PREFIX}/bin/tstfind
- ${INSTALL_PROGRAM} ${WRKSRC}/tstow ${PREFIX}/bin/tstow
- ${INSTALL_PROGRAM} ${WRKSRC}/tstowe ${PREFIX}/bin/tstowe
+ ${INSTALL_PROGRAM} ${WRKSRC}/atod ${DESTDIR}${PREFIX}/bin/atod
+ ${INSTALL_PROGRAM} ${WRKSRC}/count ${DESTDIR}${PREFIX}/bin/count
+ ${INSTALL_PROGRAM} ${WRKSRC}/coupler ${DESTDIR}${PREFIX}/bin/coupler
+ ${INSTALL_PROGRAM} ${WRKSRC}/debit ${DESTDIR}${PREFIX}/bin/debit
+ ${INSTALL_PROGRAM} ${WRKSRC}/initcopr ${DESTDIR}${PREFIX}/bin/initcopr
+ ${INSTALL_PROGRAM} ${WRKSRC}/initrov ${DESTDIR}${PREFIX}/bin/initrov
+ ${INSTALL_PROGRAM} ${WRKSRC}/list2tag ${DESTDIR}${PREFIX}/bin/list2tag
+ ${INSTALL_PROGRAM} ${WRKSRC}/mktag ${DESTDIR}${PREFIX}/bin/mktag
+ ${INSTALL_PROGRAM} ${WRKSRC}/mweather ${DESTDIR}${PREFIX}/bin/mweather
+ ${INSTALL_PROGRAM} ${WRKSRC}/owsensor ${DESTDIR}${PREFIX}/bin/owsensor
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtloop ${DESTDIR}${PREFIX}/bin/swtloop
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtoper ${DESTDIR}${PREFIX}/bin/swtoper
+ ${INSTALL_PROGRAM} ${WRKSRC}/swtsngl ${DESTDIR}${PREFIX}/bin/swtsngl
+ ${INSTALL_PROGRAM} ${WRKSRC}/temp ${DESTDIR}${PREFIX}/bin/temp
+ ${INSTALL_PROGRAM} ${WRKSRC}/thermodl ${DESTDIR}${PREFIX}/bin/thermodl
+ ${INSTALL_PROGRAM} ${WRKSRC}/thermoms ${DESTDIR}${PREFIX}/bin/thermoms
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstfind ${DESTDIR}${PREFIX}/bin/tstfind
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstow ${DESTDIR}${PREFIX}/bin/tstow
+ ${INSTALL_PROGRAM} ${WRKSRC}/tstowe ${DESTDIR}${PREFIX}/bin/tstowe
.include "../../mk/bsd.pkg.mk"