Browse files

Add .pc file template

  • Loading branch information...
1 parent 9710478 commit 637ff6a32290fbfa8a67bc954cfdd7efa78c5b61 @shana committed Jul 22, 2012
Showing with 19 additions and 3 deletions.
  1. +1 −1 bindinate/Makefile.am
  2. +9 −2 bindinate/bindinate.in
  3. +9 −0 bindinate/pc.template
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

0 comments on commit 637ff6a

Please sign in to comment.