diff options
Diffstat (limited to 'news/golded+/Makefile')
-rw-r--r-- | news/golded+/Makefile | 57 |
1 files changed, 38 insertions, 19 deletions
diff --git a/news/golded+/Makefile b/news/golded+/Makefile index df79803a25e5..47280b7693e8 100644 --- a/news/golded+/Makefile +++ b/news/golded+/Makefile @@ -11,8 +11,9 @@ PORTREVISION= 1 CATEGORIES= news mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=golded-plus -DISTNAME= gps115-${SNAPDATE} -SNAPDATE= 20050910 +DISTNAME= gps${SNAPDATE:S,^200,,} +SNAPDATE= 20061116 +EXTRACT_SUFX= .tb2 MAINTAINER= fjoe@FreeBSD.org COMMENT= GoldEd+ (FTN message editor) @@ -23,30 +24,48 @@ USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME} MAN1= golded.1 goldnode.1 rddt.1 -DOCS= copying copying.lib license.txt notework.txt rusfaq.txt tips.txt +DOCS= copying copying.lib license.txt notework.txt rusfaq.txt\ + tips.txt notework.rus tokencfg.txt tokentpl.txt goldnode.txt +PORTDOCS= ${DOCS} gold_ref.txt gold_usr.txt +SUB_FILES= pkg-message +.if !defined(NOPORTDOCS) +SUB_LIST= NOTEWORK="Please read the ${DOCSDIR}/notework.txt before using ${PORTNAME}" +.else +SUB_LIST= NOTEWORK="" +.endif post-patch: - @cp ${WRKSRC}/golded3/mygolded.__h ${WRKSRC}/golded3/mygolded.h + @${SED}\ + -e 's,^\(#define __GVER_VENDOR_NAME__\).*,\1 "",'\ + -e 's,\(#define __GVER_VENDOR_FIDO__\).*,\1 "",'\ + -e 's,\(#define __GVER_VENDOR_EMAIL__\).*,\1 "",'\ + -e 's,\(#define __GVER_RELEASENAME__\).*,\1 "Golded+ FreeBSD port",'\ + -e 's,\(#define __GVER_POSTVERSION__\).*,\1 "-b${SNAPDATE}",'\ + <${WRKSRC}/golded3/mygolded.__h >${WRKSRC}/golded3/mygolded.h do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/bin/gedlnx ${PREFIX}/bin/golded - @${INSTALL_PROGRAM} ${WRKSRC}/bin/gnlnx ${PREFIX}/bin/goldnode - @${INSTALL_PROGRAM} ${WRKSRC}/bin/rddtlnx ${PREFIX}/bin/rddt - @for i in ${MAN1}; do \ - ${INSTALL_MAN} ${WRKSRC}/docs/$$i ${PREFIX}/man/man1; \ - done + ${INSTALL_PROGRAM} ${WRKSRC}/bin/gedlnx ${PREFIX}/bin/golded + ${INSTALL_PROGRAM} ${WRKSRC}/bin/gnlnx ${PREFIX}/bin/goldnode + ${INSTALL_PROGRAM} ${WRKSRC}/bin/rddtlnx ${PREFIX}/bin/rddt +.for i in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/docs/$i ${PREFIX}/man/man1 +.endfor @${MKDIR} ${EXAMPLESDIR} - @for i in charset colorset config template; do \ - ${MKDIR} ${EXAMPLESDIR}/$$i; \ - ${FIND} ${WRKSRC}/cfgs/$$i -maxdepth 1 -type f | ${XARGS} -n 1 -J @ ${INSTALL_DATA} @ ${EXAMPLESDIR}/$$i; \ - done +.for i in charset colorset config template + ${MKDIR} ${EXAMPLESDIR}/$i; + ${FIND} ${WRKSRC}/cfgs/$i -maxdepth 1 -type f |\ + ${XARGS} -n 1 -J @ ${INSTALL_DATA} @ ${EXAMPLESDIR}/$i +.endfor .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/manuals/gold_ref.txt ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/manuals/gold_usr.txt ${DOCSDIR} - @for i in ${DOCS}; do \ - ${INSTALL_DATA} ${WRKSRC}/docs/$$i ${DOCSDIR}; \ - done + ${INSTALL_DATA} ${WRKSRC}/manuals/gold_ref.txt ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/manuals/gold_usr.txt ${DOCSDIR} +.for i in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/docs/$i ${DOCSDIR} +.endfor .endif +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> |