summaryrefslogtreecommitdiff
path: root/x11/xforms/Makefile
blob: 0ddd3eb8f26d68149c184b1f947ad0a136d1c769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# $NetBSD: Makefile,v 1.29 2000/08/23 23:14:33 tron Exp $
#

DISTNAME=       bxform-088
PKGNAME=	xforms-0.88
WRKSRC=		${WRKDIR}/xforms
CATEGORIES=	x11
MASTER_SITES=	ftp://ncmir.ucsd.edu/pub/xforms/${ARCH_SUBDIR}/
EXTRACT_SUFX=	.tgz

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://world.std.com/~xforms/

.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

DIST_SUBDIR=		xforms-${MACHINE_ARCH}

ONLY_FOR_PLATFORM=	NetBSD-*-alpha NetBSD-*-arm32 NetBSD-*-i386 NetBSD-*-m68k \
			NetBSD-*-mipsel NetBSD-*-ns32k NetBSD-*-sparc NetBSD-*-powerpc

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH} == "i386" && ${OBJECT_FMT} == "ELF"
DISTNAME=	bxform-088-ELF
.endif
.if ${MACHINE_ARCH} == "sparc" && ${OBJECT_FMT} == "ELF"
DISTNAME=	bxform-088-ELF
.endif

## Define OBJMACHINE so WRKDIR is defined to be ${MACHINE_ARCH}-specific.
OBJMACHINE=	YES

USE_X11BASE=	YES
USE_XPM=	YES
USE_LIBTOOL=	YES
MAKEFILE=	${FILESDIR}/Makefile
PLIST_SRC=	${PKGDIR}/PLIST.mi ${PKGDIR}/PLIST.shlib

# When the XForms API changes and breaks binary-compatibility with the
# previous version, increment the MAJOR by 1 and reset the MINOR to 0.
#
SHLIB_MAJOR=	0
SHLIB_MINOR=	88

MAKE_ENV+=	SHLIB_MAJOR="${SHLIB_MAJOR}" SHLIB_MINOR="${SHLIB_MINOR}"

# XXX ELF linker tries to resolve libGL.so symbols when linking with
# XXX shared libxforms, so for now, remove the shared lib.
.if ${OBJECT_FMT} == "ELF"
PLIST_SRC=	${PKGDIR}/PLIST.mi

post-install:
	${RM} -f \
		${PREFIX}/lib/libforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
		${PREFIX}/lib/libforms.so.${SHLIB_MAJOR} \
		${PREFIX}/lib/libforms.so \
		${PREFIX}/lib/libxforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
		${PREFIX}/lib/libxforms.so.${SHLIB_MAJOR} \
		${PREFIX}/lib/libxforms.so
.endif

.include "../../mk/bsd.pkg.mk"