From 77e0b08dcb4f80103888c36725cdbc31b4e062c8 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 4 Jun 2000 18:18:02 +0000 Subject: [PATCH] fake --- lang/STk/Makefile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lang/STk/Makefile b/lang/STk/Makefile index 7fd9e019506..2fe6cda2868 100644 --- a/lang/STk/Makefile +++ b/lang/STk/Makefile @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile,v 1.7 2000/05/05 18:00:22 turan Exp $ +# $OpenBSD: Makefile,v 1.8 2000/06/04 18:18:02 espie Exp $ VER= 3.1.1 DISTNAME= STk-${VER} CATEGORIES= lang -FAKE=No MASTER_SITES= ftp://kaolin.unice.fr/pub/STk/ MAINTAINER= ports@openbsd.org @@ -13,7 +12,8 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -GNU_CONFIGURE= yes +HAS_CONFIGURE= Yes +CONFIGURE_ARGS=--prefix='$${DESTDIR}${PREFIX}' --sysconfdir='$${DESTDIR}/etc' .if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "arc" || \ ${MACHINE_ARCH} == "pmax" || ${MACHINE_ARCH} == "powerpc") @@ -22,12 +22,22 @@ CONFIGURE_ARGS+= --disable-dynload PLIST= ${WRKDIR}/PLIST +post-build: + @cd ${WRKSRC} && mv config.make config.make.org && \ + sed -e 's,${PREFIX},$${DESTDIR}${PREFIX},' \ + config.make pre-install: @rm -f ${PLIST} @sed -e's:%%STK_VERSION%%:${VER}:' \ -e's:%%STK_ARCH%%:$(OPSYS)-$(OPSYS_VER)-$(MACHINE):' \ ${PLIST_ORIG} > ${PLIST} +# fix badlink postinstall-wise +post-install: +.for i in stk-${VER} snow-${VER} stk snow + k=`readlink ${PREFIX}/bin/$i|sed -e 's,${WRKINST},,'`; echo $$k; ln -sf $$k ${PREFIX}/bin/$i +.endfor + .include .if (defined(NO_SHARED_LIBS) && exists(${PKGDIR}/PLIST.template.noshared))