2005-09-04 16:23:55 +02:00
|
|
|
# New ports collection makefile for: py-ice
|
|
|
|
# Date created: 2005-08-30
|
|
|
|
# Whom: Boris B. Samorodov <bsam@ipt.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Ice
|
2010-08-15 14:04:13 +02:00
|
|
|
PORTVERSION= 3.4.1
|
2010-08-17 18:24:17 +02:00
|
|
|
PORTREVISION= 2
|
2005-09-04 16:23:55 +02:00
|
|
|
CATEGORIES= devel python
|
2010-08-15 14:04:13 +02:00
|
|
|
MASTER_SITES= http://www.zeroc.com/download/Ice/3.4/ \
|
2008-08-15 00:28:54 +02:00
|
|
|
http://www.dirk.sh/dirk/Ice/
|
2009-08-18 22:15:55 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2008-08-15 00:28:54 +02:00
|
|
|
DISTNAME= Ice-${PORTVERSION}
|
2005-09-04 16:23:55 +02:00
|
|
|
|
2010-09-06 09:56:11 +02:00
|
|
|
MAINTAINER= tonymaher@optusnet.com.au
|
2005-09-04 16:23:55 +02:00
|
|
|
COMMENT= An Ice (Internet Communications Engine) language mapping for Python
|
|
|
|
|
2010-08-16 14:12:13 +02:00
|
|
|
BUILD_DEPENDS= mcpp:${PORTSDIR}/devel/mcpp
|
2006-08-04 00:44:51 +02:00
|
|
|
LIB_DEPENDS= Ice.${LIB_VRS}:${PORTSDIR}/devel/ice
|
2005-09-04 16:23:55 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_PYTHON= yes
|
2008-08-15 00:28:54 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/py
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/py
|
2005-09-04 16:23:55 +02:00
|
|
|
|
2009-05-23 17:21:03 +02:00
|
|
|
LIB_VRS= ${PORTVERSION:S|.||g:C|1$||}
|
2006-08-04 00:44:51 +02:00
|
|
|
PLIST_SUB= LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
|
2010-08-16 22:08:20 +02:00
|
|
|
MAKE_ENV= ICE_HOME="${LOCALBASE}/share/Ice"
|
2006-08-04 00:44:51 +02:00
|
|
|
|
2005-09-04 16:23:55 +02:00
|
|
|
CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_REENTRANT ${PTHREAD_CFLAGS}
|
|
|
|
.if defined(DEBUG)
|
|
|
|
CFLAGS+= -g
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DNDEBUG
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2005-11-20 21:47:28 +01:00
|
|
|
.if ${ARCH} == "ia64"
|
2008-08-15 00:28:54 +02:00
|
|
|
BROKEN= does not compile on ia64
|
2005-09-04 16:23:55 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ((${ARCH} != i386) && (${ARCH} != powerpc))
|
|
|
|
MAKE_ENV= LP64=yes
|
|
|
|
.endif
|
|
|
|
|
2008-08-15 00:28:54 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ENV+= NOPORTDOCS=yes
|
|
|
|
.endif
|
|
|
|
|
2005-09-04 16:23:55 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's|%%INSTALL_PROGRAM%%|${INSTALL_PROGRAM}|g; \
|
|
|
|
s|%%INSTALL_DATA%%|${INSTALL_DATA}|g; \
|
|
|
|
s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g; \
|
|
|
|
s|%%PREFIX%%|${PREFIX}|g ; \
|
2008-08-15 00:28:54 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/py/config/Make.rules
|
2010-08-17 18:24:17 +02:00
|
|
|
${REINPLACE_CMD} 's|.(ice_dir).slice|${DATADIR}|g; \
|
|
|
|
s|.(prefix).slice|${DATADIR}|g; \
|
|
|
|
s|.(prefix).[ICE_]*LICENSE|${DATADIR}/LICENSE|g;' \
|
2010-08-16 22:08:20 +02:00
|
|
|
${WRKSRC}/py/config/Make.rules.mak \
|
|
|
|
${WRKSRC}/config/Make.common.rules.mak \
|
|
|
|
${WRKSRC}/config/Make.common.rules
|
2005-09-04 16:23:55 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${ECHO} "Ice" > ${PYTHON_SITELIBDIR}/Ice.pth
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|