Some improvements

* using distuils, so use pkgsrc pthon distutils framework.
* LOCALBASE should not be used here, it's just for prefix of GD.
* No need to depend on freetype-lib here.

Bump PKGREVISION.
This commit is contained in:
obache 2010-11-23 05:16:03 +00:00
parent 4b9a535bef
commit 0a2f644868
3 changed files with 10 additions and 10 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.33 2010/06/13 22:44:42 wiz Exp $
# $NetBSD: Makefile,v 1.34 2010/11/23 05:16:03 obache Exp $
DISTNAME= gdmodule.c
PKGNAME= ${PYPKGPREFIX}-gd-1.3
PKGREVISION= 11
PKGREVISION= 12
CATEGORIES= graphics python
MASTER_SITES= http://starship.python.net/~richard/gdmodule/
EXTRACT_SUFX=
@ -16,12 +16,11 @@ PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
BUILD_TARGET= default
PYDISTUTILSPKG= yes
EGG_NAME= ${DISTNAME:S/.c/-${PKGVERSION_NOREV}/}
post-patch:
${SED} 's+@LOCALBASE@+${LOCALBASE}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py
${SED} 's+@GD_PREFIX@+${BUILDLINK_PREFIX.gd}+g' ${FILESDIR}/Setup.in > ${WRKSRC}/setup.py
.include "../../graphics/freetype-lib/buildlink3.mk"
.include "../../graphics/gd/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,2 +1,3 @@
@comment $NetBSD: PLIST,v 1.3 2004/09/01 19:17:05 darcy Exp $
@comment $NetBSD: PLIST,v 1.4 2010/11/23 05:16:03 obache Exp $
${PYSITELIB}/gd.so
${PLIST.eggfile}${PYSITELIB}/${EGG_FILE}

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python
# $NetBSD: Setup.in,v 1.5 2004/09/01 19:17:05 darcy Exp $
# $NetBSD: Setup.in,v 1.6 2010/11/23 05:16:03 obache Exp $
from distutils.core import setup, Extension
@ -12,8 +12,8 @@ setup(name = "gdmodule",
ext_modules = [Extension(
name = 'gd',
sources = ['gdmodule.c'],
include_dirs = ['@LOCALBASE@/include/'],
library_dirs = ['@LOCALBASE@/lib'],
include_dirs = ['@GD_PREFIX@/include/'],
library_dirs = ['@GD_PREFIX@/lib'],
libraries = ['gd'],
)],