openbsd-ports/lang/STk/Makefile

40 lines
1018 B
Makefile
Raw Normal View History

2002-10-27 09:12:47 -05:00
# $OpenBSD: Makefile,v 1.13 2002/10/27 14:12:47 naddy Exp $
COMMENT= "scheme interpreter with Tk interface"
1998-02-05 12:17:21 -05:00
2002-10-27 09:12:47 -05:00
STK_VERSION= 3.1.1
STK_ARCH= $(OPSYS)-$(OPSYS_VER)-$(MACHINE)
2000-09-02 10:54:32 -04:00
DISTNAME= STk-${STK_VERSION}
1998-02-05 12:17:21 -05:00
CATEGORIES= lang
2002-10-27 09:12:47 -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
.if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "arc" || \
${MACHINE_ARCH} == "pmax" || ${MACHINE_ARCH} == "powerpc")
CONFIGURE_ARGS+= --disable-dynload
NO_SHARED_LIBS= Yes
.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
2002-10-27 09:12:47 -05:00
NO_REGRESS= Yes
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>