diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2008-03-19 07:12:15 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2008-03-19 07:12:15 +0000 |
commit | bd2faa929ecee268f17544f3475f03dbbcc6fb48 (patch) | |
tree | 6c7fa51e5467d1dc9e0ab5bf10be8886e09a6f42 /lang | |
parent | 7f3801b58a62a392355afdce468576e5583ebaf9 (diff) | |
download | ports-bd2faa929ecee268f17544f3475f03dbbcc6fb48.tar.gz ports-bd2faa929ecee268f17544f3475f03dbbcc6fb48.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/lua/Makefile | 21 | ||||
-rw-r--r-- | lang/lua/distinfo | 6 | ||||
-rw-r--r-- | lang/lua/pkg-plist | 2 |
3 files changed, 22 insertions, 7 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index 04373318d45e..ab160d7ef633 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -6,8 +6,7 @@ # PORTNAME= lua -PORTVERSION= 5.1.1 -PORTREVISION= 2 +PORTVERSION= 5.1.3 CATEGORIES= lang MASTER_SITES= http://www.lua.org/ftp/ \ ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \ @@ -21,7 +20,8 @@ COMMENT= Small, compilable scripting language providing easy access to C code USE_LUA= 5.1 LUA_COMPS= # only define variables -ALL_TARGET= bsd +ALL_TARGET= freebsd +USE_GNOME= pkgconfig MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1 DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR} @@ -33,10 +33,21 @@ LUA_MAN= ${LUA_BIN:S/$/.1/} post-patch: @${REINPLACE_CMD} -Ee \ - 's|^(CC=).*|\1 ${CC}| ; \ + '/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \ + s|^(CC=).*|\1 ${CC}| ; \ s|^(CFLAGS=)|\1 ${CFLAGS}| ; \ s|/usr/local|${PREFIX}|' \ ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile + @${REINPLACE_CMD} -Ee \ + 's|^(prefix=).*|\1 ${PREFIX}| ; \ + s|^(libdir=).*|\1 ${LUA_LIBDIR}| ; \ + s|^(includedir=).*|\1 ${LUA_INCDIR}| ; \ + s|^(INSTALL_BIN=).*|\1 ${LUA_BINDIR}| ; \ + s|^(INSTALL_INC=).*|\1 ${LUA_INCDIR}| ; \ + s|^(INSTALL_LIB=).*|\1 ${LUA_LIBDIR}| ; \ + s|^(INSTALL_CMOD=).*|\1 ${LUA_MODLIBDIR}| ; \ + s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}|' \ + ${WRKSRC}/etc/lua.pc && ${RM} ${WRKSRC}/etc/lua.pc.bak post-build: @${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac @@ -71,6 +82,8 @@ do-install: # Module directories. ${MKDIR} ${LUA_MODLIBDIR} ${MKDIR} ${LUA_MODSHAREDIR} +# pkg-config file. + ${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/libdata/pkgconfig .if ${MACHINE_ARCH:L} == "amd64" CFLAGS+= -fPIC diff --git a/lang/lua/distinfo b/lang/lua/distinfo index 2066f554ddc1..8347ba2d8285 100644 --- a/lang/lua/distinfo +++ b/lang/lua/distinfo @@ -1,3 +1,3 @@ -MD5 (lua-5.1.1.tar.gz) = 22f4f912f20802c11006fe9b84d5c461 -SHA256 (lua-5.1.1.tar.gz) = c5daeed0a75d8e4dd2328b7c7a69888247868154acbda69110e97d4a6e17d1f0 -SIZE (lua-5.1.1.tar.gz) = 207810 +MD5 (lua-5.1.3.tar.gz) = a70a8dfaa150e047866dc01a46272599 +SHA256 (lua-5.1.3.tar.gz) = 6b5df2edaa5e02bf1a2d85e1442b2e329493b30b0c0780f77199d24f087d296d +SIZE (lua-5.1.3.tar.gz) = 215817 diff --git a/lang/lua/pkg-plist b/lang/lua/pkg-plist index 9655c72683b5..7cdc95fa35f2 100644 --- a/lang/lua/pkg-plist +++ b/lang/lua/pkg-plist @@ -10,7 +10,9 @@ bin/luac-%%LUA_VER%% %%LUA_INCDIR%%/luaconf.h %%LUA_INCDIR%%/lualib.h %%LUA_LIBDIR%%/liblua.a +libdata/pkgconfig/lua.pc %%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/amazon.gif %%PORTDOCS%%%%DOCSDIR%%/contents.html %%PORTDOCS%%%%DOCSDIR%%/etc/Makefile %%PORTDOCS%%%%DOCSDIR%%/etc/README |