4 exec_prefix
=@exec_prefix@
6 pkglibdir
=${libdir}/vala
10 echo "Usage: `basename $0` PKGNAME BASEPATH"
16 PKGPREFIX
=`pkg-config --variable=prefix $PKGNAME`
18 PKGFILES
=`cat $PKGBASE.files | grep ^[a-zA-Z] | sed -e "s@^@$PKGPREFIX/@"`
20 if [ -e $PKGBASE.excludes
]
22 FILES
=`find $PKGFILES -name "*.h" -or -name "*.so" | grep -v -f $PKGBASE.excludes`
24 FILES
=`find $PKGFILES -name "*.h" -or -name "*.so"`
27 if [ -e $PKGBASE.defines
]
29 PKGDEFINES
=$
(cat $PKGBASE.defines
)
32 $pkglibdir/gen-introspect
--namespace=`cat $PKGBASE.namespace` $PKGDEFINES `pkg-config --cflags $PKGNAME | sed 's/-pthread//g'` $FILES > $PKGBASE.gi