summaryrefslogtreecommitdiff
path: root/textproc/helpdeco/Makefile
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2005-05-19 18:34:34 +0000
committerben <ben@pkgsrc.org>2005-05-19 18:34:34 +0000
commit41e9cf6ce88e3ddb9b44ab4a1b904958a13d67f2 (patch)
tree6ae91cc3a63e7bfc7d1cef7f47e1f7d0aae1b562 /textproc/helpdeco/Makefile
parent06db8b52af9f28bdb077dcf03f52ea64603029af (diff)
downloadpkgsrc-41e9cf6ce88e3ddb9b44ab4a1b904958a13d67f2.tar.gz
Update helpdeco to version 2.1.1. Notable changes:
* moved to sourceforge * put under GPL instead of non-commercial license, with permission from original author * portability fixes
Diffstat (limited to 'textproc/helpdeco/Makefile')
-rw-r--r--textproc/helpdeco/Makefile68
1 files changed, 14 insertions, 54 deletions
diff --git a/textproc/helpdeco/Makefile b/textproc/helpdeco/Makefile
index 45a9e504b22..e6d5fef6565 100644
--- a/textproc/helpdeco/Makefile
+++ b/textproc/helpdeco/Makefile
@@ -1,68 +1,28 @@
-# $NetBSD: Makefile,v 1.13 2004/09/22 17:38:30 ben Exp $
+# $NetBSD: Makefile,v 1.14 2005/05/19 18:34:34 ben Exp $
#
-DISTNAME= helpdc21
-PKGNAME= helpdeco-21
-PKGREVISION= 1
+DISTNAME= helpdeco-2.1.1
CATEGORIES= textproc
-MASTER_SITES= ${MASTER_SITE_SIMTEL:=win95/winhelp/}
-EXTRACT_SUFX= .zip
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=helpdeco/}
MAINTAINER= ben@NetBSD.org
-HOMEPAGE= http://www.simtel.net/pub/pd/23694.shtml
+HOMEPAGE= http://sourceforge.net/projects/helpdeco/
COMMENT= Windows .hlp to .rtf converter
-LICENSE= no-commercial-use
-
-WRKSRC= ${WRKDIR}
-
-# from ftp://ftp.simtel.net/pub/simtelnet/MIRRORS.TXT
-MASTER_SITE_SIMTEL+= ftp://ftp.cdrom.com/pub/simtelnet/ \
- ftp://ftp.datacanyon.com/pub/simtelnet/ \
- ftp://ftp.digital.com/pub/micro/pc/simtelnet/ \
- ftp://ftp.usg.edu/pub/mirrors/simtelnet/ \
- ftp://uiarchive.cso.uiuc.edu/pub/systems/pc/simtelnet/ \
- ftp://ftp.bu.edu/pub/mirrors/simtelnet/ \
- ftp://simtel.klondyke.net/simtel/ \
- ftp://simtelnet.galilei.com/pub/simtelnet/ \
- ftp://ftp.rge.com/pub/systems/simtelnet/ \
- ftp://ftp.ou.edu/pub/simtelnet/ \
- ftp://ftp.orst.edu/pub/simtelnet/ \
- ftp://ftphost.simtel.net/pub/simtelnet/ \
- ftp://mirrors.aol.com/pub/simtelnet/ \
- ftp://ftp.simtel.net/pub/simtelnet/ \
- ftp://ftp.telusplanet.net/pub/simtelnet/ \
- ftp://ftp.crc.ca/pub/systems/ibmpc/simtelnet/ \
- ftp://ftp.direct.ca/pub/simtelnet/
-
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "Linux"
-CFLAGS+= -Dstrlcpy=strncpy
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -DHAVE_STRLCPY
.endif
MAKE_ENV+= CFLAGS="${CFLAGS}"
-
-post-extract:
- ${RM} -f ${WRKSRC}/*exe
- ${CP} ${FILESDIR}/helpdeco-de.txt \
- ${FILESDIR}/helpdeco-en.txt \
- ${FILESDIR}/compat.h \
- ${FILESDIR}/compat.c \
- ${WRKSRC}
- ${SED} "s|PREFIX|${PREFIX}|" \
- <${FILESDIR}/Makefile \
- >${WRKSRC}/Makefile
-
-do-install:
- ${CP} ${WRKSRC}/splitmrb \
- ${WRKSRC}/zapres \
- ${WRKSRC}/helpdeco \
- ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/helpdeco
- ${CP} ${WRKSRC}/helpdeco-de.txt \
- ${WRKSRC}/helpdeco-en.txt \
- ${WRKSRC}/helpfile.txt \
- ${PREFIX}/share/doc/helpdeco
+BUILD_TARGET= build
+USE_GNU_TOOLS+= make
+
+SUBST_CLASSES+= prefix
+SUBST_MESSAGE.prefix= "Configuring to use PREFIX."
+SUBST_STAGE.prefix= post-patch
+SUBST_FILES.prefix= Makefile
+SUBST_SED.prefix= -e "s,/usr/local,${PREFIX},g"
.include "../../mk/bsd.pkg.mk"