freebsd-ports/devel/onscripter/Makefile
Jan Beich 67088d05cb Improve style/consistency among the ports I maintain
- Convert to COPYTREE_SHARE
- Drop unnecessary MKDIR before COPYTREE_SHARE
- Drop bsd.port.options.mk if only DOCS requires it without dependencies
- Use separate backup if several REINPLACE_CMD against the same file
- audio/alsa-utils: convert to LIBS

Differential Revision:	https://reviews.freebsd.org/D1851
Approved by:	bapt (mentor)
2015-02-16 08:12:16 +00:00

62 lines
1.5 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
.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>