datadir = @datadir@
mandir = @mandir@
man1dir = $(mandir)/man1
+pkgconfigdir = $(libdir)/pkgconfig
#--------------------------------------
clean:
rm -f $(PROGS) *.o $(LIBNEWT) core $(LIBNEWTSH) \
- $(SHAREDDIR)/*.o *.so*
+ $(SHAREDDIR)/*.o *.so* *.pc
depend:
$(CPP) $(CFLAGS) $(CPPFLAGS) -M $(SOURCES) > .depend
install -m 755 whiptail $(instroot)/$(bindir)
install -m 644 whiptail.1 $(instroot)/$(man1dir)
make -C po datadir=$(instroot)/$(datadir) install
+ install -m 644 -D libnewt.pc $(instroot)/$(pkgconfigdir)/libnewt.pc
install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
fi
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile libnewt.pc])
AC_OUTPUT
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libnewt
+Description: A development library for text mode user interfaces
+Version: @VERSION@
+Libs: -L${libdir} -lnewt
+Cflags: -I${includedir}