Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add .pc file template

  • Loading branch information...
commit 637ff6a32290fbfa8a67bc954cfdd7efa78c5b61 1 parent 9710478
@shana authored
View
2  bindinate/Makefile.am
@@ -1,3 +1,3 @@
bin_SCRIPTS = bindinate
bindinatedir = $(libdir)/bindinator
-bindinate_DATA = gir2gapi.xslt preprocess.xslt configure.ac.template Makefile.am.template AssemblyInfo.cs.in autogen.sh metadata.template
+bindinate_DATA = gir2gapi.xslt preprocess.xslt configure.ac.template Makefile.am.template AssemblyInfo.cs.in autogen.sh metadata.template pc.template
View
11 bindinate/bindinate.in
@@ -108,6 +108,7 @@ AC_SUBST($PR)
AC_CONFIG_FILES([
Makefile
AssemblyInfo.cs
+ $NAME-sharp-$VERSION.pc
])
AC_CONFIG_COMMANDS([default],[[ echo timestamp > stamp-h ]],[[]])
AC_OUTPUT
@@ -141,10 +142,16 @@ if [ ! -e $OUTDIR/$NAME-sharp.snk ]; then
sn -k $OUTDIR/$NAME-sharp.snk
fi
+if [ ! -x $OUTDIR/$NAME-sharp-$VERSION.pc.in ]; then
+ cp @prefix@/lib/bindinator/pc.template $OUTDIR/$NAME-sharp-$VERSION.pc.in
+fi
+
#if test -e @GIRDIR@/$1.gir; then
# echo "AAAAH"
# @XSLTPROC@ @prefix@/lib/bindinator/gir2gapi.xslt -o "$1"/$1-api.raw @GIRDIR@/$1.gir
#fi
-echo "Processing @GIRDIR@/$1.gir and outputting $OUTDIR/$NAME-sharp-api.raw"
-@XSLTPROC@ -o $OUTDIR/$NAME-sharp-api.raw @prefix@/lib/bindinator/gir2gapi.xslt @GIRDIR@/$1.gir
+if [ ! -e $OUTDIR/$NAME-sharp-api.raw ]; then
+ echo "Processing @GIRDIR@/$1.gir and outputting $OUTDIR/$NAME-sharp-api.raw"
+ @XSLTPROC@ -o $OUTDIR/$NAME-sharp-api.raw @prefix@/lib/bindinator/gir2gapi.xslt @GIRDIR@/$1.gir
+fi
View
9 bindinate/pc.template
@@ -0,0 +1,9 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+
+Name: @ASSEMBLY_TITLE@
+Description: @ASSEMBLY_DESCRIPTION@
+Version: @VERSION@
+Requires:
+Libs: -r:${libdir}/mono/@ASSEMBLY_NAME@/@ASSEMBLY_NAME@.dll
Please sign in to comment.
Something went wrong with that request. Please try again.