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
|
2005-10-11 19:06:10 +00:00
|
|
|
PORTVERSION= 5.5
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
PORTREVISION= 4
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= lang
|
2005-10-11 19:06:10 +00:00
|
|
|
MASTER_SITES= http://www.cs.berkeley.edu/~bh/downloads/
|
|
|
|
DISTNAME= ${PORTNAME}
|
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)
|
2008-06-01 09:50:12 +00:00
|
|
|
USE_EMACS= yes
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
2008-06-01 09:50:12 +00:00
|
|
|
|
2002-05-16 13:59:14 +00:00
|
|
|
.if defined(WITH_FULL_DOCS)
|
|
|
|
.undef NOPORTDOCS
|
2008-06-01 09:50:12 +00:00
|
|
|
BUILD_DEPENDS+= tex:${PORTSDIR}/print/teTeX-base
|
|
|
|
USE_GHOSTSCRIPT=yes
|
2002-05-16 13:59:14 +00:00
|
|
|
.endif
|
1995-04-15 22:55:30 +00:00
|
|
|
|
2005-10-11 19:06:10 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_XORG= x11 ice sm
|
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
|
2005-02-25 22:01:51 +00:00
|
|
|
MAKE_ENV+= LIBLOC="${PREFIX}/lib/logo" BINDIR="${PREFIX}/bin" DOCSDIR="${DOCSDIR}" INFODIR="${PREFIX}/${INFO_PATH}"
|
2002-11-10 17:51:53 +00:00
|
|
|
.endif
|
|
|
|
|
2002-05-16 13:59:14 +00:00
|
|
|
.if defined(WITH_FULL_DOCS)
|
2005-02-25 22:01:51 +00:00
|
|
|
INFO= ucblogo loops
|
2002-05-16 13:59:14 +00:00
|
|
|
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
|
|
|
|
|
2006-02-12 22:31:35 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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 !"
|
|
|
|
@${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 \
|
2005-02-25 22:01:51 +00:00
|
|
|
lib/logo/helpfiles
|
2002-11-10 17:51:53 +00:00
|
|
|
${MKDIR} ${PREFIX}/$d
|
|
|
|
.endfor
|
2005-02-25 22:01:51 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}/csls
|
2002-11-10 17:51:53 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/logo ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/logolib/* ${PREFIX}/lib/logo/logolib/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/helpfiles/* ${PREFIX}/lib/logo/helpfiles/
|
2005-02-25 22:01:51 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/csls/* ${EXAMPLESDIR}/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)
|
2005-02-25 22:01:51 +00:00
|
|
|
cd ${WRKSRC}/docs/ ;${SETENV} ${MAKE_ENV} ${GMAKE} install
|
2002-11-10 17:51:53 +00:00
|
|
|
.endif
|
|
|
|
.ifdef defined(EMACS_LOGO_MODE)
|
|
|
|
cd ${WRKSRC}/emacs; ${SETENV} ${MAKE_ENV} ${GMAKE} install-emacs
|
|
|
|
.endif
|
2006-02-12 22:31:35 +00:00
|
|
|
.include <bsd.port.post.mk>
|