1994-10-22 23:05:49 +00:00
|
|
|
# New ports collection makefile for: logo
|
|
|
|
# Date created: 22 October 1994
|
|
|
|
# Whom: jkh
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1994-10-22 23:05:49 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= ucblogo
|
2002-11-10 17:51:53 +00:00
|
|
|
PORTVERSION= 5.2
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= lang
|
2004-04-10 17:26:55 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU} \
|
2002-09-29 22:07:57 +00:00
|
|
|
ftp://ftp.cs.berkeley.edu/pub/ucblogo/
|
|
|
|
MASTER_SITE_SUBDIR=non-gnu/ucblogo
|
2002-05-16 13:59:14 +00:00
|
|
|
|
2002-11-10 17:51:53 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= Brian Harvey's logo language interpreter
|
2002-10-19 21:36:11 +00:00
|
|
|
|
2002-05-16 13:59:14 +00:00
|
|
|
.if defined(EMACS_LOGO_MODE)
|
2004-04-10 17:26:55 +00:00
|
|
|
BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs19
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_FULL_DOCS)
|
|
|
|
.undef NOPORTDOCS
|
2003-08-31 00:43:52 +00:00
|
|
|
|
2004-04-10 17:26:55 +00:00
|
|
|
BUILD_DEPENDS+= tex:${PORTSDIR}/print/teTeX \
|
2004-01-20 16:30:09 +00:00
|
|
|
ps2pdf:${PORTSDIR}/${GHOSTSCRIPT_PORT}
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
1995-04-15 22:55:30 +00:00
|
|
|
|
1998-11-28 05:39:01 +00:00
|
|
|
USE_XLIB= yes
|
1994-10-22 23:05:49 +00:00
|
|
|
MAKEFILE= makefile
|
1995-02-07 03:07:02 +00:00
|
|
|
HAS_CONFIGURE= yes
|
1994-10-22 23:05:49 +00:00
|
|
|
|
2002-05-16 13:59:14 +00:00
|
|
|
ALL_TARGET= all
|
|
|
|
|
2002-11-10 17:51:53 +00:00
|
|
|
.if defined(WITH_FULL_DOCS) || defined(EMACS_LOGO_MODE)
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV+= LIBLOC="${PREFIX}/lib/logo" BINDIR="${PREFIX}/bin"
|
|
|
|
.endif
|
|
|
|
|
2002-05-16 13:59:14 +00:00
|
|
|
.if defined(WITH_FULL_DOCS)
|
|
|
|
ALL_TARGET+= docs
|
|
|
|
PLIST_SUB+= WITH_FULL_DOCS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_FULL_DOCS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(EMACS_LOGO_MODE)
|
|
|
|
ALL_TARGET+= logo-mode
|
|
|
|
PLIST_SUB+= EMACS_LOGO_MODE=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EMACS_LOGO_MODE="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 00:50:09 +00:00
|
|
|
pre-everything::
|
2002-05-16 13:59:14 +00:00
|
|
|
.if !defined(EMACS_LOGO_MODE)
|
2003-09-27 00:50:09 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Define EMACS_LOGO_MODE to build the emacs logo mode"
|
|
|
|
@${ECHO_MSG} ""
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(WITH_FULL_DOCS)
|
2003-09-27 00:50:09 +00:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " Define WITH_FULL_DOCS to build ps, pdf and html docs"
|
|
|
|
@${ECHO_MSG} " This requires teTeX and ghostscript !"
|
2003-08-31 00:43:52 +00:00
|
|
|
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
|
2003-09-27 00:50:09 +00:00
|
|
|
@${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
|
|
|
|
@${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
|
2003-08-31 00:43:52 +00:00
|
|
|
.endif
|
2003-09-27 00:50:09 +00:00
|
|
|
@${ECHO_MSG} ""
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
|
|
|
|
2002-11-10 17:51:53 +00:00
|
|
|
do-install:
|
|
|
|
.for d in lib/logo lib/logo/logolib \
|
2003-07-03 14:19:01 +00:00
|
|
|
lib/logo/helpfiles share/examples/logo/csls
|
2002-11-10 17:51:53 +00:00
|
|
|
${MKDIR} ${PREFIX}/$d
|
|
|
|
.endfor
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/logo ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/logolib/* ${PREFIX}/lib/logo/logolib/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/helpfiles/* ${PREFIX}/lib/logo/helpfiles/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/csls/* ${PREFIX}/share/examples/logo/csls/
|
2003-07-03 14:19:01 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/usermanual ${DOCSDIR}
|
2002-11-10 17:51:53 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_FULL_DOCS)
|
|
|
|
cd ${WRKSRC}/emacs/ ;${SETENV} ${MAKE_ENV} ${GMAKE} install-docs
|
|
|
|
.endif
|
|
|
|
.ifdef defined(EMACS_LOGO_MODE)
|
|
|
|
cd ${WRKSRC}/emacs; ${SETENV} ${MAKE_ENV} ${GMAKE} install-emacs
|
|
|
|
.endif
|
1994-10-22 23:05:49 +00:00
|
|
|
.include <bsd.port.mk>
|