blob: e3f03c5f6b6db9d3ce9877b5ea2fb4820c309e39 (
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
|
PORTNAME= quark
DISTVERSION= g20210222
CATEGORIES= www
PKGNAMESUFFIX= -server
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and simple HTTP GET/HEAD-only web server for static content
WWW= https://tools.suckless.org/quark/
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= t6 # mirror of http://git.suckless.org/quark/
GH_TAGNAME= 68b4f733b2755762e43df90f73db5a6ec8d14104
CONFLICTS_INSTALL= quark
PLIST_FILES= bin/quark \
share/man/man1/quark.1.gz
pre-everything::
@${ECHO_MSG} "You can build quark with your own config.h using the QUARK_CONF knob:"
@${ECHO_MSG} "make QUARK_CONF=/path/to/quark/config.h install clean"
.if defined(QUARK_CONF)
post-patch:
@${ECHO_MSG} "Creating config.h from ${QUARK_CONF}"
@${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h
.endif
do-configure:
@${ECHO_CMD} PREFIX="${PREFIX}" >>${WRKSRC}/config.mk
@${ECHO_CMD} CC="${CC}" >>${WRKSRC}/config.mk
@${ECHO_CMD} CFLAGS+="${CFLAGS}" >>${WRKSRC}/config.mk
@${ECHO_CMD} LDFLAGS+="${LDFLAGS}" >>${WRKSRC}/config.mk
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/quark
.include <bsd.port.mk>
|