a77e7015fe
- assume that Python 2.4 and 2.5 are compatible and allow checking for fallout. - remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+ default. Modify the others to deal with the removals.
61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.32 2008/04/25 20:39:14 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= sip-4.3.2
|
|
PKGNAME= ${PYPKGPREFIX}-qt3-${DISTNAME}
|
|
PKGREVISION= 3
|
|
CATEGORIES= x11 devel python
|
|
MASTER_SITES= http://www.river-bank.demon.co.uk/download/sip/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.riverbankcomputing.co.uk/sip/index.php
|
|
COMMENT= Tool to create Python bindings for C++ libraries
|
|
|
|
CONFLICTS+= ${PYPKGPREFIX}-qt2-sip-*
|
|
|
|
# needs qmake
|
|
BUILD_DEPENDS+= qt3-tools-3.*:../../x11/qt3-tools
|
|
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake
|
|
USE_LANGUAGES= c c++
|
|
|
|
CONFIGURE_ARGS+= -b ${PREFIX}/bin
|
|
CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB}
|
|
CONFIGURE_ARGS+= -e ${PREFIX}/${PYINC}
|
|
CONFIGURE_ARGS+= -v ${PREFIX}/share/sip${PYVERSSUFFIX}
|
|
|
|
PY_PATCHPLIST= yes
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
CONFIGURE_ARGS+= CFLAGS_SHLIB=-fno-common
|
|
CONFIGURE_ARGS+= LFLAGS_PLUGIN="-bundle -flat_namespace -undefined suppress"
|
|
.else
|
|
CONFIGURE_ARGS+= CFLAGS_SHLIB=-fPIC
|
|
CONFIGURE_ARGS+= CXXFLAGS_SHLIB=-fPIC
|
|
.if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc*)
|
|
# gcc3 uses -mimpure-text to not pass -assert pure-text to the linker
|
|
CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared -mimpure-text"
|
|
.else
|
|
CONFIGURE_ARGS+= LFLAGS_SHLIB="-shared"
|
|
.endif
|
|
.endif
|
|
|
|
SUBST_CLASSES+= pyversfx
|
|
SUBST_STAGE.pyversfx= pre-configure
|
|
SUBST_FILES.pyversfx= sipgen/sipgen.sbf
|
|
SUBST_SED.pyversfx= -e "s|@PYVERSSUFFIX@|${PYVERSSUFFIX}|g"
|
|
|
|
do-configure:
|
|
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${PYTHONBIN} configure.py ${CONFIGURE_ARGS})
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../x11/qt3-libs/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|