1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/x11-toolkits/blt/Makefile
Thierry Thomas 02a719e5ef - Add -fPIC to CFLAGS
- Add USE_XORG=x11

- Set WWW to the new site.

PR:		245071
Submitted by:	/me
Approved by:	maintainer
2020-03-30 12:23:39 +00:00

52 lines
1.3 KiB
Makefile

# Created by: Kenjiro Cho <kjc@csl.sony.co.jp>
# $FreeBSD$
PORTNAME= blt
PORTVERSION= 2.5.3
PORTREVISION= 5
CATEGORIES= x11-toolkits tk
MASTER_SITES= SF/wize
DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= doconnor@gsoft.com.au
COMMENT= Extension to the Tk toolkit
LICENSE= MIT
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:R}
USES= gmake jpeg shebangfix tk:tea xorg zip
USE_XORG+= x11
SHEBANG_FILES= demos/scripts/xcolors.tcl
SHEBANG_LANG= bltwish
bltwish_OLD_CMD=../bltwish
bltwish_CMD= ${PREFIX}/bin/bltwish # installed by this port, so not LOCALBASE
USE_LDCONFIG= yes
CFLAGS+= -fPIC -I${TCL_INCLUDEDIR}/generic \
-I${TK_INCLUDEDIR}/generic \
-I${TK_INCLUDEDIR}/unix
MAKE_JOBS_UNSAFE=yes
PLIST_SUB+= BLTVER=${PORTVERSION:R} \
BLTSHORTVER=${PORTVERSION:R:S/.//}
CONFIGURE_ARGS= --enable-jpeg=${LOCALBASE} \
post-patch:
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e '/^INSTALL_ROOT/s|$$|$${DESTDIR}|'
${FIND} ${WRKSRC}/demos -name "*.tcl" | ${XARGS} \
${REINPLACE_CMD} -e 's|../src/bltwish|${LOCALBASE}/bin/bltwish|'
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
.include <bsd.port.pre.mk>
.if ${TCL_VER} > 8.5
CFLAGS+= -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE
.endif
.include <bsd.port.post.mk>