pkgsrc-wip/dmd-bin/Makefile
Michal Pasternak af43a5bc99 Yesterday's developer.slashdot.org becomes today's pkgsrc-wip package!
Initial import of binary package for D Programming Language

DESCR:
D Programming Language

Quotes from webpage of project:

""It seems to me that most of the "new" programming languages fall into one
of two categories: Those from academia with radical new paradigms and those
from large corporations with a focus on RAD and the web. Maybe its time for
a new language born out of practical experience implementing compilers.""
-- Michael

D was conceived in December 1999 as a successor to C and C++, and has grown
and evolved with helpful suggestions and critiques by author'sfriends and
colleagues.  Take a look at the document and decide for yourself - the quick
comparison of D with C, C++, C# and Java at 
http://www.digitalmars.com/d/comparison.html

TODO:
$Id$

license issues (take license.txt from WRKSRC perhaps)

src/ directory - could we use it to compile a native version? I haven't
looked at it too close.

is ${install_data_dir} emul/usr/src needed in Makefile?

sort plist ;)

	-- dotz@irc.pl
2004-04-19 19:06:57 +00:00

55 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2004/04/19 19:06:57 mpasternak Exp $
#
DISTNAME= dmd
PKGNAME= ${DISTNAME}-bin-0.82
CATEGORIES= lang
MASTER_SITES= ftp://ftp.digitalmars.com/
EXTRACT_SUFX= .zip
MAINTAINER= dotz@irc.pl
HOMEPAGE= http://www.digitalmars.com/d/dcompiler.html
COMMENT= The D Programming Language from Digital Mars
LINUX_BINPKG_FMT= plain
HTMLDIR= share/doc/${PKGNAME}
do-install:
#
# binaries
#
for a in dumpobj obj2asm dmd; do \
${INSTALL_PROGRAM} ${WRKSRC}/bin/$$a ${EMULDIR}/usr/bin/$$a; \
done
#
# libraries
#
${INSTALL_DATA} ${WRKSRC}/lib/libphobos.a ${EMULDIR}/usr/lib/libphobos.a
#
# docs
#
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
cd ${WRKSRC}/html/d && ${PAX} -rw -pe [a-z]* ${PREFIX}/${HTMLDIR}
#
# sources
#
${INSTALL_DATA_DIR} ${EMULDIR}/usr/src
cd ${WRKSRC}/src && ${PAX} -rw -pe * ${EMULDIR}/usr/src
#
# dmd.conf
#
${ECHO} "[Environment]" > ${WRKSRC}/dmd.conf
${ECHO} "DFLAGS=-I/usr/src/phobos" >> ${WRKSRC}/dmd.conf
${INSTALL_DATA} ${WRKSRC}/dmd.conf ${EMULDIR}/etc/dmd.conf
.include "../../wip/mk/linuxbin.pkg.mk"
.include "../../mk/bsd.pkg.mk"