mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
75e129eb67
LUAHandler.cpp:207:15: error: use of undeclared identifier 'luaL_checkint'; did you mean 'luaL_checkany'? int no = luaL_checkint( state, 1 ); ^~~~~~~~~~~~~ luaL_checkany /usr/local/include/lua53/lauxlib.h:52:18: note: 'luaL_checkany' declared here LUALIB_API void (luaL_checkany) (lua_State *L, int arg); ^ LUAHandler.cpp:207:9: error: cannot initialize a variable of type 'int' with an rvalue of type 'void' int no = luaL_checkint( state, 1 ); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= onscripter
|
|
PORTVERSION= 20150208
|
|
CATEGORIES= devel games
|
|
MASTER_SITES= http://onscripter.sourceforge.jp/
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT?= Visual novel engine compatible with NScripter
|
|
|
|
LICENSE= GPLv2 # or any later version
|
|
|
|
LIB_DEPENDS= libsmpeg.so:${PORTSDIR}/multimedia/smpeg \
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
|
RUN_DEPENDS= sdl_ttf>=2.0.11_6:${PORTSDIR}/graphics/sdl_ttf
|
|
|
|
USES= gmake
|
|
USE_SDL= image mixer ttf
|
|
MAKEFILE= Makefile.Linux
|
|
ALL_TARGET= ALL
|
|
MAKE_ARGS= RM="${RM}"
|
|
LDFLAGS+= -Wl,--as-needed
|
|
PORTDOCS= *
|
|
PLIST_FILES?= bin/nsaconv \
|
|
bin/nsadec \
|
|
bin/onscripter \
|
|
bin/sarconv \
|
|
bin/sardec
|
|
|
|
OPTIONS_DEFINE= DOCS ENGLISH LUA PDA UTF8
|
|
OPTIONS_DEFAULT=LUA UTF8
|
|
OPTIONS_EXCLUDE?=ENGLISH
|
|
|
|
ENGLISH_DESC= Single-byte character mode
|
|
ENGLISH_CFLAGS?=-DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR
|
|
LUA_USES= lua
|
|
PDA_DESC= Fit window size to screen on small PDA devices
|
|
PDA_CFLAGS?= -DPDA_AUTOSIZE
|
|
UTF8_CFLAGS?= -DUTF8_CAPTION -DUTF8_FILESYSTEM
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
.if ! ${PORT_OPTIONS:MLUA}
|
|
@${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE}
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \
|
|
${WRKSRC}/Makefile.onscripter
|
|
@${REINPLACE_CMD} -e 's/luaL_checkint/(int)&eger/' \
|
|
${WRKSRC}/LUAHandler.cpp
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
.for f in ${PLIST_FILES:T}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
(cd ${WRKSRC}/www && ${COPYTREE_SHARE} \
|
|
. ${STAGEDIR}${DOCSDIR} \
|
|
"! -name *.orig ! -name *.bak")
|
|
.endif
|
|
.endif # do-install
|
|
|
|
.include <bsd.port.mk>
|