2002-03-13 17:15:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2002/03/13 22:15:59 pvalchev Exp $
|
2001-05-05 21:27:52 -04:00
|
|
|
|
|
|
|
COMMENT= "scheme interpreter with Tk interface"
|
1998-02-05 12:17:21 -05:00
|
|
|
|
2000-09-02 10:54:32 -04:00
|
|
|
STK_VERSION= 3.1.1
|
|
|
|
STK_ARCH= $(OPSYS)-$(OPSYS_VER)-$(MACHINE)
|
|
|
|
DISTNAME= STk-${STK_VERSION}
|
1998-02-05 12:17:21 -05:00
|
|
|
CATEGORIES= lang
|
2001-05-05 21:27:52 -04:00
|
|
|
NEED_VERSION= 1.402
|
1999-11-23 23:22:21 -05:00
|
|
|
MASTER_SITES= ftp://kaolin.unice.fr/pub/STk/
|
|
|
|
|
2000-04-28 20:02:51 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-09-02 10:54:32 -04:00
|
|
|
CONFIGURE_STYLE=gnu dest
|
1998-02-05 12:17:21 -05:00
|
|
|
|
1999-11-23 23:22:21 -05:00
|
|
|
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "arc" || \
|
|
|
|
${MACHINE_ARCH} == "pmax" || ${MACHINE_ARCH} == "powerpc")
|
|
|
|
CONFIGURE_ARGS+= --disable-dynload
|
2002-03-13 17:15:59 -05:00
|
|
|
NO_SHARED_LIBS= Yes
|
1999-11-23 23:22:21 -05:00
|
|
|
.endif
|
|
|
|
|
2000-06-04 14:18:02 -04:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && mv config.make config.make.org && \
|
|
|
|
sed -e 's,${PREFIX},$${DESTDIR}${PREFIX},' \
|
|
|
|
<config.make.org >config.make
|
2000-09-02 10:54:32 -04:00
|
|
|
SUBST_VARS=STK_VERSION STK_ARCH
|
1998-02-05 12:17:21 -05:00
|
|
|
|
2000-06-04 14:18:02 -04:00
|
|
|
# fix badlink postinstall-wise
|
|
|
|
post-install:
|
2000-09-02 10:54:32 -04:00
|
|
|
.for i in stk-${STK_VERSION} snow-${STK_VERSION} stk snow
|
2000-06-04 14:18:02 -04:00
|
|
|
k=`readlink ${PREFIX}/bin/$i|sed -e 's,${WRKINST},,'`; echo $$k; ln -sf $$k ${PREFIX}/bin/$i
|
|
|
|
.endfor
|
|
|
|
|
1998-02-05 12:17:21 -05:00
|
|
|
.include <bsd.port.mk>
|