[csw-devel] SF.net SVN: gar:[19912] csw/mgar/pkg/lua/trunk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue Dec 18 11:37:41 CET 2012
Revision: 19912
http://gar.svn.sourceforge.net/gar/?rev=19912&view=rev
Author: dmichelsen
Date: 2012-12-18 10:37:41 +0000 (Tue, 18 Dec 2012)
Log Message:
-----------
lua/trunk: Add pkgconfig files
Modified Paths:
--------------
csw/mgar/pkg/lua/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/lua/trunk/files/lua.pc
Modified: csw/mgar/pkg/lua/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lua/trunk/Makefile 2012-12-18 10:10:27 UTC (rev 19911)
+++ csw/mgar/pkg/lua/trunk/Makefile 2012-12-18 10:37:41 UTC (rev 19912)
@@ -7,7 +7,7 @@
NAME = lua
VERSION = 5.2.1
-GARTYPE = v2
+MAJOR = $(shell echo $(VERSION) | awk -F. '{print $$1"."$$2}')
DESCRIPTION = Light-weight language designed for extending applications
define BLURB
@@ -18,6 +18,8 @@
MASTER_SITES = http://www.lua.org/ftp/
DISTFILES += $(DISTNAME).tar.gz
+DISTFILES += lua.pc
+EXPANDVARS += lua.pc
PATCHFILES += 0001-Make-shared-lib.patch
@@ -68,3 +70,10 @@
INSTALL_ARGS += INSTALL_LIB=$(DESTDIR)$(libdir)
include gar/category.mk
+
+post-install-modulated:
+ ginstall -d $(DESTDIR)$(libdir)/pkgconfig
+ ginstall $(WORKDIR)/lua.pc $(DESTDIR)$(libdir)/pkgconfig/lua-$(MAJOR).pc
+ gln -s lua-$(MAJOR).pc $(DESTDIR)$(libdir)/pkgconfig/lua$(MAJOR).pc
+ gln -s lua-$(MAJOR).pc $(DESTDIR)$(libdir)/pkgconfig/lua.pc
+ @$(MAKECOOKIE)
Added: csw/mgar/pkg/lua/trunk/files/lua.pc
===================================================================
--- csw/mgar/pkg/lua/trunk/files/lua.pc (rev 0)
+++ csw/mgar/pkg/lua/trunk/files/lua.pc 2012-12-18 10:37:41 UTC (rev 19912)
@@ -0,0 +1,32 @@
+# lua.pc -- pkg-config data for Lua
+
+# We construct the .pc here because upstream is reducing the number of files in the tarball
+# and .pc is "so useless" :-(
+# http://lua-users.org/lists/lua-l/2010-03/msg00718.html
+
+prefix=@prefix@
+V=@MAJOR@
+R=@VERSION@
+
+prefix=@prefix@
+INSTALL_BIN=@bindir@
+INSTALL_INC=@includedir@
+INSTALL_LIB=@libdir@
+INSTALL_MAN=@mandir@/man1
+INSTALL_LMOD=@sharedstatedir@/lua/${V}
+INSTALL_CMOD=@libdir@/lua/${V}
+
+# canonical vars
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Lua
+Description: An Extensible Extension Language
+Version: ${R}
+Requires:
+Libs: -L${libdir} -llua -lm
+Cflags: -I${includedir}
+
+# (end of lua.pc)
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list