Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= sterm |
4 |
PORTNAME= sterm |
5 |
PORTVERSION= 0.7 |
5 |
DISTVERSION= 0.8 |
6 |
CATEGORIES= x11 |
6 |
CATEGORIES= x11 |
7 |
MASTER_SITES= http://dl.suckless.org/st/ |
7 |
MASTER_SITES= http://dl.suckless.org/st/ |
8 |
DISTNAME= st-${PORTVERSION} |
8 |
DISTNAME= st-${PORTVERSION} |
Lines 10-19
DISTNAME= st-${PORTVERSION}
Link Here
|
10 |
MAINTAINER= pkubaj@anongoth.pl |
10 |
MAINTAINER= pkubaj@anongoth.pl |
11 |
COMMENT= Simple X terminal |
11 |
COMMENT= Simple X terminal |
12 |
|
12 |
|
13 |
LICENSE= MITX |
13 |
LICENSE= MIT |
14 |
LICENSE_NAME= MIT/X Consortium License |
|
|
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
16 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
|
|
17 |
|
15 |
|
18 |
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
16 |
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
19 |
libfreetype.so:print/freetype2 |
17 |
libfreetype.so:print/freetype2 |
Lines 23-32
USE_XORG= x11 xext xft
Link Here
|
23 |
|
21 |
|
24 |
PLIST_FILES= bin/st man/man1/st.1.gz |
22 |
PLIST_FILES= bin/st man/man1/st.1.gz |
25 |
|
23 |
|
26 |
PORTDOCS= README |
24 |
# This way we avoid running tic on st.info as does not work as expected. |
|
|
25 |
BINARY_ALIAS= tic=true |
26 |
|
27 |
PORTDATA= config.def.h st.info |
28 |
PORTDOCS= FAQ LEGACY README TODO |
27 |
|
29 |
|
28 |
OPTIONS_DEFINE= DOCS |
30 |
OPTIONS_DEFINE= DOCS |
29 |
|
31 |
|
|
|
32 |
SUB_FILES= pkg-message |
33 |
|
30 |
pre-everything:: |
34 |
pre-everything:: |
31 |
@${ECHO_MSG} "You can build st with your own config.h using the ST_CONF knob:" |
35 |
@${ECHO_MSG} "You can build st with your own config.h using the ST_CONF knob:" |
32 |
@${ECHO_MSG} "make ST_CONF=/path/to/st/config.h install clean" |
36 |
@${ECHO_MSG} "make ST_CONF=/path/to/st/config.h install clean" |
Lines 34-51
pre-everything::
Link Here
|
34 |
post-patch: |
38 |
post-patch: |
35 |
.if defined(ST_CONF) |
39 |
.if defined(ST_CONF) |
36 |
@${ECHO_MSG} "creating config.h from ${ST_CONF}" |
40 |
@${ECHO_MSG} "creating config.h from ${ST_CONF}" |
37 |
@${CP} ${ST_CONF} ${WRKSRC}/config.h |
41 |
@${LN} -sf ${ST_CONF} ${WRKSRC}/config.h |
38 |
.endif |
42 |
.endif |
39 |
@${REINPLACE_CMD} -e 's|^VERSION = .*|VERSION = ${PORTVERSION}|' \ |
43 |
@${REINPLACE_CMD} -e 's|^VERSION = .*|VERSION = ${PORTVERSION}|' \ |
40 |
-e 's|^PREFIX = .*|PREFIX = ${PREFIX}|' \ |
44 |
-e 's|^PREFIX = .*|PREFIX = ${PREFIX}|' \ |
41 |
-e 's|^LOCALBASE = .*|LOCALBASE = ${LOCALBASE}|' \ |
|
|
42 |
-e "s|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}/man|" \ |
45 |
-e "s|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}/man|" \ |
43 |
-e "s|^X11INC = .*|X11INC = ${LOCALBASE}/include|" \ |
46 |
-e "s|^X11INC = .*|X11INC = ${LOCALBASE}/include|" \ |
44 |
-e "s|^X11LIB = .*|X11LIB = ${LOCALBASE}/lib|" \ |
47 |
-e "s|^X11LIB = .*|X11LIB = ${LOCALBASE}/lib|" \ |
|
|
48 |
-e "s|^CPPFLAGS =|CPPFLAGS +=|" \ |
45 |
${WRKSRC}/config.mk |
49 |
${WRKSRC}/config.mk |
46 |
|
50 |
|
47 |
post-install: |
51 |
post-install: |
48 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/st |
52 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/st |
|
|
53 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
54 |
.for data in ${PORTDATA} |
55 |
${INSTALL_DATA} ${WRKSRC}/${data} ${STAGEDIR}${DATADIR} |
56 |
.endfor |
49 |
|
57 |
|
50 |
post-install-DOCS-on: |
58 |
post-install-DOCS-on: |
51 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
59 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |