Changeset View
Changeset View
Standalone View
Standalone View
devel/ponscripter-sekai/Makefile
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/^ifdef DEBUG/,/^$$/d' \ | @${REINPLACE_CMD} -e '/^ifdef DEBUG/,/^$$/d' \ | ||||
-e 's/$$STRIPFLAG/${STRIP}/' \ | -e 's/$$STRIPFLAG/${STRIP}/' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ | @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ | ||||
${WRKSRC}/src/Makefile.ponscripter | ${WRKSRC}/src/Makefile.ponscripter | ||||
.if ! ${PORT_OPTIONS:MMANPAGES} | .if ! ${PORT_OPTIONS:MMANPAGES} | ||||
@${REINPLACE_CMD} -e '/install-man/d' \ | @${REINPLACE_CMD} -i .manpages.bak \ | ||||
-e '/install-man/d' \ | |||||
-e 's/xmlto/${FALSE}/' \ | -e 's/xmlto/${FALSE}/' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
.endif | .endif | ||||
post-build: | post-build: | ||||
.if ${PORT_OPTIONS:MMANPAGES} | .if ${PORT_OPTIONS:MMANPAGES} | ||||
# Remove extraneous whitespace to unbreak manpage syntax | # Remove extraneous whitespace to unbreak manpage syntax | ||||
${REINPLACE_CMD} -e 's/^[[:space:]]*//; /^$$/d' \ | ${REINPLACE_CMD} -e 's/^[[:space:]]*//; /^$$/d' \ | ||||
${WRKSRC}/doc/*.[0-9] | ${WRKSRC}/doc/*.[0-9] | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
${INSTALL_DATA} ${WRKSRC}/misc/ponscripter-mode.el \ | ${INSTALL_DATA} ${WRKSRC}/misc/ponscripter-mode.el \ | ||||
${STAGEDIR}${PREFIX}/share/emacs/site-lisp | ${STAGEDIR}${PREFIX}/share/emacs/site-lisp | ||||
.if ${PORT_OPTIONS:MDOCS} | .if ${PORT_OPTIONS:MDOCS} | ||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | (cd ${WRKSRC} && ${COPYTREE_SHARE} \ | ||||
. for f in ${PORTDOCS} | "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) | ||||
${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} | |||||
. endfor | |||||
.endif | .endif | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |