openbsd-ports/lang/STk/Makefile

37 lines
1001 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.11 2001/10/28 13:05:47 espie Exp $
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
NEED_VERSION= 1.402
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
.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>