Skip to content

Commit

Permalink
pkg-config support
Browse files Browse the repository at this point in the history
  • Loading branch information
carstene1ns committed Oct 4, 2017
1 parent b4bd6fe commit 478364d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ aclocal.m4
*.a
*.la
.dirstamp
*.pc

.deps
.libs
Expand Down
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ACLOCAL_AMFLAGS = -I autoconf/m4

pkgconfigdir = ${libdir}/pkgconfig
pkgconfig_DATA = hqx.pc

EXTRA_DIST = README.md

bin_PROGRAMS = hqx
Expand Down
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ AS_IF([test "x$enable_debug" = "xyes"],

AS_CASE([$host], [*cygwin*], [CFLAGS="$CFLAGS -mno-cygwin"])

AC_OUTPUT([Makefile])
AC_CONFIG_FILES([Makefile hqx.pc])
AC_OUTPUT
12 changes: 12 additions & 0 deletions hqx.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: @PACKAGE_TARNAME@
Description: Fast, high-quality magnification filter designed for pixel art
Version: @PACKAGE_VERSION@
URL: @PACKAGE_URL@
Requires.private: IL
Cflags: -I${includedir}
Libs: -L${libdir} -lhqx

0 comments on commit 478364d

Please sign in to comment.