mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# Created by: James FitzGibbon <jfitz@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Tk
|
|
PORTVERSION= 804.031
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-toolkits tk perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Re-port of a perl5 interface to Tk8.4
|
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png
|
|
|
|
OPTIONS_DEFINE= XFT
|
|
OPTIONS_DEFAULT= XFT
|
|
XFT_DESC= Client-side fonts via libXft
|
|
|
|
CONFIGURE_ARGS= X11INC=${LOCALBASE}/include X11LIB=${LOCALBASE}/lib
|
|
MAKE_JOBS_UNSAFE= yes
|
|
USES= perl5
|
|
USE_PERL5= configure
|
|
USE_XORG= x11
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MXFT}
|
|
CONFIGURE_ARGS= XFT=1
|
|
USE_XORG+= xft
|
|
.else
|
|
CONFIGURE_ARGS= XFT=0
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
${WRKSRC}/JPEG/Makefile.PL \
|
|
${WRKSRC}/PNG/Makefile.PL \
|
|
${WRKSRC}/pTk/Makefile.PL
|
|
|
|
post-configure:
|
|
@${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.mk>
|