File:  [cvs.NetBSD.org] / pkgsrc / devel / tmake / Makefile
Revision 1.20: download - view: text, annotated - select for diffs
Wed Sep 6 10:40:26 2017 UTC (7 years, 3 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, HEAD
Comment out dead sites.

# $NetBSD: Makefile,v 1.20 2017/09/06 10:40:26 wiz Exp $
#

DISTNAME=	tmake-1.13
PKGREVISION=	5
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.qtsoftware.com/freebies/tmake/

MAINTAINER=	pkgsrc-users@NetBSD.org
#HOMEPAGE=	http://www.qtsoftware.com/developer/downloads/qt/freebies/
COMMENT=	Cross-platform Makefile Tool

USE_TOOLS+=	perl:run

TMAKEPATH=	${PREFIX}/lib/tmake/netbsd-g++
GLBASE=		${X11BASE}

INSTALLATION_DIRS=	bin

SUBST_CLASSES+=		tmake
SUBST_STAGE.tmake=	do-build
SUBST_FILES.tmake=	bin/tmake
SUBST_SED.tmake+=	-e 's;@TMAKEPATH@;'${TMAKEPATH:Q}';g'

SUBST_CLASSES+=		tmakeconf
SUBST_STAGE.tmakeconf=	do-build
SUBST_FILES.tmakeconf=	lib/netbsd-g++/tmake.conf
SUBST_SED.tmakeconf=	-e 's;@LOCALBASE@;${LOCALBASE};g'
SUBST_SED.tmakeconf+=	-e 's;@X11BASE@;${X11BASE};g'
SUBST_SED.tmakeconf+=	-e 's;@GLBASE@;${GLBASE};g'

REPLACE_PERL+=		bin/tmake bin/progen

# Nothing but the substitutions above.
do-build:
	@${DO_NADA}

# avoid installing .orig files
pre-install:
	${RM} -f ${WRKSRC}/lib/netbsd-g++/*.orig
	${RM} -f ${WRKSRC}/lib/unix/*.orig

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/progen ${DESTDIR}${PREFIX}/bin/progen
	${INSTALL_SCRIPT} ${WRKSRC}/bin/tmake ${DESTDIR}${PREFIX}/bin/tmake
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/tmake
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/tmake
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/tmake
	${INSTALL_DATA} ${WRKSRC}/example/* ${DESTDIR}${PREFIX}/share/examples/tmake
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/tmake/netbsd-g++
	${INSTALL_DATA} ${WRKSRC}/lib/netbsd-g++/* ${DESTDIR}${PREFIX}/lib/tmake/netbsd-g++
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/tmake/unix
	${INSTALL_DATA} ${WRKSRC}/lib/unix/* ${DESTDIR}${PREFIX}/lib/tmake/unix

.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>