diff options
author | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-09 01:43:30 +0000 |
---|---|---|
committer | Chris Piazza <cpiazza@FreeBSD.org> | 1999-09-09 01:43:30 +0000 |
commit | 0b530eecbb5953a5f3b35ddc45d135c6870adb3d (patch) | |
tree | 3261b65222a528fc6f4c19630a073f7ada2a8715 /graphics/dc20pack | |
parent | 9a96eee19ac9ac95f4439358455535a8aa653c9d (diff) | |
download | ports-0b530eecbb5953a5f3b35ddc45d135c6870adb3d.tar.gz ports-0b530eecbb5953a5f3b35ddc45d135c6870adb3d.zip |
Notes
Diffstat (limited to 'graphics/dc20pack')
-rw-r--r-- | graphics/dc20pack/Makefile | 27 | ||||
-rw-r--r-- | graphics/dc20pack/distinfo | 1 | ||||
-rw-r--r-- | graphics/dc20pack/files/patch-aa | 44 | ||||
-rw-r--r-- | graphics/dc20pack/files/patch-ab | 15 | ||||
-rw-r--r-- | graphics/dc20pack/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/dc20pack/pkg-descr | 3 | ||||
-rw-r--r-- | graphics/dc20pack/pkg-plist | 3 |
7 files changed, 94 insertions, 0 deletions
diff --git a/graphics/dc20pack/Makefile b/graphics/dc20pack/Makefile new file mode 100644 index 000000000000..6bcea890c7fc --- /dev/null +++ b/graphics/dc20pack/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: dc20pack +# Version required: 1.0 +# Date created: Jul 31 1999 +# Whom: Maurice Castro <maurice@serc.rmit.edu.au> +# +# $FreeBSD$ +# + +DISTNAME= dc20pack-1.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= apps/graphics/capture +EXTRACT_SUFX= .tgz + +MAINTAINER= maurice@serc.rmit.edu.au + +WRKSRC= ${WRKDIR} + +post-extract: + @ /usr/bin/find ${WRKSRC} -type f | xargs /usr/bin/perl -pi -e 's/\r//g' + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/dc20dump ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/dc20term ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/dc2totga ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/graphics/dc20pack/distinfo b/graphics/dc20pack/distinfo new file mode 100644 index 000000000000..70a703402932 --- /dev/null +++ b/graphics/dc20pack/distinfo @@ -0,0 +1 @@ +MD5 (dc20pack-1.0.tgz) = 1d11684987fbb82c046105173e8a5709 diff --git a/graphics/dc20pack/files/patch-aa b/graphics/dc20pack/files/patch-aa new file mode 100644 index 000000000000..7b986f958931 --- /dev/null +++ b/graphics/dc20pack/files/patch-aa @@ -0,0 +1,44 @@ +*** dc20_hif.c.orig Sun Aug 1 13:55:41 1999 +--- dc20_hif.c Sun Aug 1 13:57:21 1999 +*************** +*** 15,21 **** + unsigned char sts_res= 0, sts_bat= 0; + unsigned char sts_pic_cnt= 0, sts_pic_rem= 0; + unsigned char dc_type= 0x25; +! unsigned char com_dev[128]= "/dev/ttyS0"; + + + /* LOCAL VARIABLES ****************************************/ +--- 15,21 ---- + unsigned char sts_res= 0, sts_bat= 0; + unsigned char sts_pic_cnt= 0, sts_pic_rem= 0; + unsigned char dc_type= 0x25; +! unsigned char com_dev[128]= "/dev/cuaa0"; + + + /* LOCAL VARIABLES ****************************************/ +*************** +*** 146,156 **** + { + switch (com_nr) + { +! case 1: strcpy(com_dev, "/dev/ttyS0") ; break; +! case 2: strcpy(com_dev, "/dev/ttyS1") ; break; +! case 3: strcpy(com_dev, "/dev/ttyS2") ; break; +! case 4: strcpy(com_dev, "/dev/ttyS3") ; break; +! default: strcpy(com_dev, "/dev/ttyS0") ; break; + } + + if ((com_hdl = open(com_dev, O_RDWR)) == -1) +--- 146,156 ---- + { + switch (com_nr) + { +! case 1: strcpy(com_dev, "/dev/cuaa0") ; break; +! case 2: strcpy(com_dev, "/dev/cuaa1") ; break; +! case 3: strcpy(com_dev, "/dev/cuaa2") ; break; +! case 4: strcpy(com_dev, "/dev/cuaa3") ; break; +! default: strcpy(com_dev, "/dev/cuaa0") ; break; + } + + if ((com_hdl = open(com_dev, O_RDWR)) == -1) diff --git a/graphics/dc20pack/files/patch-ab b/graphics/dc20pack/files/patch-ab new file mode 100644 index 000000000000..c4cdcd22c8f8 --- /dev/null +++ b/graphics/dc20pack/files/patch-ab @@ -0,0 +1,15 @@ +--- Makefile.orig Wed Sep 8 18:38:19 1999 ++++ Makefile Wed Sep 8 18:38:34 1999 +@@ -1,10 +1,10 @@ + all: dc20term dc2totga + + dc20term: dc20_ui.o dc20_hif.o +- gcc -o $@ dc20_ui.o dc20_hif.o ++ ${CC} ${CFLAGS} -o $@ dc20_ui.o dc20_hif.o + + dc2totga: dc2totga.c +- gcc -O3 -o dc2totga dc2totga.c -lm ++ ${CC} ${CFLAGS} -o dc2totga dc2totga.c -lm + + clean: + rm -f dc20_ui.o dc20_hif.o dc2totga.o dc20term dc2totga diff --git a/graphics/dc20pack/pkg-comment b/graphics/dc20pack/pkg-comment new file mode 100644 index 000000000000..c32812eba75f --- /dev/null +++ b/graphics/dc20pack/pkg-comment @@ -0,0 +1 @@ +Digital camera control and download tool for Kodak DC20/25 camera diff --git a/graphics/dc20pack/pkg-descr b/graphics/dc20pack/pkg-descr new file mode 100644 index 000000000000..742f7840d4f4 --- /dev/null +++ b/graphics/dc20pack/pkg-descr @@ -0,0 +1,3 @@ +dc20pack can control your Kodak DC20/25 digital camera via the embedded serial +port. Pictures are initially downloaded in the camera's native format but +can be converted to targa format. diff --git a/graphics/dc20pack/pkg-plist b/graphics/dc20pack/pkg-plist new file mode 100644 index 000000000000..1244540fdc30 --- /dev/null +++ b/graphics/dc20pack/pkg-plist @@ -0,0 +1,3 @@ +bin/dc20term +bin/dc20dump +bin/dc2totga |