1995-04-06 08:52:44 +00:00
|
|
|
# New ports collection makefile for: icon
|
|
|
|
# Date created: 05 April 1995
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1995-04-06 08:52:44 +00:00
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1995-04-15 05:44:50 +00:00
|
|
|
#
|
1995-04-06 08:52:44 +00:00
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= icon
|
2005-12-04 14:58:26 +00:00
|
|
|
PORTVERSION= 9.4.3
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= lang
|
2001-09-22 06:07:41 +00:00
|
|
|
MASTER_SITES= http://www.cs.arizona.edu/icon/ftp/packages/unix/
|
|
|
|
DISTNAME= ${PORTNAME}.v${PORTVERSION:S/.//g}src
|
1998-02-20 12:19:49 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
1995-04-15 05:44:50 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= The Icon programming language
|
1995-04-06 08:52:44 +00:00
|
|
|
|
2003-01-27 12:50:15 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
ALL_TARGET= All
|
|
|
|
|
|
|
|
MAN1= icont.1
|
|
|
|
|
2005-12-04 14:58:26 +00:00
|
|
|
ARCH_NAME= bsd
|
2003-01-27 12:50:15 +00:00
|
|
|
ICONDIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
2005-12-04 14:58:26 +00:00
|
|
|
BINS= icont iconx rtt
|
|
|
|
BINXS= colrbook colrpick fontpick palette vib wevents xgamma
|
|
|
|
|
2003-01-27 12:50:15 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
2002-09-16 12:05:28 +00:00
|
|
|
CONFIG_CMD= Configure
|
|
|
|
PLIST_SUB= WITHOUT_X11="@comment "
|
|
|
|
.else
|
2001-09-22 06:07:41 +00:00
|
|
|
USE_XLIB= yes
|
2002-09-18 11:19:32 +00:00
|
|
|
CFLAGS+= -I${X11BASE}/include
|
2002-09-16 12:05:28 +00:00
|
|
|
CONFIG_CMD= X-Configure
|
|
|
|
PLIST_SUB= WITHOUT_X11=
|
|
|
|
.endif
|
2001-09-22 06:07:41 +00:00
|
|
|
|
2003-01-27 12:50:15 +00:00
|
|
|
post-patch:
|
2002-09-18 11:19:32 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|^CC.*|CC=${CC}|g ; \
|
|
|
|
s|^CFLAGS.*|CFLAGS=${CFLAGS}|g ; \
|
2005-12-04 14:58:26 +00:00
|
|
|
s|/usr/X11R6|${X11BASE}|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}| ; \
|
2002-09-18 11:19:32 +00:00
|
|
|
s|^XLIBS.*|XLIBS=-L${X11BASE}/lib -lX11|g" \
|
2005-12-04 14:58:26 +00:00
|
|
|
${WRKSRC}/config/${ARCH_NAME}/Makedefs
|
2002-09-01 16:07:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/opt/icon|${ICONDIR}|g' ${WRKSRC}/ipl/BuildBin
|
2003-01-27 12:50:15 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|ld -Bshareable|\$$CC -shared|g ; \
|
|
|
|
s|-lc||g' ${WRKSRC}/ipl/cfuncs/mklib.sh
|
1995-07-29 09:55:13 +00:00
|
|
|
|
2000-01-14 17:09:03 +00:00
|
|
|
do-configure:
|
2001-09-22 06:07:41 +00:00
|
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
2002-09-16 12:05:28 +00:00
|
|
|
${MAKEFILE} ${MAKE_ARGS} ${CONFIG_CMD} name=${ARCH_NAME})
|
2001-09-22 06:07:41 +00:00
|
|
|
|
|
|
|
do-install:
|
2003-01-27 12:50:15 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/icont.1 ${MANPREFIX}/man/man1
|
2001-09-22 06:07:41 +00:00
|
|
|
@${MKDIR} ${ICONDIR}/bin
|
2005-12-04 14:58:26 +00:00
|
|
|
.for file in ${BINS}
|
2003-01-27 12:50:15 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${ICONDIR}/bin/${file}
|
2001-09-22 06:07:41 +00:00
|
|
|
.endfor
|
2002-09-16 12:05:28 +00:00
|
|
|
.for file in icont iconx
|
2001-09-22 06:07:41 +00:00
|
|
|
@${LN} -sf ${ICONDIR}/bin/${file} ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
2003-01-27 12:50:15 +00:00
|
|
|
@${MKDIR} ${ICONDIR}/lib
|
|
|
|
cd ${WRKSRC}/lib; ${INSTALL_DATA} *.* ${ICONDIR}/lib
|
|
|
|
.if !defined(WITHOUT_X11)
|
2005-12-04 14:58:26 +00:00
|
|
|
.for file in ${BINXS}
|
2003-01-27 12:50:15 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${ICONDIR}/bin/${file}
|
|
|
|
.endfor
|
2002-09-16 12:05:28 +00:00
|
|
|
@${LN} -sf ${ICONDIR}/bin/vib ${PREFIX}/bin/vib
|
|
|
|
.endif
|
2001-09-22 06:07:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-01-27 12:50:15 +00:00
|
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.* ${DOCSDIR}
|
2001-09-22 06:07:41 +00:00
|
|
|
.endif
|
2000-01-14 17:09:03 +00:00
|
|
|
|
2005-12-04 14:58:26 +00:00
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
test: install
|
|
|
|
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} Test)
|
|
|
|
.endif
|
|
|
|
|
1995-04-06 08:52:44 +00:00
|
|
|
.include <bsd.port.mk>
|