diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2005-06-19 11:34:56 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2005-06-19 11:34:56 +0000 |
commit | 814a29cb2b64acb5e5b7d7986f88f5eb13fd2acf (patch) | |
tree | f894d4a452c3bc93c1196adb6c466a8621fb401f /lang | |
parent | 746a645a9ab8eadfd08e6d0c3f023e3633c4f6e5 (diff) | |
download | ports-814a29cb2b64acb5e5b7d7986f88f5eb13fd2acf.tar.gz ports-814a29cb2b64acb5e5b7d7986f88f5eb13fd2acf.zip |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/Makefile | 9 | ||||
-rw-r--r-- | lang/python24/Makefile | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile index 28f2516d69e9..be1c1279193f 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -33,6 +33,7 @@ PYTHON_NO_DEPENDS= yes USE_REINPLACE= yes SHARED_WRKSRC= ${WRKSRC}/build.shared +PLIST= ${WRKDIR}/pkg-plist PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} @@ -127,9 +128,8 @@ pre-patch: ${WRKSRC}/Lib/site.py ${MKDIR} ${WRKSRC}/Lib/plat-freebsd6 ${CP} ${WRKSRC}/Lib/plat-freebsd5/regen ${WRKSRC}/Lib/plat-freebsd6/ -.if defined(WITH_FPECTL) +.if defined(WITH_FPECTL) && ${ARCH} == i386 ${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist - ${REINPLACE_CMD} 's,fpreset,fpset,g' ${WRKSRC}/Modules/fpectlmodule.c .endif post-configure: @@ -157,6 +157,11 @@ post-build: ${SETENV} ${MAKE_ENV} ${MAKE} lib${PYTHON_VERSION}.so python; \ ${LN} -f lib${PYTHON_VERSION}.so lib${PYTHON_VERSION}.so.1; \ ${LN} -f python ${PYTHON_VERSION:S/thon/thon-shared/} +.if !exists(/usr/bin/rpcgen) # the world with NO_NIS + ${GREP} -v 'nis.so$$' ${PKGDIR}/pkg-plist > ${PLIST} +.else + ${CP} ${PKGDIR}/pkg-plist ${PLIST} +.endif pre-su-install: .for platform in ${PLATFORMS} diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 28f2516d69e9..be1c1279193f 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -33,6 +33,7 @@ PYTHON_NO_DEPENDS= yes USE_REINPLACE= yes SHARED_WRKSRC= ${WRKSRC}/build.shared +PLIST= ${WRKDIR}/pkg-plist PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} @@ -127,9 +128,8 @@ pre-patch: ${WRKSRC}/Lib/site.py ${MKDIR} ${WRKSRC}/Lib/plat-freebsd6 ${CP} ${WRKSRC}/Lib/plat-freebsd5/regen ${WRKSRC}/Lib/plat-freebsd6/ -.if defined(WITH_FPECTL) +.if defined(WITH_FPECTL) && ${ARCH} == i386 ${ECHO} "fpectl fpectlmodule.c" >> ${WRKSRC}/Modules/Setup.dist - ${REINPLACE_CMD} 's,fpreset,fpset,g' ${WRKSRC}/Modules/fpectlmodule.c .endif post-configure: @@ -157,6 +157,11 @@ post-build: ${SETENV} ${MAKE_ENV} ${MAKE} lib${PYTHON_VERSION}.so python; \ ${LN} -f lib${PYTHON_VERSION}.so lib${PYTHON_VERSION}.so.1; \ ${LN} -f python ${PYTHON_VERSION:S/thon/thon-shared/} +.if !exists(/usr/bin/rpcgen) # the world with NO_NIS + ${GREP} -v 'nis.so$$' ${PKGDIR}/pkg-plist > ${PLIST} +.else + ${CP} ${PKGDIR}/pkg-plist ${PLIST} +.endif pre-su-install: .for platform in ${PLATFORMS} |