20d64e25ec
While here, patch a couple 64-bit issues and add destdir support. The latter involved making some absolute symlinks relative, which changes the binary package, and someone might have built this revision with a version of bash accepting the invalid script syntax, so PKGREVISION++.
33 lines
1,011 B
Makefile
33 lines
1,011 B
Makefile
# $NetBSD: Makefile,v 1.19 2008/09/07 00:23:57 dholland Exp $
|
|
|
|
DISTNAME= STk-4.0.1
|
|
PKGREVISION= 2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ftp://kaolin.unice.fr/pub/STk/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://kaolin.unice.fr/STk/
|
|
COMMENT= Scheme interpreter with full access to the Tk graphical package
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
OSVERSION_SPECIFIC= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
MAKE_ENV+= X11_LDFLAGS=${X11_LDFLAGS:Q}
|
|
|
|
# Respin these symlinks so they aren't absolute.
|
|
STKVER=${DISTNAME:S/STk-//}
|
|
STKDIR=lib/stk/${STKVER}/${OPSYS}-${OS_VERSION}-${MACHINE_ARCH}
|
|
post-install:
|
|
${RM} -f ${DESTDIR}${PREFIX}/bin/snow-${STKVER}
|
|
${RM} -f ${DESTDIR}${PREFIX}/bin/stk-${STKVER}
|
|
${LN} -s ../${STKDIR}/snow ${DESTDIR}${PREFIX}/bin/snow-${STKVER}
|
|
${LN} -s ../${STKDIR}/stk ${DESTDIR}${PREFIX}/bin/stk-${STKVER}
|
|
|
|
.include "../../x11/libSM/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|