openbsd-ports/lang/STk/Makefile

38 lines
1.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.12 2002/03/13 22:15:59 pvalchev 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
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
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>