pkgsrc/x11/xforms/Makefile
jwise e802c1301b Make xforms use the (newly-available) i386-ELF binaries.
Also, use IGNORE= instead of a NOT_FOR_PLATFORM re-assignment
to exclude ELFin sparcs
1999-09-14 03:16:23 +00:00

56 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.17 1999/09/14 03:16:23 jwise Exp $
#
# for OBJECT_FORMAT, LOWER_OPSYS, MACHINE_PLATFORM, ...
.include "../../mk/bsd.prefs.mk"
.if ((${LOWER_OPSYS} == "netbsd") && (${MACHINE_ARCH} == "i386") && (${OBJECT_FMT} == "ELF"))
DISTNAME= bxform-088-ELF
.else
DISTNAME= bxform-088
.endif
PKGNAME= xforms-0.88
WRKSRC= ${WRKDIR}/xforms
CATEGORIES= x11
MASTER_SITES= ftp://bragg.phys.uwm.edu/pub/xforms/${ARCH_SUBDIR}/
.if (${MACHINE_ARCH} == "arm32")
ARCH_SUBDIR= netBSD-arm
.elif (${MACHINE_ARCH} == "i386")
ARCH_SUBDIR= netBSD
.elif (${MACHINE_ARCH} == "ns32k")
ARCH_SUBDIR= netBSD-pc532
.else
ARCH_SUBDIR= netBSD-${MACHINE_ARCH}
.endif
EXTRACT_SUFX= .tgz
MAINTAINER= lamj@stat.cmu.edu
HOMEPAGE= http://bragg.phys.uwm.edu/xforms/
ONLY_FOR_PLATFORM= *-*-arm32 *-*-i386 *-*-m68k *-*-ns32k *-*-sparc
# XXX no ELF objects for sparc on NetBSD
.if (${LOWER_OPSYS} == "netbsd") && (${MACHINE_ARCH} == "sparc")
.if (${OBJECT_FMT} == "ELF")
IGNORE="is not available for ${MACHINE_PLATFORE} using the ELF object format."
.endif
.endif
DIST_SUBDIR= xforms-${MACHINE_ARCH}
## Define OBJMACHINE so WRKDIR is defined to be ${MACHINE_ARCH}-specific.
OBJMACHINE= yes
NO_BUILD= yes
USE_X11BASE= yes
post-patch:
${MV} ${WRKSRC}/mkconfig.h ${WRKSRC}/mkconfig.h.orig
${CP} ${FILESDIR}/mkconfig.h ${WRKSRC}
post-install:
(cd ${PREFIX}/lib; ${LN} -fs libforms.a libxforms.a)
(cd ${PREFIX}/lib; ${LN} -fs libforms.so.0.88 libxforms.so.0.88)
.include "../../mk/bsd.pkg.mk"