# Contributor: Natanael Copa # Maintainer: Natanael Copa global pkgname := 'libdc1394' global pkgver := '2.2.5' global pkgrel := '1' global pkgdesc := '"High level programming interface to control IEEE 1394 based cameras'" global url := '"http://damien.douxchamps.net/ieee1394/libdc1394/'" global arch := '"all'" global license := '"LGPL'" global depends := '' global depends_dev := '"libusb-dev libraw1394-dev'" global makedepends := ""$depends_dev linux-headers"" global install := ''"" global subpackages := ""$pkgname-dev $pkgname-doc"" global source := ""http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/$pkgver/libdc1394-$pkgver.tar.gz 0001-Fix-bad-variable-type-uint-int.patch "" global builddir := ""$srcdir"/libdc1394-$pkgver" proc prepare { var i = '' cd $builddir for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 } # there is on ly one tool and its only 4k... #tools() { # pkgdesc="Tools to use with $pkgname" # replaces="$pkgname" # mkdir -p "$subpkgdir"/usr/ # mv "$pkgdir"/usr/bin "$subpkgdir"/usr #} global md5sums := '"01acfcde2cc85863b0acb90dcffa1659 libdc1394-2.2.5.tar.gz bcfa1b825e8c8497884ee571a212618f 0001-Fix-bad-variable-type-uint-int.patch'" global sha256sums := '"350cc8d08aee5ffc4e1f3049e2e1c2bc6660642d424595157da97ab5b1263337 libdc1394-2.2.5.tar.gz 6b3d38005b61e40514592f0aeb0279620a3349f91f919392ff0add825b4fa975 0001-Fix-bad-variable-type-uint-int.patch'" global sha512sums := '"4a02560b7b2db7199b91c35786cb9d5af51398795fc1b7f0cb577d3563b27c0d03d407fa472d9756a2f87b658350a55d29c16fef401a74f835ba86e25214d13c libdc1394-2.2.5.tar.gz ab19b1aecec17b1caa6b225f626b6adcf80818cb59f693df69e9f0f2b4014846be22aa93473a62da8c7ae937ea8265f90499a9561d48e6bfe931e1e00cb16c60 0001-Fix-bad-variable-type-uint-int.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(libdc1394)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(2.2.5)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("High level programming interface to control IEEE 1394 based cameras"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://damien.douxchamps.net/ieee1394/libdc1394/"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (LGPL))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends_dev) op: Equal rhs: {(DQ ("libusb-dev libraw1394-dev"))} spids: [37] ) ] spids: [37] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ($ VSub_Name "$depends_dev") (" linux-headers"))} spids: [42] ) ] spids: [42] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[48])] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-dev ") ($ VSub_Name "$pkgname") (-doc))} spids: [52] ) ] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://downloads.sourceforge.net/project/libdc1394/libdc1394-2/") ($ VSub_Name "$pkgver") (/libdc1394-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\t0001-Fix-bad-variable-type-uint-int.patch\n") ("\t") ) } spids: [60] ) ] spids: [60] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/libdc1394-) ($ VSub_Name "$pkgver")} spids: [72] ) ] spids: [72] ) (FuncDef name: prepare body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[88])] spids: [86] ) (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [117 119 143 -1] ) ] spids: [110 114 146] ) ] spids: [107 149] ) spids: [103 105] ) ] spids: [83] ) spids: [79 82] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--infodir) (Lit_Other "=") (/usr/share/info)} {(--localstatedir) (Lit_Other "=") (/var)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [158] ) spids: [154 157] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [236] ) spids: [232 235] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("01acfcde2cc85863b0acb90dcffa1659 libdc1394-2.2.5.tar.gz\n") ("bcfa1b825e8c8497884ee571a212618f 0001-Fix-bad-variable-type-uint-int.patch") ) } spids: [286] ) ] spids: [286] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "350cc8d08aee5ffc4e1f3049e2e1c2bc6660642d424595157da97ab5b1263337 libdc1394-2.2.5.tar.gz\n" ) ( "6b3d38005b61e40514592f0aeb0279620a3349f91f919392ff0add825b4fa975 0001-Fix-bad-variable-type-uint-int.patch" ) ) } spids: [292] ) ] spids: [292] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "4a02560b7b2db7199b91c35786cb9d5af51398795fc1b7f0cb577d3563b27c0d03d407fa472d9756a2f87b658350a55d29c16fef401a74f835ba86e25214d13c libdc1394-2.2.5.tar.gz\n" ) ( "ab19b1aecec17b1caa6b225f626b6adcf80818cb59f693df69e9f0f2b4014846be22aa93473a62da8c7ae937ea8265f90499a9561d48e6bfe931e1e00cb16c60 0001-Fix-bad-variable-type-uint-int.patch" ) ) } spids: [298] ) ] spids: [298] ) ] )