1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/x11/sterm/Makefile
John Marino ecc4e0248a x11/sterm: Upgrade version 0.4.1 => 0.5
PR:		188302
Submitted by:	anonymous (gmail)
Approved by:	maintainer timeout (2 months)
Verified by:	Redports 8x pass
2014-06-18 22:43:25 +00:00

57 lines
1.5 KiB
Makefile

# Created by: Matthew Donovan <kitchetech@gmail.com>
# $FreeBSD$
PORTNAME= sterm
PORTVERSION= 0.5
CATEGORIES= x11
MASTER_SITES= http://dl.suckless.org/st/
DISTNAME= st-${PORTVERSION}
MAINTAINER= kitche@kitchetech.com
COMMENT= Simple X terminal
LICENSE= MITX
LICENSE_NAME= MIT/X Consortium License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= pkgconfig ncurses:port
USE_XORG= x11 xext xft
PLIST_FILES= bin/st man/man1/st.1.gz
PORTDOCS= README
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
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}"
@${CP} ${ST_CONF} ${WRKSRC}/config.h
.endif
@${REINPLACE_CMD} -e 's|^VERSION = .*|VERSION = ${PORTVERSION}|' \
-e 's|^PREFIX = .*|PREFIX = ${PREFIX}|' \
-e 's|^LOCALBASE = .*|LOCALBASE = ${LOCALBASE}|' \
-e "s|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}/man|" \
-e "s|^X11INC = .*|X11INC = ${LOCALBASE}/include|" \
-e "s|^X11LIB = .*|X11LIB = ${LOCALBASE}/lib|" \
${WRKSRC}/config.mk
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/st
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>