mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# New ports collection makefile for: py-gd
|
|
# Date created: 23 December 2001
|
|
# Whom: Hye-Shik Chang <perky@fallin.lv>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gd
|
|
PORTVERSION= 0.56
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics python
|
|
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= gdmodule-${PORTVERSION}
|
|
|
|
MAINTAINER= perky@FreeBSD.org
|
|
COMMENT= Python interface to the GD library
|
|
|
|
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
USE_XORG= xpm
|
|
.endif
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
USE_PYTHON_PREFIX= yes
|
|
PYDISTUTILS_PKGNAME= gdmodule
|
|
DISABLE_SIZE= yes
|
|
PYSETUP= Setup.py
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' \
|
|
-e 's,/usr/X11R6,${LOCALBASE},g' \
|
|
-e 's,/usr/include/X11,${LOCALBASE}/include,g' \
|
|
${WRKSRC}/${PYSETUP}
|
|
.if defined(WITHOUT_X11)
|
|
${REINPLACE_CMD} -e 's/"X11", "Xpm",//' \
|
|
-e 's/"ttf", "freetype",//' ${WRKSRC}/${PYSETUP}
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|