1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/news/golded+/Makefile
Adam Weinberger 2a58169b19 Add stage support to news, and improve correctness.
I am not touching the husky ports with a 10 foot pole.

atp:
	stage, improve pkg-message
crashmail:
	stage
diablo:
	too wacky to stage, but convert WITH_* to OPTIONS, unmute
	commands that shouldn't be muted, use :MDOCS
fidogate-ds:
	stage, OPTIONS, treat examples as EXAMPLES, not DOCS, handle
	/var/* in the plist properly
golded+:
	stage, OPTIONS, protect examples behind %%PORTEXAMPLES%%
nntpbtr:
	this was an unbelievably PITA
	stage, add missing prototypes, add missing return types,
	rename patch files to what they actually patch
nntpcache:
	stage support, required lots of Makefile.in patching,
	call submakes correctly, handle config files properly
nzbperl:
	stage, use OPTIONS, remove obsolete pkg-message
papercut:
	stage, handle config file properly
py-pynzb:
	stage, use OPTIONS helper to avoid bsd.port.options.mk inclusion
s-news:
	stage
slrnconf:
	stage
slrnface:
	stage, install required files to datadir, not examplesdir,
	generate proper pkg-message
sn:
	stage
2014-03-29 17:28:56 +00:00

61 lines
1.9 KiB
Makefile

# Created by: Max Khon
# $FreeBSD$
PORTNAME= golded+
PORTVERSION= 1.1.5.a${SNAPDATE}
PORTREVISION= 1
CATEGORIES= news mail
MASTER_SITES= SF/golded-plus/Golded%2B%201.1.5%20snapshots
DISTNAME= gps115-${SNAPDATE}
SNAPDATE= 20110223
MAINTAINER= fjoe@FreeBSD.org
COMMENT= GoldEd+ (FTN message editor)
USES= tar:bzip2 gmake
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= golded.1 goldnode.1 rddt.1
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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
SUB_LIST= NOTEWORK="Please read the ${DOCSDIR}/notework.txt before using ${PORTNAME}"
.else
SUB_LIST= NOTEWORK=""
.endif
post-patch:
@${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 ${STAGEDIR}${PREFIX}/bin/golded
${INSTALL_PROGRAM} ${WRKSRC}/bin/gnlnx ${STAGEDIR}${PREFIX}/bin/goldnode
${INSTALL_PROGRAM} ${WRKSRC}/bin/rddtlnx ${STAGEDIR}${PREFIX}/bin/rddt
${INSTALL_MAN} ${WRKSRC}/docs/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in charset colorset config template
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/$i;
${FIND} ${WRKSRC}/cfgs/$i -maxdepth 1 -type f |\
${XARGS} -n 1 -J @ ${INSTALL_DATA} @ ${STAGEDIR}${EXAMPLESDIR}/$i
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manuals/gold_ref.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manuals/gold_usr.txt ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/$i ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>