Annotation of pkgsrc/parallel/sge/Makefile, Revision 1.26
1.26 ! markd 1: # $NetBSD: Makefile,v 1.25 2007/07/04 20:54:55 jlam Exp $
1.1 dmcmahil 2: #
3:
1.26 ! markd 4: PKGNAME= sge-6.0.11
! 5: DISTNAME= sge-V60u11_TAG-src
1.1 dmcmahil 6: CATEGORIES= parallel sysutils
1.26 ! markd 7: MASTER_SITES= http://gridengine.sunsource.net/files/documents/7/142/
1.1 dmcmahil 8:
1.18 jlam 9: MAINTAINER= pkgsrc-users@NetBSD.org
1.1 dmcmahil 10: HOMEPAGE= http://gridengine.sunsource.net/
11: COMMENT= Sun Grid Engine distributed resource management system
1.21 markd 12:
1.1 dmcmahil 13: BUILD_DEPENDS+= {standalone-tcsh,tcsh}-[0-9]*:../../shells/tcsh
14:
15: GNU_CONFIGURE= YES
1.11 jlam 16: USE_TOOLS+= gmake perl:run
1.1 dmcmahil 17:
1.20 markd 18: WRKSRC= ${WRKDIR}/gridengine
1.1 dmcmahil 19: CFLAGS+= -D${UPPER_OPSYS}
20: CONFIGURE_ENV+= REMOTE=sge
1.13 rillig 21: CONFIGURE_ENV+= CFLAGS=${CFLAGS:M*:Q}
1.26 ! markd 22: CONFIGURE_ARGS+= --with-sge=${SGE_BUILDARCH:Q}
1.13 rillig 23: PLIST_SUBST+= SGE_ARCH=${SGE_ARCH:Q}
1.1 dmcmahil 24: MESSAGE_SUBST+= SGE_ROOT=${SGE_ROOT}
1.13 rillig 25: MAKE_ENV+= PERL5=${PERL5:Q}
1.1 dmcmahil 26:
27: SGE_USER?= sgeadmin
28: SGE_GROUP?= sgeadmin
29: PKG_GROUPS= ${SGE_GROUP}
1.20 markd 30: PKG_USERS= ${SGE_USER}:${SGE_GROUP}::Sun\ Grid\ Engine\ Administrator
1.25 jlam 31: PKG_GROUPS_VARS+= SGE_GROUP
32: PKG_USERS_VARS+= SGE_USER
1.1 dmcmahil 33:
34: EVAL_PREFIX+= PKGSRC_SSL_PREFIX=openssl
35:
36: AIMK= ${SETENV} ${MAKE_ENV} tcsh -fb ${WRKSRC}/source/aimk
37:
1.3 kristerw 38: CONFIG_GUESS_OVERRIDE= source/3rdparty/qmake/config.guess \
39: source/3rdparty/qtcsh/config.guess
40: CONFIG_SUB_OVERRIDE= source/3rdparty/qmake/config.sub \
41: source/3rdparty/qtcsh/config.sub
42:
1.1 dmcmahil 43: .include "../../mk/bsd.prefs.mk"
44:
45: # SGE_ARCH should match the putput of ${WRKSRC}/source/dist/util/arch
46: # SGE_BUILDARCH should match whats in ${WRKSRC}/source/aimk
1.7 jlam 47: UPPER_OPSYS_cmd= ${ECHO} "${OPSYS}" | ${TR} a-z A-Z
48: UPPER_OPSYS= ${UPPER_OPSYS_cmd:sh}
1.1 dmcmahil 49:
50: .if ${OPSYS} == "NetBSD"
1.26 ! markd 51: AIMK+= -DFD_SETSIZE=2048
1.1 dmcmahil 52: SGE_ARCH= nbsd-${MACHINE_ARCH}
1.7 jlam 53: SGE_BUILDARCH_cmd= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
1.1 dmcmahil 54: .elif ${OPSYS} == "FreeBSD"
55: SGE_ARCH= fbsd-${MACHINE_ARCH}
1.7 jlam 56: SGE_BUILDARCH_cmd= ${ECHO} "${OPSYS}_${MACHINE_ARCH}" | ${TR} a-z A-Z
1.1 dmcmahil 57: .elif ${OPSYS} == "SunOS"
58: . if ${MACHINE_ARCH} == "i386"
59: SGE_ARCH= solaris86
60: . else
1.2 grant 61: _ISAINFO!= isainfo
62: . if !empty(_ISAINFO:Msparcv9)
63: SGE_ARCH= solaris64
64: . else
1.1 dmcmahil 65: SGE_ARCH= solaris
1.2 grant 66: . endif
1.1 dmcmahil 67: . endif
1.7 jlam 68: SGE_BUILDARCH_cmd= ${ECHO} "${SGE_ARCH}" | ${TR} a-z A-Z
1.1 dmcmahil 69: .elif ${OPSYS} == "Darwin"
70: SGE_ARCH= darwin
71: SGE_BUILDARCH= DARWIN
72: .else
1.13 rillig 73: PKG_FAIL_REASON+= "SGE_ARCH and SGE_BUILDARCH need to be configured for your OS"
1.1 dmcmahil 74: .endif
1.7 jlam 75: SGE_BUILDARCH?= ${SGE_BUILDARCH_cmd:sh}
1.1 dmcmahil 76:
77: LDFLAGS+= -R${SGE_ROOT}/lib/${SGE_ARCH}
78: BUILDLINK_PASSTHRU_RPATHDIRS+= ${SGE_ROOT}/lib/${SGE_ARCH}
79:
80: SGE_ROOT= ${PREFIX}/sge
81:
1.10 jlam 82: INSTALLATION_DIRS= bin
83:
1.1 dmcmahil 84: post-patch:
85: @if [ "`${WRKSRC}/source/dist/util/arch`" != "${SGE_ARCH}" ]; then \
86: ${ECHO} "ERROR: SGE_ARCH as set in the pkgsrc Makefile," ;\
87: ${ECHO} " ${SGE_ARCH}, does not agree with that returned by" ; \
88: ${ECHO} " ${WRKSRC}/source/dist/util/arch," ; \
89: ${ECHO} " `${WRKSRC}/source/dist/util/arch`" ; \
90: ${FALSE} ; \
91: fi
92:
93: pre-configure:
94: .for __tmp__ in source/dist/util/arch_variables source/scripts/distinst.site source/aimk.site
95: ${MV} ${WRKSRC}/${__tmp__} ${WRKSRC}/${__tmp__}.bak
96: ${SED} -e 's;@rcd_dir@;${RCD_SCRIPTS_DIR};g' -e 's;@ssl_prefix@;${SSL_PREFIX};g' \
1.20 markd 97: -e 's;@db4_prefix@;${BUILDLINK_PREFIX.db4};g' \
1.1 dmcmahil 98: -e 's;@perl5@;${PERL5};g' ${WRKSRC}/${__tmp__}.bak > \
99: ${WRKSRC}/${__tmp__}
100: ${RM} ${WRKSRC}/${__tmp__}.bak
101: .endfor
102:
103: do-configure:
104: .for __prog__ in qmake qtcsh
105: ${MKDIR} ${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH}
106: cd ${WRKSRC}/source/3rdparty/${__prog__}/${SGE_BUILDARCH} && \
107: ${SETENV} ${CONFIGURE_ENV} \
108: SGE_ARCH=`${WRKSRC}/source/dist/util/arch` \
109: ../configure ${CONFIGURE_ARGS} --srcdir=..
110: .endfor
111:
112: do-build:
1.20 markd 113: cd ${WRKSRC}/source && ${AIMK} -no-jni -only-depend
1.1 dmcmahil 114: cd ${WRKSRC}/source && ${SETENV} ${MAKE_ENV} ./scripts/zerodepend
1.20 markd 115: cd ${WRKSRC}/source && ${AIMK} -no-jni -no-qmake -no-qtcsh depend
116: cd ${WRKSRC}/source && ${AIMK} -no-jni
117: cd ${WRKSRC}/source && ${AIMK} -no-jni -man
1.1 dmcmahil 118:
119: do-install:
120: ${MKDIR} ${SGE_ROOT}
121: ${CHOWN} ${SGE_USER} ${SGE_ROOT}
122: ${CHGRP} ${SGE_GROUP} ${SGE_ROOT}
123: cd ${WRKSRC}/source && \
1.20 markd 124: ${ECHO} "Y" | ${SETENV} LOCALBASE=${LOCALBASE} SGE_ROOT=${SGE_ROOT} ./scripts/distinst -local -allall -nobdb -noopenssl ${SGE_ARCH}
125: for f in archive checkpoint deadlock dump load printlog recover stat upgrade verify ; do \
126: ln -s ${LOCALBASE}/bin/db4_$${f} ${SGE_ROOT}/utilbin/${SGE_ARCH}/db_$${f} ; done
127: ln -s ${LOCALBASE}/bin/berkeley_db4_svc ${SGE_ROOT}/utilbin/${SGE_ARCH}/berkeley_db_svc
128: ln -s ${SSL_PREFIX}/bin/openssl ${SGE_ROOT}/utilbin/${SGE_ARCH}/openssl
129: cd ${SGE_ROOT} && ${SETENV} SGE_ROOT=${SGE_ROOT} ./util/setfileperm.sh -auto \
130: ${SGE_ROOT}
1.1 dmcmahil 131: for f in ${SGE_ROOT}/bin/${SGE_ARCH}/q* ; do \
132: cd ${PREFIX}/bin && ${LN} -fs $$f ; done
133:
1.20 markd 134: #% scripts/distinst -local"
135:
136: .include "../../databases/db4/buildlink3.mk"
1.22 joerg 137: .include "../../x11/libXpm/buildlink3.mk"
1.1 dmcmahil 138: .include "../../security/openssl/buildlink3.mk"
139: .include "../../mk/motif.buildlink3.mk"
140: .include "../../mk/bsd.pkg.mk"
141: .if ${USE_BUILTIN.openssl} == "yes"
142: SSL_PREFIX= /usr
143: .else
144: SSL_PREFIX= ${PKGSRC_SSL_PREFIX}
145: .endif
CVSweb <webmaster@jp.NetBSD.org>