2008-01-15 03:07:27 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2008/01/15 08:07:27 ajacoutot Exp $
|
2008-01-14 09:44:11 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= automatically generate Python bindings for C and C++ libs
|
|
|
|
|
|
|
|
DISTNAME= sip-4.7.3
|
|
|
|
PKGNAME= py-${DISTNAME}
|
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.riverbankcomputing.co.uk/sip/
|
|
|
|
|
|
|
|
MAINTAINER= Lars Hansson <lars@unet.net.ph>
|
|
|
|
|
|
|
|
# SIP license (Python like)
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB= m c stdc++
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/sip4/
|
|
|
|
|
2008-01-15 03:07:27 -05:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
PATCH_LIST= patch-* fpic-patch-specs_openbsd-g++
|
|
|
|
.endif
|
|
|
|
|
2008-01-14 09:44:11 -05:00
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
CONFIGURE_SCRIPT=${MODPY_BIN} configure.py
|
2008-01-14 13:08:30 -05:00
|
|
|
CONFIGURE_ARGS= -b ${PREFIX}/bin \
|
|
|
|
-d ${MODPY_SITEPKG} \
|
|
|
|
-e ${MODPY_INCDIR} \
|
|
|
|
-v ${PREFIX}/share/sip \
|
|
|
|
INCDIR=${LOCALBASE}/include \
|
2008-01-14 09:44:11 -05:00
|
|
|
LIBDIR=${LOCALBASE}/lib \
|
|
|
|
CC=${CC} CXX=${CXX} \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
CXXFLAGS="${CXXFLAGS}"
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sip
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sipref.txt \
|
|
|
|
${PREFIX}/share/doc/py-sip
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|