- use MODLUA_DATADIR/LIBDIR and regen PLIST

This commit is contained in:
jasper 2010-06-18 18:08:56 +00:00
parent 28af1f79db
commit 23a121b2aa
3 changed files with 7 additions and 14 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.8 2008/06/11 05:04:37 landry Exp $
# $OpenBSD: Makefile,v 1.9 2010/06/18 18:08:56 jasper Exp $
COMMENT= gd binding for the lua language
V= 2.0.33r2
PKGNAME= luagd-$(V)p2
PKGNAME= luagd-$(V)p3
DISTNAME= lua-gd-$(V)
CATEGORIES= graphics
@ -30,15 +30,12 @@ do-build:
-L$(X11BASE)/lib $(WRKDIST)/luagd.c -o ${WRKDIST}/core.so -ljpeg\
-lfontconfig -lfreetype -lpng -lz -liconv -lgd
SHAREDIR= ${PREFIX}/share/lua/5.1
LIBDIR= ${PREFIX}/lib/lua/5.1
do-install:
${INSTALL_DATA_DIR} ${SHAREDIR} ${LIBDIR}/gd
${INSTALL_DATA_DIR} ${MODLUA_DATADIR} ${MODLUA_LIBDIR}/gd
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luagd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/luagd
${INSTALL_DATA} ${FILESDIR}/gd.lua ${SHAREDIR}
${INSTALL_DATA} ${WRKSRC}/core.so ${LIBDIR}/gd
${INSTALL_DATA} ${FILESDIR}/gd.lua ${MODLUA_DATADIR}
${INSTALL_DATA} ${WRKSRC}/core.so ${MODLUA_LIBDIR}/gd
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/luagd
${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/examples/luagd

View File

@ -1,5 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.2 2006/07/30 04:46:42 pedro Exp $
lib/lua/
lib/lua/5.1/
@comment $OpenBSD: PFRAG.shared,v 1.3 2010/06/18 18:08:57 jasper Exp $
lib/lua/5.1/gd/
lib/lua/5.1/gd/core.so

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2006/07/30 04:46:42 pedro Exp $
@comment $OpenBSD: PLIST,v 1.3 2010/06/18 18:08:57 jasper Exp $
%%SHARED%%
share/doc/luagd/
share/doc/luagd/cat.png
@ -39,6 +39,4 @@ share/examples/luagd/ttftext.lua
share/examples/luagd/ttftextex.lua
share/examples/luagd/utf-8.lua
share/examples/luagd/utf-8.png
share/lua/
share/lua/5.1/
share/lua/5.1/gd.lua