601b2f322f
the extra symlink which would conflict if installed for multiple Python versions) changes: misc fixes and feature extensions
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2011/01/11 11:39:50 drochner Exp $
|
|
#
|
|
|
|
VERS= 4.2.2
|
|
DISTNAME= cx_Freeze-${VERS}
|
|
PKGNAME= ${PYPKGPREFIX}-cxfreeze-${VERS}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cx-freeze/}
|
|
|
|
MAINTAINER= helgoman@users.sourceforge.net
|
|
HOMEPAGE= http://cx-freeze.sourceforge.net/
|
|
COMMENT= Freezing python scripts into executables
|
|
LICENSE= python-software-foundation
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
post-extract:
|
|
${MV} ${WRKSRC}/cxfreeze ${WRKSRC}/cxfreeze${PYVERSSUFFIX}
|
|
|
|
# XXX this pkg abuses the distutils extension build mechanism to
|
|
# build executables. The result isn't executable on NetBSD.
|
|
# Relink to get valid executables.
|
|
post-build:
|
|
cd ${WRKSRC} && ${CC} build/temp.*/source/bases/Console.o \
|
|
-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpython${PYVERSSUFFIX} \
|
|
-o ${WRKDIR}/Console && \
|
|
${CC} build/temp.*/source/bases/ConsoleKeepPath.o \
|
|
-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lpython${PYVERSSUFFIX} \
|
|
-o ${WRKDIR}/ConsoleKeepPath
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/Console \
|
|
${DESTDIR}${PREFIX}/${PYSITELIB}/cx_Freeze/bases
|
|
${INSTALL_PROGRAM} ${WRKDIR}/ConsoleKeepPath \
|
|
${DESTDIR}${PREFIX}/${PYSITELIB}/cx_Freeze/bases
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|