pkgsrc - initial commit
[pkgsrc.git] / archivers / sapcar / Makefile
1 # $NetBSD: Makefile,v 1.2 2009/05/19 08:59:00 wiz Exp $
2
3 PKGNAME=                sapcar-7.00
4 CATEGORIES=             archivers
5 EXTRACT_SUFX=           # empty
6
7 PKG_DESTDIR_SUPPORT=    user-destdir
8
9 .include "../../emulators/sap/Makefile.common"
10
11 .if ${SAP_OPSYS} == "linux"
12 .if ${SAP_ARCH} == "x86_64"
13 DISTNAME=               SAPCAR_0-10003690.exe
14 .elif ${SAP_ARCH} == "i386"
15 DISTNAME=               SAPCAR_0-10003688.exe
16 .elif ${SAP_ARCH} == "powerpc64"
17 DISTNAME=               SAPCAR_0-10003687.exe
18 .elif ${SAP_ARCH} == "ia64"
19 DISTNAME=               SAPCAR_0-10003689.exe
20 .else
21 BROKEN=         Architecture ${MACHINE_ARCH} on this platform not supported
22 .endif
23 .elif ${SAP_OPSYS} == "aix"
24 .if ${SAP_ARCH} == "powerpc"
25 DISTNAME=               SAPCAR_0-10003699.exe
26 .else
27 BROKEN=         Architecture ${MACHINE_ARCH} on this platform not supported
28 .endif
29 .elif ${SAP_OPSYS} == "hpux"
30 .if ${SAP_ARCH} == "ia64"
31 DISTNAME=               SAPCAR_0-10003682.exe
32 .elif ${SAP_ARCH} == "hppa"
33 DISTNAME=               SAPCAR_0-10003683.exe
34 .else
35 BROKEN=         Architecture ${MACHINE_ARCH} on this platform not supported
36 .endif
37 .elif ${SAP_OPSYS} == "solaris"
38 .if ${SAP_ARCH} == "x86_64"
39 DISTNAME=               SAPCAR_0-10003701.exe
40 .elif ${SAP_ARCH} == "sparc64"
41 DISTNAME=               SAPCAR_0-10003702.exe
42 .else
43 BROKEN=         Architecture ${MACHINE_ARCH} on this platform not supported
44 .endif
45 .elif ${SAP_OPSYS} == "interix"
46 # Note: only native windows and interix is supported here - maybe MKS Toolkit
47 # Cygwin must fail!
48 .if ${SAP_ARCH} == "x86_64"
49 DISTNAME=               SAPCAR_0-10003696.exe
50 .elif ${SAP_ARCH} == "i586"
51 DISTNAME=               SAPCAR_0-10003694.exe
52 .elif ${SAP_ARCH} == "ia64"
53 DISTNAME=               SAPCAR_0-10003695.exe
54 .else
55 BROKEN=         Architecture ${MACHINE_ARCH} on platform ${OPSYS} not supported
56 .endif
57 .else
58 BROKEN=         Plattform ${OPSYS} not supported
59 .endif
60
61 MAINTAINER=             pkgsrc-users@NetBSD.org
62 COMMENT=                SAP archiver
63 LICENSE=                sap-license
64
65 RESTRICTED=             Only unmodified original package can be distributed
66 NO_BIN_ON_CDROM=        ${RESTRICTED}
67 NO_BIN_ON_FTP=          ${RESTRICTED}
68
69 WRKSRC=                 ${WRKDIR}/SAPCAR
70 BUILD_DIRS=             # empty
71
72 NO_CONFIGURE=           yes
73 NO_BUILD=               yes
74
75 do-extract:
76         ${MKDIR} ${WRKSRC:Q}
77 .for f in ${DISTNAME}
78         ${CP} ${_DISTDIR:Q}/${f:Q} ${WRKSRC:Q}/${f:Q}
79 .endfor
80
81 do-install:
82         ${INSTALL_PROGRAM} ${WRKSRC:Q}/${DISTNAME} ${PREFIX:Q}/bin/SAPCAR
83
84 .include "../../mk/bsd.pkg.mk"