aboutsummaryrefslogtreecommitdiffstats
path: root/x11/sterm/Makefile
blob: b73d2be0b12977e1a6e7832ae337ace096c73609 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    sterm
# Date created:         April 01, 2011
# Whom:             Matthew Donovan <kitchetech@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   sterm
PORTVERSION=    0.0.20110401
CATEGORIES= x11
MASTER_SITES=   http://kitchetech.com/port/distfile/ \
        LOCAL/martymac

MAINTAINER= kitchetech@gmail.com
COMMENT=    A simple X terminal

RUN_DEPENDS=    ${LOCALBASE}/share/misc/terminfo.db:${PORTSDIR}/devel/ncurses

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/LICENSE

USE_XORG=   x11

MAN1=   st.1
PLIST_FILES=    bin/st

PORTDOCS=   README

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:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>