2006-04-17 15:45:57 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2006/04/17 13:46:21 wiz Exp $
|
2005-04-01 20:35:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= teem-1.8.0-src
|
|
|
|
PKGNAME= ${DISTNAME:C/-src//}
|
2006-04-17 15:45:57 +02:00
|
|
|
PKGREVISION= 2
|
2005-04-01 20:35:35 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=teem/}
|
|
|
|
|
|
|
|
MAINTAINER= jschauma@NetBSD.org
|
|
|
|
HOMEPAGE= http://teem.sourceforge.net/
|
|
|
|
COMMENT= Libraries for manipulation of Structured Scientific Data
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2005-04-01 20:35:35 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-01-09 17:32:11 +01:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
|
2005-04-05 15:16:50 +02:00
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
|
|
NARCH=32
|
|
|
|
LARCH=32
|
|
|
|
. elif ${MACHINE_ARCH} == "x86_64"
|
|
|
|
NARCH=64
|
|
|
|
LARCH=amd64
|
|
|
|
. endif
|
|
|
|
|
|
|
|
TEEM_ARCH=netbsd.${NARCH}
|
2005-04-01 20:35:35 +02:00
|
|
|
|
|
|
|
do-configure:
|
2005-04-05 15:16:50 +02:00
|
|
|
cd ${WRKSRC} && ${CP} -pR linux.${LARCH} ${TEEM_ARCH}
|
2005-04-01 20:35:35 +02:00
|
|
|
|
|
|
|
.elif ${OPSYS} == "Linux" && ${MACHINE_ARCH} == "i386"
|
|
|
|
TEEM_ARCH=linux.32
|
2005-04-06 20:58:17 +02:00
|
|
|
.else
|
2005-12-05 21:49:47 +01:00
|
|
|
PKG_FAIL_REASON+= "Support for this platform has not yet been added."
|
2005-04-01 20:35:35 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= TEEM_ARCH=${TEEM_ARCH:Q} \
|
2005-06-16 04:41:21 +02:00
|
|
|
TEEM_PNG=1 TEEM_BZIP2=1 TEEM_ZLIB=1 TEEM_PTHREAD=1 \
|
|
|
|
TEEM_PNG_IPATH="-I${BUILDLINK_PREFIX.png}/include" \
|
|
|
|
TEEM_PNG_LPATH="-L${BUILDLINK_PREFIX.png}/lib" \
|
|
|
|
TEEM_BZIP2_IPATH="-I${BUILDLINK_PREFIX.bzip2}/include" \
|
|
|
|
TEEM_BZIP2_LPATH="-L${BUILDLINK_PREFIX.bzip2}/lib" \
|
|
|
|
TEEM_ZLIB_IPATH="-I${BUILDLINK_PREFIX.zlib}/include" \
|
|
|
|
TEEM_ZLIB_LPATH="-L${BUILDLINK_PREFIX.zlib}/lib" \
|
|
|
|
TEEM_PTHREAD_IPATH="-I${BUILDLINK_PREFIX.pthread}/include" \
|
|
|
|
TEEM_PTHREAD_LPATH="-L${BUILDLINK_PREFIX.pthread}/lib"
|
2005-04-01 20:35:35 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin include lib
|
|
|
|
|
2005-04-01 20:35:35 +02:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/src && ${MAKE_ENV} ${GMAKE}
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${RM} -f ${WRKSRC}/${TEEM_ARCH}/bin/.empty \
|
|
|
|
${WRKSRC}/${TEEM_ARCH}/lib/.empty
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/include && ${PAX} -rw . ${PREFIX}/include/
|
|
|
|
cd ${WRKSRC}/${TEEM_ARCH}/bin && ${PAX} -rw . ${PREFIX}/bin/
|
|
|
|
cd ${WRKSRC}/${TEEM_ARCH}/lib && ${PAX} -rw . ${PREFIX}/lib/
|
|
|
|
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|