diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-01-30 04:48:57 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-01-30 04:48:57 +0000 |
commit | 3785e0d90fb34dcc9cbc0fcd15b1b12d3908d605 (patch) | |
tree | 0d8f8790e89304f7488edd69b0450d97e6df7281 /x11-toolkits/p5-Tk | |
parent | a5f6545b42e92be7deb65c2494e58e0194cc8d5d (diff) | |
download | ports-3785e0d90fb34dcc9cbc0fcd15b1b12d3908d605.tar.gz ports-3785e0d90fb34dcc9cbc0fcd15b1b12d3908d605.zip |
Notes
Diffstat (limited to 'x11-toolkits/p5-Tk')
-rw-r--r-- | x11-toolkits/p5-Tk/Makefile | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/x11-toolkits/p5-Tk/Makefile b/x11-toolkits/p5-Tk/Makefile index b53c5f23ffc5..e2cde1e32ec0 100644 --- a/x11-toolkits/p5-Tk/Makefile +++ b/x11-toolkits/p5-Tk/Makefile @@ -17,6 +17,8 @@ COMMENT= A re-port of a perl5 interface to Tk8.4 LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \ png.6:${PORTSDIR}/graphics/png +OPTIONS= XFT "Client-side fonts via libXft (experimental)" off + CONFIGURE_ARGS= X11INC=${LOCALBASE}/include X11LIB=${LOCALBASE}/lib MAKE_JOBS_UNSAFE= yes PERL_CONFIGURE= yes @@ -142,34 +144,25 @@ MAN3= Tie::Watch.3 \ Tk::tkvars.3 \ Tk::widgets.3 -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if defined(WITH_XFT) CONFIGURE_ARGS= XFT=1 USE_XORG+= xft .endif -.if !defined(WITH_XFT) -pre-everything:: - @${ECHO_MSG} "===>" - @${ECHO_MSG} "===> An experimental implementation of client side fonts" - @${ECHO_MSG} "===> and anti-aliased fonts via Xft" - @${ECHO_MSG} "===> can be enabled by defining WITH_XFT" - @${ECHO_MSG} "===>" -.endif - post-patch: - @${PERL} -i -p -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/pTk/Makefile.PL \ + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/JPEG/Makefile.PL \ - ${WRKSRC}/PNG/Makefile.PL + ${WRKSRC}/PNG/Makefile.PL \ + ${WRKSRC}/pTk/Makefile.PL post-configure: - @${PERL} -i -p \ - -e 's|^(CC = ).*|$$1 ${CC}|;' \ - -e 's|^(CCFLAGS = ).*|$$1 ${CFLAGS}|;' \ - -e 's|^(LD = ).*|$$1 ${CC} ${CFLAGS} ${LDFLAGS}|;' \ - -e 's|^(FULL_AR = ).*|$$1 ${AR}|' \ + @${REINPLACE_CMD} \ + -e '/^CC = / s|.*|CC = ${CC}|' \ + -e '/^CCFLAGS = / s|.*|CCFLAGS = ${CFLAGS}|' \ + -e '/^LD = / s|.*|LD = ${CC} ${CFLAGS} ${LDFLAGS}|' \ + -e '/^FULL_AR = / s|.*|FULL_AR = ${AR}|' \ `${FIND} ${WRKSRC} -name Makefile` -.include <bsd.port.post.mk> +.include <bsd.port.mk> |