mystuff/x11/st-sdk/Makefile
2024-02-13 21:00:41 +01:00

57 lines
1.4 KiB
Makefile

COMMENT= simple X terminal (personalized)
V= 0.9
DISTNAME= st-${V}
PKGNAME= st-sdk-${V}
DIST_SUBDIR= st
SUPDISTFILES.p= scrollback/st-scrollback-0.8.5.diff \
boxdraw/st-boxdraw_v2-0.8.5.diff \
charoffsets/st-charoffsets-20220311-0.8.5.diff \
sync/st-appsync-20200618-b27a383.diff \
disable_bold_italic_fonts/st-disable-bold-italic-fonts-0.8.2.diff \
glyph_wide_support/st-glyph-wide-support-boxdraw-20220411-ef05519.diff \
anysize/st-expected-anysize-0.9.diff \
alpha/st-alpha-20220206-0.8.5.diff
REVISION= 32
CATEGORIES= x11
HOMEPAGE= https://st.suckless.org/
MAINTAINER= Stefan Hagen <sh+ports@codevoid.de>
# MIT/X Consortium License
PERMIT_PACKAGE= Yes
# uses pledge()
WANTLIB= X11 Xft c fontconfig freetype m util harfbuzz
SITES= https://dl.suckless.org/st/
SITES.p= https://st.suckless.org/patches/
LIB_DEPENDS = devel/harfbuzz,-main
MAKE_ENV= LDFLAGS="${LDFLAGS}" \
X11INC=${X11BASE}/include \
X11LIB=${X11BASE}/lib
NO_TEST= Yes
PATCHFILES.p= ${SUPDISTFILES.p}
PATCH_DIST_STRIP= -p1
post-extract:
cp ${FILESDIR}/config.h ${WRKSRC}/config.h
post-patch:
cd ${WRKSRC} && patch < ${FILESDIR}/ligatures.diff
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/st ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/st.1 ${PREFIX}/man/man1/
sed -i s/VERSION/${V}/g ${PREFIX}/man/man1/st.1
tic -s -x -o ${PREFIX}/share/terminfo ${WRKSRC}/st.info
.include <bsd.port.mk>