diff options
Diffstat (limited to 'graphics/py-gd/Makefile')
-rw-r--r-- | graphics/py-gd/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile index 1fb2887e7c61..cd248ee180ff 100644 --- a/graphics/py-gd/Makefile +++ b/graphics/py-gd/Makefile @@ -24,11 +24,22 @@ EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} USE_XPM= yes .endif +.include <bsd.port.pre.mk> + post-patch: +.if ${OSVERSION} < 500036 ${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \ ${WRKSRC}/Setup +.else + ${SED} -i.orig -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g' \ + -e 's,-lttf,,g' -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup +.endif .if defined(WITHOUT_X11) +.if ${OSVERSION} < 500036 ${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup +.else + ${SED} -i "" -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup +.endif .endif pre-build: @@ -40,4 +51,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLE_DIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |