1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/py-ice/Makefile
Boris Samorodov f1b7c78b28 - update to the new version 3.1.0;
- introduce LIB_VRS variable at Makefile (to be used at LIB_DEPENDS and
  PLIST_SUB);
- create some variables at PLIST_SUB and change plist accordingly;
- make "portlint -a" happy (delete quotes from a BROKEN message);
- change my email to the FreeBSD.org one.

Approved by:	netchild (mentor, implicit)
2006-08-03 22:44:51 +00:00

55 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-ice
# Date created: 2005-08-30
# Whom: Boris B. Samorodov <bsam@ipt.ru>
#
# $FreeBSD$
#
PORTNAME= Ice
PORTVERSION= 3.1.0
CATEGORIES= devel python
MASTER_SITES= http://www.zeroc.com/download/Ice/3.1/ \
ftp://ftp.ipt.ru/pub/download/
PKGNAMEPREFIX= py-
DISTNAME= IcePy-${PORTVERSION}
MAINTAINER= bsam@FreeBSD.org
COMMENT= An Ice (Internet Communications Engine) language mapping for Python
LIB_DEPENDS= Ice.${LIB_VRS}:${PORTSDIR}/devel/ice
USE_GMAKE= yes
USE_PYTHON= yes
LIB_VRS= ${PORTVERSION:S|.||g:C|0$||}
PLIST_SUB= LIB_VERSION="${PORTVERSION}" LIB_VRS="${LIB_VRS}"
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>
.if ${ARCH} == "ia64"
BROKEN= does not compile
.endif
.if ((${ARCH} != i386) && (${ARCH} != powerpc))
MAKE_ENV= LP64=yes
.endif
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 ; \
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/config/Make.rules
post-install:
${ECHO} "Ice" > ${PYTHON_SITELIBDIR}/Ice.pth
.include <bsd.port.post.mk>