added pkg-config file.

This commit is contained in:
Martin Preuss
2024-07-10 20:20:07 +02:00
parent f75e752127
commit b547126b8d
2 changed files with 31 additions and 2 deletions

11
0BUILD
View File

@@ -41,11 +41,12 @@
<default>/usr/local</default>
</option>
<setVar name="prefix">$(option_prefix)</setVar>
<setVar name="exec_prefix">$(option_prefix)/bin</setVar>
<setVar name="sysconfdir">$(option_prefix)/etc</setVar>
<setVar name="bindir">$(option_prefix)/bin</setVar>
<setVar name="cgibindir">$(option_prefix)/lib/cgi-bin</setVar>
<setVar name="libdir">$(option_prefix)/lib</setVar>
<setVar name="includedir">$(option_prefix)/include</setVar>
<setVar name="datarootdir">$(option_prefix)/share</setVar>
<setVar name="datadir">$(option_prefix)/share</setVar>
<setVar name="localedir">$(option_prefix)/share/locale</setVar>
@@ -96,7 +97,6 @@
<!-- paths -->
<setVar name="aqcgi_plugin_installdir">$(pkglibdir)/plugins/$(project_so_effective)</setVar>
<ifVarMatches name="GWBUILD_SYSTEM" value="windows" > <!-- long version of IF statement with THEN and ELSE -->
<then>
<define name="OS_WIN32" value="1" />
@@ -177,6 +177,12 @@
<define name="OS_SHORTNAME" value="$(GWBUILD_SYSTEM)" quoted="TRUE" />
<!-- compatibility defines/vars with Makefile.am -->
<setVar name="aqcgi_ldflags">-L$${libdir}</setVar>
<setVar name="aqcgi_libs">-laqcgi</setVar>
<setVar name="aqcgi_includes">-I$${includedir}/aqcgi6</setVar>
<!-- Build with "gwbuild -B gettext-src" -->
<ifVarMatches name="xgettext_EXISTS" value="TRUE" >
<buildFiles name="gettext-src" auto="FALSE" >
@@ -253,6 +259,7 @@
src
</subdirs>
<writeFile name="aqcgi.pc" install="$(libdir)/pkgconfig" />
</project>