diff options
author | jperkin <jperkin@pkgsrc.org> | 2013-06-10 15:45:30 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2013-06-10 15:45:30 +0000 |
commit | 399b38a49e00b6efb3901e033fe320d09b3f5d10 (patch) | |
tree | 7d18e27ca08149a77ee23a3ff0735cf4fdad26bf /x11/py-kde4 | |
parent | 64a7405811eaaaa35abbfe791f2b52eadee0d587 (diff) | |
download | pkgsrc-399b38a49e00b6efb3901e033fe320d09b3f5d10.tar.gz |
Ensure pid_t is a long on 32-bit SunOS.
Diffstat (limited to 'x11/py-kde4')
-rw-r--r-- | x11/py-kde4/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/x11/py-kde4/Makefile b/x11/py-kde4/Makefile index 8267338bf26..fa39e3998aa 100644 --- a/x11/py-kde4/Makefile +++ b/x11/py-kde4/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2013/06/06 12:55:20 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2013/06/10 15:45:30 jperkin Exp $ PKGNAME= ${PYPKGPREFIX}-kde4-${_KDE_VERSION} DISTNAME= pykde4-${_KDE_VERSION} @@ -27,6 +27,18 @@ SUBST_STAGE.pykdeuic4= post-build SUBST_FILES.pykdeuic4= tools/pykdeuic4/pykdeuic4.py SUBST_SED.pykdeuic4= -e 's:/usr/bin/env python$$:${PYTHONBIN}:' +.include "../../mk/bsd.prefs.mk" + +# pid_t in the SunOS 32-bit environment is long, not int. +.if ${OPSYS} == "SunOS" && ${ABI} == "32" +SUBST_CLASSES+= pid32 +SUBST_STAGE.pid32= pre-build +SUBST_FILES.pid32= sip/kdecore/typedefs.sip +SUBST_FILES.pid32+= sip/kdeui/kstartupinfo.sip +SUBST_SED.pid32= -e '/QList.*int.*pids/s/int/pid_t/' +SUBST_SED.pid32+= -e '/typedef.*int.*pid_t/s/int/long/' +.endif + #post-extract: # ${CP} ${FILESDIR}/FindPolkitQt.cmake ${WRKSRC}/cmake/modules |