1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/games/onscripter/Makefile
Jan Beich 5e498e96a2 Reorganize some my ports for better discoverability
devel/onscripter{,-1byte} -> games/onscripter{,-1byte}
devel/ponscripter-sekai -> games/ponscripter-sekai
devel/renpy{,6} -> games/renpy{,6}
devel/rlvm -> games/rlvm
dns/openmdns -> net/openmdns (where Bonjour and Avahi are)
2018-09-03 00:21:45 +00:00

61 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= onscripter
PORTVERSION= 20180409
CATEGORIES= games
MASTER_SITES= http://onscripter.osdn.jp/
MAINTAINER= jbeich@FreeBSD.org
COMMENT?= Visual novel engine compatible with NScripter
LICENSE= GPLv2+
LIB_DEPENDS= libsmpeg.so:multimedia/smpeg \
libfontconfig.so:x11-fonts/fontconfig
RUN_DEPENDS= sdl_ttf>=2.0.11_6:graphics/sdl_ttf
USES= gmake jpeg
USE_SDL= image mixer ttf
MAKEFILE= Makefile.Linux
ALL_TARGET= ALL
MAKE_ARGS= RM="${RM}"
LDFLAGS+= -Wl,--as-needed # limit jpeg to bin/*conv
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
post-patch:
@${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \
${WRKSRC}/Makefile.onscripter
post-patch-LUA-off:
@${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE}
.if !target(do-install)
do-install:
.for f in ${PLIST_FILES:T}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
post-install-DOCS-on:
(cd ${WRKSRC}/www && ${COPYTREE_SHARE} \
. ${STAGEDIR}${DOCSDIR} \
"! -name *.orig ! -name *.bak")
.endif # do-install
.include <bsd.port.mk>