blob: 7decce2cf72e0ced1f4e2eed8926df227f1e0883 (
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
71
72
73
74
75
|
# $NetBSD: Makefile,v 1.36 2001/07/03 20:59:05 zuntum Exp $
#
DISTNAME= bxform-088
PKGNAME= xforms-0.88nb1
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/
COMMENT= Graphical user interface toolkit for X Window System
LICENSE= fee-based-commercial-use
.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_LIBTOOL= YES
MAKEFILE= ${FILESDIR}/Makefile
PLIST_SRC= ${PKGDIR}/PLIST.mi ${PKGDIR}/PLIST.shlib
CHECK_SHLIBS= NO # fdesigner doesn't find libX11 on i386
# we don't have sources, so don't run this test
# 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 Run-time link editor tries to resolve libGL.so symbols when linking
# XXX with shared libxforms, but all the packages that requre xforms seem
# XXX to work OK without -lGL, so for now, remove the shared lib.
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
.include "../../graphics/xpm/buildlink.mk"
.include "../../mk/bsd.pkg.mk"
|