# Contributor: Philipp Andronov # Maintainer: Matt Smith global pkgname := 'libexecinfo' global pkgver := '1.1' global pkgrel := '0' global pkgdesc := '"A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility.'" global url := '"http://www.freshports.org/devel/libexecinfo'" global arch := '"all'" global license := '"BSD'" global depends := '' global makedepends := '' global install := '' global subpackages := ""$(pkgname)-dev"" global source := ""http://distcache.freebsd.org/local-distfiles/itetcu/$pkgname-$pkgver.tar.bz2 10-execinfo.patch 20-define-gnu-source.patch 30-linux-makefile.patch "" global _builddir := ""$srcdir"/$pkgname-$pkgver" proc prepare { cd $_builddir patch -p0 -i "$srcdir"/10-execinfo.patch patch -p0 -i "$srcdir"/20-define-gnu-source.patch patch -p0 -i "$srcdir"/30-linux-makefile.patch } proc build { cd $_builddir export CFLAGS="$(CFLAGS) -fno-omit-frame-pointer" make || return 1 } proc package { cd $_builddir install -D -m755 "$_builddir"/execinfo.h \ "$pkgdir"/usr/include/execinfo.h || return 1 install -D -m755 "$_builddir"/stacktraverse.h \ "$pkgdir"/usr/include/stacktraverse.h || return 1 install -D -m755 "$_builddir"/libexecinfo.a \ "$pkgdir"/usr/lib/libexecinfo.a || return 1 install -D -m755 "$_builddir"/libexecinfo.so.1 \ "$pkgdir"/usr/lib/libexecinfo.so.1 || return 1 ln -s /usr/lib/libexecinfo.so.1 \ "$pkgdir"/usr/lib/libexecinfo.so || return 1 } global md5sums := '"8e9e81c554c1c5d735bc877448e92b91 libexecinfo-1.1.tar.bz2 594e9f7b86780f2f0c623443dec7ca04 10-execinfo.patch 8536668cd1813aa689f12d36c470c0a5 20-define-gnu-source.patch 7dfdae632685a5331ca8317395132066 30-linux-makefile.patch'" global sha256sums := '"c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f libexecinfo-1.1.tar.bz2 eff078913cf0baeff6e0442ec5c77d1b25d97d13a6d66d25f5576fd25486d752 10-execinfo.patch 020c73643ac91df9e90532499404fdc10e3ca0d0e6979a8c1610ac340cabe8d6 20-define-gnu-source.patch 4e310e178c27ecad1ccb7ced06719428ab44bd30163eb7042c5eb2f285f892cb 30-linux-makefile.patch'" global sha512sums := '"51fea7910ef6873061a25c22434ce4da724e9d8e37616a069ad0a58c0463755be4c6c7da88cd747484c2f3373909d7be4678b32a4bd91b6d9e0f74526094e92c libexecinfo-1.1.tar.bz2 a38f75d305518d3432807735456b32b223e89e0d08860e2dfafb5ad3b507de92d4fa60e4bb11978e3dbf20d68be05da42237ced7db625304b49a5288b90be232 10-execinfo.patch f335effbbb5425a4b1031fd8a4358f777825a5979f099d01357fab5715065e9f7439f118d155f124b1a15b1e91cd3a4e9a20793806d121f605775f148aea0102 20-define-gnu-source.patch 3596aef8c6d0593afd063c2295ede3473d33afa52eafa5258bb48fcd472a36f987196c7de647b2b408a5a02138de9f36253d93f7a9f061e2bb6082fc429acb76 30-linux-makefile.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(libexecinfo)} spids:[7])] spids: [7] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.1)} spids:[10])] spids: [10] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[13])] spids: [13] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility."))} spids: [16] ) ] spids: [16] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.freshports.org/devel/libexecinfo"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[26])] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (BSD))} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:makedepends) op:Equal rhs:{(SQ )} spids:[38])] spids: [38] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[40])] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ (${ VSub_Name pkgname) (-dev))} spids: [42] ) ] spids: [42] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://distcache.freebsd.org/local-distfiles/itetcu/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.bz2\n") ("\t10-execinfo.patch\n") ("\t20-define-gnu-source.patch\n") ("\t30-linux-makefile.patch\n") ("\t") ) } spids: [50] ) ] spids: [50] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver")} spids: [64] ) ] spids: [64] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(patch)} {(-p0)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/10-execinfo.patch)}) (C {(patch)} {(-p0)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/20-define-gnu-source.patch)}) (C {(patch)} {(-p0)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/30-linux-makefile.patch)}) ] spids: [78] ) spids: [74 77] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(export)} {(Lit_VarLike "CFLAGS=") (DQ (${ VSub_Name CFLAGS) (" -fno-omit-frame-pointer"))} ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [130] ) spids: [126 129] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$_builddir")) (/execinfo.h)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/include/execinfo.h)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$_builddir")) (/stacktraverse.h)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/include/stacktraverse.h)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$_builddir")) (/libexecinfo.a)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libexecinfo.a)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$_builddir")) (/libexecinfo.so.1)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libexecinfo.so.1)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(ln)} {(-s)} {(/usr/lib/libexecinfo.so.1)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libexecinfo.so)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [166] ) spids: [162 165] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("8e9e81c554c1c5d735bc877448e92b91 libexecinfo-1.1.tar.bz2\n") ("594e9f7b86780f2f0c623443dec7ca04 10-execinfo.patch\n") ("8536668cd1813aa689f12d36c470c0a5 20-define-gnu-source.patch\n") ("7dfdae632685a5331ca8317395132066 30-linux-makefile.patch") ) } spids: [299] ) ] spids: [299] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f libexecinfo-1.1.tar.bz2\n" ) ("eff078913cf0baeff6e0442ec5c77d1b25d97d13a6d66d25f5576fd25486d752 10-execinfo.patch\n") ( "020c73643ac91df9e90532499404fdc10e3ca0d0e6979a8c1610ac340cabe8d6 20-define-gnu-source.patch\n" ) ("4e310e178c27ecad1ccb7ced06719428ab44bd30163eb7042c5eb2f285f892cb 30-linux-makefile.patch") ) } spids: [307] ) ] spids: [307] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "51fea7910ef6873061a25c22434ce4da724e9d8e37616a069ad0a58c0463755be4c6c7da88cd747484c2f3373909d7be4678b32a4bd91b6d9e0f74526094e92c libexecinfo-1.1.tar.bz2\n" ) ( "a38f75d305518d3432807735456b32b223e89e0d08860e2dfafb5ad3b507de92d4fa60e4bb11978e3dbf20d68be05da42237ced7db625304b49a5288b90be232 10-execinfo.patch\n" ) ( "f335effbbb5425a4b1031fd8a4358f777825a5979f099d01357fab5715065e9f7439f118d155f124b1a15b1e91cd3a4e9a20793806d121f605775f148aea0102 20-define-gnu-source.patch\n" ) ( "3596aef8c6d0593afd063c2295ede3473d33afa52eafa5258bb48fcd472a36f987196c7de647b2b408a5a02138de9f36253d93f7a9f061e2bb6082fc429acb76 30-linux-makefile.patch" ) ) } spids: [315] ) ] spids: [315] ) ] )