Wed May 23 03:35:28 2012 UTC ()
This will actually only build for i386 and x86_64 on NetBSD; for other
values of MACHINE_ARCH, set PKG_FAIL_REASON instead of going kersplut.

Making it build for a wider range of platforms should be straightforward,
but probably needs to be done by someone who actually can test-build on
those platforms.


(dholland)
diff -r1.17 -r1.18 pkgsrc/devel/teem/Makefile

cvs diff -r1.17 -r1.18 pkgsrc/devel/teem/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/teem/Makefile 2011/01/13 13:37:28 1.17
+++ pkgsrc/devel/teem/Makefile 2012/05/23 03:35:27 1.18
@@ -1,39 +1,41 @@ @@ -1,39 +1,41 @@
1# $NetBSD: Makefile,v 1.17 2011/01/13 13:37:28 wiz Exp $ 1# $NetBSD: Makefile,v 1.18 2012/05/23 03:35:27 dholland Exp $
2# 2#
3 3
4DISTNAME= teem-1.8.0-src 4DISTNAME= teem-1.8.0-src
5PKGNAME= ${DISTNAME:C/-src//} 5PKGNAME= ${DISTNAME:C/-src//}
6PKGREVISION= 4 6PKGREVISION= 4
7CATEGORIES= devel 7CATEGORIES= devel
8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=teem/} 8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=teem/}
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://teem.sourceforge.net/ 11HOMEPAGE= http://teem.sourceforge.net/
12COMMENT= Libraries for manipulation of Structured Scientific Data 12COMMENT= Libraries for manipulation of Structured Scientific Data
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16USE_TOOLS+= gmake pax 16USE_TOOLS+= gmake pax
17 17
18.include "../../mk/bsd.prefs.mk" 18.include "../../mk/bsd.prefs.mk"
19 19
20.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly" 20.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
21. if ${MACHINE_ARCH} == "i386" 21. if ${MACHINE_ARCH} == "i386"
22NARCH=32 22NARCH=32
23LARCH=32 23LARCH=32
24. elif ${MACHINE_ARCH} == "x86_64" 24. elif ${MACHINE_ARCH} == "x86_64"
25NARCH=64 25NARCH=64
26LARCH=amd64 26LARCH=amd64
 27. else
 28PKG_FAIL_REASON+= "Need configuration rules for ${MACHINE_ARCH}."
27. endif 29. endif
28 30
29TEEM_ARCH=netbsd.${NARCH} 31TEEM_ARCH=netbsd.${NARCH}
30 32
31do-configure: 33do-configure:
32 cd ${WRKSRC} && ${CP} -pR linux.${LARCH} ${TEEM_ARCH} 34 cd ${WRKSRC} && ${CP} -pR linux.${LARCH} ${TEEM_ARCH}
33 35
34.elif ${OPSYS} == "Linux" && ${MACHINE_ARCH} == "i386" 36.elif ${OPSYS} == "Linux" && ${MACHINE_ARCH} == "i386"
35TEEM_ARCH=linux.32 37TEEM_ARCH=linux.32
36.else 38.else
37PKG_FAIL_REASON+= "Support for this platform has not yet been added." 39PKG_FAIL_REASON+= "Support for this platform has not yet been added."
38.endif 40.endif
39 41