pkgsrc/devel/tmake/Makefile
dmcmahill 1f1744e997 initial import of tmake-1.7
from pkg/DESCR:
tmake is an easy-to-use tool from Trolltech to create and maintain
makefiles for software projects.  It can be a painful task to manage
makefiles manually, especially if you develop for more than one platform
or use more than one compiler.  tmake automates and streamlines this
process and lets you spend your valuable time on writing code, not
makefiles.

Our main motivation for developing tmake was that we spent far too much
time maintaining makefiles for Qt,
our cross-platform GUI toolkit. Qt supports around 15 flavors of Unix,
Microsoft Windows, and around 15 different C++ compilers.  We looked at
GNU autoconf, but it was Unix-specific and not flexible enough in our
opinion. Our makefile system also had to deal with Qt meta object compiler
(moc) issues. The moc program extracts meta information from C++ files and
generates a C++ file with data tables etc.  It takes extra work to add
makefile rules for the moc and wanted to automate this task.
2001-04-25 14:55:59 +00:00

55 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2001/04/25 14:55:59 dmcmahill Exp $
#
DISTNAME= tmake-1.7
CATEGORIES= devel
MASTER_SITES= ftp://ftp.trolltech.com/freebies/tmake/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.trolltech.com/products/download/freebies/tmake.html
COMMENT= Cross-platform Makefile Tool
RESTRICTED= No paid redistribution
NO_BIN_ON_CDROM= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
USE_PERL5= YES
TMAKEPATH= ${PREFIX}/lib/tmake/netbsd-g++
GLBASE= ${X11BASE}
do-build:
${MV} ${WRKSRC}/bin/tmake ${WRKSRC}/bin/tmake.BAK
${SED} -e 's;@PERL5@;${PERL5};g' \
-e 's;@TMAKEPATH@;${TMAKEPATH};g' \
${WRKSRC}/bin/tmake.BAK > ${WRKSRC}/bin/tmake
${RM} ${WRKSRC}/bin/tmake.BAK
${MV} ${WRKSRC}/lib/netbsd-g++/tmake.conf ${WRKSRC}/lib/netbsd-g++/tmake.conf.BAK
${SED} -e 's;@LOCALBASE@;${LOCALBASE};g' \
-e 's;@X11BASE@;${X11BASE};g' \
-e 's;@GLBASE@;${GLBASE};g' \
${WRKSRC}/lib/netbsd-g++/tmake.conf.BAK > ${WRKSRC}/lib/netbsd-g++/tmake.conf
${RM} ${WRKSRC}/lib/netbsd-g++/tmake.conf.BAK
${MV} ${WRKSRC}/bin/progen ${WRKSRC}/bin/progen.BAK
${SED} 's;/usr/bin/perl;${PERL5};g' \
${WRKSRC}/bin/progen.BAK > ${WRKSRC}/bin/progen
${RM} ${WRKSRC}/bin/progen.BAK
# 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 ${PREFIX}/bin/progen
${INSTALL_SCRIPT} ${WRKSRC}/bin/tmake ${PREFIX}/bin/tmake
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tmake
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/tmake
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tmake
${INSTALL_DATA} ${WRKSRC}/example/* ${PREFIX}/share/examples/tmake
${INSTALL_DATA_DIR} ${PREFIX}/lib/tmake/netbsd-g++
${INSTALL_DATA} ${WRKSRC}/lib/netbsd-g++/* ${PREFIX}/lib/tmake/netbsd-g++
${INSTALL_DATA_DIR} ${PREFIX}/lib/tmake/unix
${INSTALL_DATA} ${WRKSRC}/lib/unix/* ${PREFIX}/lib/tmake/unix
.include "../../mk/bsd.pkg.mk"