2012-11-27 13:10:41 +00:00
|
|
|
# Created by: Matthew Donovan <kitchetech@gmail.com>
|
2011-04-08 06:25:19 +00:00
|
|
|
|
|
|
|
PORTNAME= sterm
|
2020-06-19 14:36:21 +00:00
|
|
|
DISTVERSION= 0.8.4
|
2011-04-08 06:25:19 +00:00
|
|
|
CATEGORIES= x11
|
2012-02-22 11:08:20 +00:00
|
|
|
MASTER_SITES= http://dl.suckless.org/st/
|
|
|
|
DISTNAME= st-${PORTVERSION}
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2020-01-06 16:34:40 +00:00
|
|
|
MAINTAINER= pkubaj@FreeBSD.org
|
2013-07-04 06:14:25 +00:00
|
|
|
COMMENT= Simple X terminal
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2018-03-20 17:10:09 +00:00
|
|
|
LICENSE= MIT
|
2013-07-04 06:14:25 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2016-04-01 14:33:55 +00:00
|
|
|
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
|
|
|
|
libfreetype.so:print/freetype2
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2019-11-07 18:36:55 +00:00
|
|
|
USES= pkgconfig xorg
|
2012-11-27 13:10:41 +00:00
|
|
|
USE_XORG= x11 xext xft
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2014-02-24 09:50:20 +00:00
|
|
|
PLIST_FILES= bin/st man/man1/st.1.gz
|
2011-04-08 06:25:19 +00:00
|
|
|
|
2018-03-20 17:10:09 +00:00
|
|
|
# This way we avoid running tic on st.info which does not work as expected.
|
|
|
|
BINARY_ALIAS= tic=true
|
|
|
|
|
|
|
|
PORTDATA= config.def.h st.info
|
|
|
|
PORTDOCS= FAQ LEGACY README TODO
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2021-05-05 22:31:39 +00:00
|
|
|
OPTIONS_DEFINE= DOCS SCROLLBACK XRESOURCES
|
2018-06-18 13:08:35 +00:00
|
|
|
SCROLLBACK_DESC= Scroll back through terminal output
|
2021-05-05 22:31:39 +00:00
|
|
|
XRESOURCES_DESC= Allow to handle settings from Xresources
|
2018-06-18 13:08:35 +00:00
|
|
|
|
2020-06-11 12:04:50 +00:00
|
|
|
SCROLLBACK_PATCH_SITES= https://st.suckless.org/patches/scrollback/
|
2020-12-22 13:04:44 +00:00
|
|
|
SCROLLBACK_PATCHFILES= st-scrollback-0.8.4.diff:-p1 \
|
2020-06-11 12:04:50 +00:00
|
|
|
st-scrollback-mouse-20191024-a2c479c.diff:-p1
|
|
|
|
|
2021-05-05 22:31:39 +00:00
|
|
|
XRESOURCES_PATCH_SITES= https://st.suckless.org/patches/xresources/
|
|
|
|
XRESOURCES_PATCHFILES= st-xresources-20200604-9ba7ecf.diff:-p1
|
2014-02-10 13:54:26 +00:00
|
|
|
|
2011-04-08 06:25:19 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "You can build st with your own config.h using the ST_CONF knob:"
|
|
|
|
@${ECHO_MSG} "make ST_CONF=/path/to/st/config.h install clean"
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(ST_CONF)
|
|
|
|
@${ECHO_MSG} "creating config.h from ${ST_CONF}"
|
2018-03-20 17:10:09 +00:00
|
|
|
@${LN} -sf ${ST_CONF} ${WRKSRC}/config.h
|
2011-04-08 06:25:19 +00:00
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's|^VERSION = .*|VERSION = ${PORTVERSION}|' \
|
|
|
|
-e 's|^PREFIX = .*|PREFIX = ${PREFIX}|' \
|
|
|
|
-e "s|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}/man|" \
|
|
|
|
-e "s|^X11INC = .*|X11INC = ${LOCALBASE}/include|" \
|
|
|
|
-e "s|^X11LIB = .*|X11LIB = ${LOCALBASE}/lib|" \
|
2018-03-20 17:10:09 +00:00
|
|
|
-e "s|^CPPFLAGS =|CPPFLAGS +=|" \
|
2011-04-08 06:25:19 +00:00
|
|
|
${WRKSRC}/config.mk
|
|
|
|
|
|
|
|
post-install:
|
2014-02-24 09:50:20 +00:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/st
|
2018-03-20 17:10:09 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDATA} ${STAGEDIR}${DATADIR}
|
2016-09-06 18:17:02 +00:00
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-02-24 09:50:20 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2018-03-20 17:10:09 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2011-04-08 06:25:19 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|