freebsd-ports/devel/ponscripter-sekai/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

88 lines
2.5 KiB
Makefile

# $FreeBSD$
PORTNAME= ponscripter-sekai
PORTVERSION= 0.0.6
DISTVERSIONPREFIX= v
PORTREVISION= 5
CATEGORIES= devel games
MAINTAINER= jbeich@FreeBSD.org
COMMENT= NScripter-like novel-game interpreter with Unicode support
LICENSE= GPLv2+
LIB_DEPENDS= libsmpeg2.so:multimedia/smpeg2 \
libfreetype.so:print/freetype2
CONFLICTS= ponscripter-[0-9]* # doesn't exist yet
USE_GITHUB= yes
GH_ACCOUNT= sekaiproject
GH_PROJECT= ${PORTNAME:S/sekai/fork/}
USES= compiler:c++11-lang gmake shebangfix
USE_SDL= image2 mixer2
EXTRACT_AFTER_ARGS=--exclude src/extlib
SHEBANG_FILES= util/xml-template
HAS_CONFIGURE= yes
# XXX Pretend clang is like lang/gcc and can USE_CPU_GFX
CONFIGURE_ENV= CC_VER="4.8" CC="${CC} ${CFLAGS}" CXX="${CXX} ${CXXFLAGS}" \
CPATH="${LOCALBASE}/include" LIBRARY_PATH="${LOCALBASE}/lib"
CONFIGURE_ARGS= --prefix="${STAGEDIR}${PREFIX}" --unsupported-compiler
LDFLAGS+= -Wl,--as-needed
PORTDOCS= BUGS CHANGES MANUAL README TODO
PLIST_FILES= bin/ponscr \
share/emacs/site-lisp/ponscripter-mode.el
OPTIONS_DEFINE= DOCS MANPAGES TREMOR
OPTIONS_DEFAULT=MANPAGES ${MACHINE_CPU:Msoftfp:C/.+/TREMOR/}
MANPAGES_BUILD_DEPENDS= xmlto:textproc/xmlto
MANPAGES_PLIST_FILES=\
man/man6/ponscr.6.gz \
man/man7/ponscr-ext.7.gz \
man/man7/ponscr-syntax.7.gz \
man/man7/ponscripter.7.gz
TREMOR_LIB_DEPENDS= libvorbisidec.so:audio/libtremor
TREMOR_CFLAGS= -DINTEGER_OGG_VORBIS
TREMOR_LIB_DEPENDS_OFF= libvorbisfile.so:audio/libvorbis
post-patch:
@${REINPLACE_CMD} -e '/^ifdef DEBUG/,/^$$/d' \
-e 's/$$STRIPFLAG/${STRIP}/' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \
${WRKSRC}/src/Makefile.ponscripter
post-patch-MANPAGES-off:
@${REINPLACE_CMD} -i .manpages.bak \
-e '/install-man/d' \
-e 's/xmlto/${FALSE}/' \
${WRKSRC}/configure
post-patch-TREMOR-on:
@${REINPLACE_CMD} -i .tremor.bak \
-e 's/"libogg, libvorbis"/libvorbisidec/' \
-e 's,vorbis/vorbisfile,tremor/ivorbisfile,' \
-e 's,vorbis/codec,tremor/ivorbiscodec,' \
-e '/genlink/ { s/vorbisfile/vorbisidec/; \
/ogg/d; /vorbis$$/d; }' \
-e 's/ $$LINKogg//; s/ $$LINKvorbis//' \
-e 's/LINKvorbisfile/LINKvorbisidec/' \
${WRKSRC}/configure
post-build-MANPAGES-on:
# Remove extraneous whitespace to unbreak manpage syntax
${REINPLACE_CMD} -e 's/^[[:space:]]*//; /^$$/d' \
${WRKSRC}/doc/*.[0-9]
post-install:
${INSTALL_DATA} ${WRKSRC}/misc/ponscripter-mode.el \
${STAGEDIR}${PREFIX}/share/emacs/site-lisp
post-install-DOCS-on:
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>