8d2cee5205
ok steven@ There'l be more of this, including some ports where a RUN_DEPENDS=${BUILD_DEPENDS} really causes wrong runtime dependencies.
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2006/12/17 11:56:56 kili Exp $
|
|
|
|
COMMENT= "gd binding for the lua language"
|
|
|
|
V= 2.0.33r2
|
|
PKGNAME= luagd-$(V)p0
|
|
DISTNAME= lua-gd-$(V)
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= http://lua-gd.luaforge.net/
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/1592/
|
|
|
|
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= freetype fontconfig iconv z
|
|
LIB_DEPENDS= jpeg.>=62::graphics/jpeg png.>=2::graphics/png \
|
|
gd.>=20.33::graphics/gd
|
|
RUN_DEPENDS= :lua->=5.1:lang/lua
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
NO_REGRESS= Yes
|
|
USE_X11= Yes
|
|
|
|
do-build:
|
|
$(CC) $(CFLAGS) -DGD_JPEG -DGD_FONTCONFIG -DGD_FREETYPE -DGD_PNG\
|
|
-DGD_GIF -fPIC -I$(LOCALBASE)/include -shared -L$(LOCALBASE)/lib\
|
|
-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} ${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} ${WRKSRC}/doc/* ${PREFIX}/share/doc/luagd
|
|
${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/examples/luagd
|
|
|
|
.include <bsd.port.mk>
|