4c8382aec0
their files via a custom do-install target.
48 lines
1.7 KiB
Makefile
48 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2008/03/03 17:45:35 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= gentle-97
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://gentle.compilertools.net/
|
|
|
|
MAINTAINER= MarkoSchuetz@web.de
|
|
HOMEPAGE= http://gentle.compilertools.net/
|
|
COMMENT= Gentle Compiler Construction System
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LIBTOOL= yes
|
|
INSTALLATION_DIRS= bin lib
|
|
|
|
do-build:
|
|
(cd ${WRKSRC}/gentle ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)
|
|
(cd ${WRKSRC}/lib ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)
|
|
(cd ${WRKSRC}/reflex ; LIBTOOL=${LOCALBASE}/bin/libtool ./build)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gentle/gentle ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_LIB} ${WRKSRC}/gentle/grts.o ${DESTDIR}${PREFIX}/lib
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/lib/libgentle.la \
|
|
${DESTDIR}${PREFIX}/lib
|
|
${LIBTOOL} --mode=finish ${DESTDIR}${PREFIX}/lib
|
|
${INSTALL_PROGRAM} ${WRKSRC}/reflex/reflex ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/html/gentle/html
|
|
(for i in ${WRKSRC}/html/* ; do \
|
|
${INSTALL_DATA} $$i \
|
|
${DESTDIR}${PREFIX}/share/doc/html/gentle/html ; \
|
|
done)
|
|
${INSTALL_DATA} ${WRKSRC}/BOOK.html \
|
|
${DESTDIR}${PREFIX}/share/doc/html/gentle
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/gentle
|
|
${INSTALL_DATA} ${WRKSRC}/BOOK.ps ${DESTDIR}${PREFIX}/share/doc/gentle
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/gentle
|
|
(for i in calc flat micro nested polish virtual ; do \
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/gentle/$$i ; \
|
|
for j in ${WRKSRC}/examples/$$i/* ; do \
|
|
${INSTALL_DATA} $$j ${DESTDIR}${PREFIX}/share/examples/gentle/$$i ; \
|
|
done ; \
|
|
done)
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README \
|
|
${DESTDIR}${PREFIX}/share/examples/gentle
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|