Complete previous commit, missed some files

This commit is contained in:
Pawel Pekala 2014-05-08 10:56:17 +00:00
parent 2771911b51
commit 7a0fcad7f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353287
2 changed files with 27 additions and 22 deletions

View file

@ -17,32 +17,35 @@ THOT_SUBDIR= Target
USES= gmake motif
WRKSRC= $(WRKDIR)/Thot/$(THOT_SUBDIR)
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-thot --enable-plugin --without-insure --without-amaya --disable-java --disable-intr --disable-jit --disable-math --disable-ilu
CONFIGURE_ARGS= --with-thot --enable-plugin --without-insure --without-amaya \
--disable-java --disable-intr --disable-jit --disable-math \
--disable-ilu
ALL_TARGET= all schemas
SUB_FILES= thoteditor
MAKE_JOBS_UNSAFE= yes
MAN1= cextract.1
MAN5= cextrc.5
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-configure:
$(CP) $(WRKSRC)/../thot/Makefile.in $(WRKSRC)/../thot/Makefile.in.patched
$(SED) -e "s&%%MOTIFLIB%%&$(MOTIFLIB)&" <$(WRKSRC)/../thot/Makefile.in.patched >$(WRKSRC)/../thot/Makefile.in
(cd $(WRKSRC);../configure $(CONFIGURE_ARGS))
post-configure:
$(CP) $(WRKSRC)/../thotlib/base/registry.c $(WRKSRC)/../thotlib/base/registry.c.orig
$(SED) -e "s&%%PREFIX%%&$(PREFIX)&" <$(WRKSRC)/../thotlib/base/registry.c.orig >$(WRKSRC)/../thotlib/base/registry.c
post-extract:
(cd $(WRKDIR)/Thot;$(MKDIR) $(THOT_SUBDIR))
@${MKDIR} ${WRKSRC}
post-patch:
@${REINPLACE_CMD} 's|-g -O|${CFLAGS}|' \
${WRKDIR}/Thot/configure
@${REINPLACE_CMD} 's|%%MOTIFLIB%%|${MOTIFLIB}|' \
${WRKDIR}/Thot/thot/Makefile.in
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \
${WRKDIR}/Thot/thotlib/base/registry.c
@${REINPLACE_CMD} 's|/usr/wsrc/|/usr/tmp/|' \
${WRKDIR}/Thot/thotlib/include/sysdep.h
do-configure:
(cd $(WRKSRC);../configure $(CONFIGURE_ARGS))
post-install:
${MKDIR} ${PREFIX}/share/thot/doc
$(SED) -e "s&%%PREFIX%%&$(PREFIX)&" < $(FILESDIR)/thoteditor > $(WRKDIR)/thoteditor
$(INSTALL_SCRIPT) $(WRKDIR)/thoteditor $(PREFIX)/bin
$(INSTALL_MAN) $(WRKSRC)/../tools/cextract-1.7/cextrc.5 $(PREFIX)/man/man5
$(INSTALL_MAN) $(WRKSRC)/../tools/cextract-1.7/cextract.man $(PREFIX)/man/man1/cextract.1
@${MKDIR} ${STAGEDIR}${PREFIX}/share/thot/doc
${INSTALL_SCRIPT} ${WRKDIR}/thoteditor ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/Thot/tools/cextract-1.7/cextract.man \
${STAGEDIR}${PREFIX}/man/man1/cextract.1
${INSTALL_MAN} ${WRKDIR}/Thot/tools/cextract-1.7/cextrc.5 \
${STAGEDIR}${PREFIX}/man/man5
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -8,6 +8,8 @@ bin/print
bin/prs
bin/thot
bin/thoteditor
man/man1/cextract.1.gz
man/man5/cextrc.5.gz
share/thot/batch/APP.GRM
share/thot/batch/PRESEN.GRM
share/thot/batch/STRUCT.GRM