diff options
Diffstat (limited to 'editors/ted')
-rw-r--r-- | editors/ted/Makefile | 12 | ||||
-rw-r--r-- | editors/ted/pkg-plist | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/editors/ted/Makefile b/editors/ted/Makefile index dfd87d49d02b..70a07660069b 100644 --- a/editors/ted/Makefile +++ b/editors/ted/Makefile @@ -18,7 +18,7 @@ COMMENT= X11 based RTF editor LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ jpeg.9:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff -RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/Fontmap:${PORTSDIR}/print/gsfonts +RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/COPYING:${PORTSDIR}/print/gsfonts WRKSRC= ${WRKDIR}/Ted-${PORTVERSION} CONFIGURE_WRKSRC= ${WRKSRC}/Ted @@ -31,12 +31,11 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \ DEF_INDDIR="-DINDDIR=\"\\\"${INDDIR}\\\"\"" \ - DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${INFODIR}/\\\"\"" + DEF_DOCUMENT_DIR="-DDOCUMENT_DIR=\"\\\"${DOCSDIR}/\\\"\"" ALL_TARGET= compile.shared AFMDIR= ${PREFIX}/share/Ted/afm INDDIR= ${PREFIX}/share/Ted/ind -INFODIR= ${PREFIX}/share/doc/Ted post-extract: cd ${WRKSRC}/tedPackage && ${TAR} xf TedBindist.tar @@ -59,7 +58,10 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/tedPackage/afm/* ${AFMDIR} @${MKDIR} ${INDDIR} ${INSTALL_DATA} ${WRKSRC}/tedPackage/ind/US_English.ind ${INDDIR} - @${MKDIR} ${INFODIR} - ${INSTALL_DATA} ${WRKSRC}/tedPackage/Ted/TedDocument-en_US.rtf ${INFODIR} +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/tedPackage/Ted/TedDocument-en_US.rtf ${DOCSDIR} +.endif .include <bsd.port.mk> diff --git a/editors/ted/pkg-plist b/editors/ted/pkg-plist index 4bf501d861b4..a9fbb80c8fce 100644 --- a/editors/ted/pkg-plist +++ b/editors/ted/pkg-plist @@ -13,8 +13,8 @@ share/Ted/afm/Times-BoldItalic.afm share/Ted/afm/Times-Italic.afm share/Ted/afm/Times-Roman.afm share/Ted/ind/US_English.ind -share/doc/Ted/TedDocument-en_US.rtf -@dirrm share/doc/Ted +%%PORTDOCS%%%%DOCSDIR%%/TedDocument-en_US.rtf +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm share/Ted/ind @dirrm share/Ted/afm @dirrm share/Ted |